From: Sadoon Albader Date: Fri, 25 Aug 2023 15:40:14 +0000 (+0300) Subject: clean up script, remove WIP warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=770e4eb9070e4ed5c3b17aa7c1aa69561c3aefe3;p=dev-env-setup.git clean up script, remove WIP warning --- diff --git a/test-vsx b/test-vsx index a0a5663..7ac95ab 100755 --- a/test-vsx +++ b/test-vsx @@ -1,27 +1,13 @@ -#!/bin/bash - -echo "SCRIPT IS STILL WIP, DO NOT RUN" +#!/bin/zsh CHROOT=/opt/chroot/gentoo-sffs -BINDIRS=($CHROOT/bin $CHROOT/sbin $CHROOT/usr/libexec) - -failed=false +OBJDIRS=($CHROOT/sbin $CHROOT/bin $CHROOT/usr/libexec $CHROOT/usr/bin $CHROOT/usr/sbin) -for dir in $BINDIRS +for dir in $OBJDIRS do for bin in $(ls -1 $dir) do - if $(fgrep -qof VSX_INSNS.txt $dir/$bin | sort | uniq -c | awk '{print $2 " " $1}'); then - echo "VSX instructions found in $bin" - failed=true - fi + echo "testing $dir/$bin" + objdump -d $dir/$bin | fgrep -of VSX_INSNS.txt | sort | uniq -c | awk '{print $2 " " $1}' done done - - - -if $failed; then - echo "Test failed" -else - echo "Test succeeded!" -fi