shithub: scc

Download patch

ref: 5f0409dd660ec9a663b8d0e6ccc9664b44f2e4e3
parent: f967fb57f65afdb0a33e56b1ad9f15bb72366001
author: Roberto E. Vargas Caballero <[email protected]>
date: Tue Jan 23 08:51:33 EST 2018

[as] Update test.sh to cover with the new dir structure

--- 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 @@
 
 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 @@
 	s%[ 	][ 	]*%\
 %g
 	p
-}' target/$cpu/test.s |
+}' $file |
 nl -b a > $tmp1