commit 7c25f92622ba26c65e60080291e06f8969afe8a4
parent 76ede86072629766d376b19c979622158782dfec
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Tue, 23 Jan 2018 13:51:33 +0000
[as] Update test.sh to cover with the new dir structure
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/as/test.sh b/as/test.sh
@@ -1,6 +1,7 @@
#!/bin/sh
set -e
+file=${1?}
exec >test.log
exec 2>&1
@@ -9,7 +10,7 @@ tmp2=`mktemp`
trap "rm -f a.out $tmp1 $tmp2" 0 2 3
-./as-$cpu target/$cpu/test.s
+./as-$cpu $file
sed -n '/^\// ! {
s%.*/%%
@@ -19,7 +20,7 @@ sed -n '/^\// ! {
s%[ ][ ]*%\
%g
p
-}' target/$cpu/test.s |
+}' $file |
nl -b a > $tmp1