ref: c05751413d4747d97b42659222c336ddeccbbdfa
parent: 68b2bcc2e06960fdac9cee44ac5a82eafa092869
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Dec 19 03:01:49 EST 2017
[as] Add better loging in test.sh If you want to be able to see the test result you need a good log system
--- a/as/test.sh
+++ b/as/test.sh
@@ -1,6 +1,8 @@
#!/bin/sh
set -e
+exec >test.log
+exec 2>&1
tmp1=`mktemp`
tmp2=`mktemp`
@@ -12,9 +14,10 @@
sed -n '/^\// ! {
s%.*/ %%
s% *%\
-/%
- w '$tmp1'
-}' target/$cpu/test.s
+%g
+ p
+}' target/$cpu/test.s |
+nl -b a > $tmp1
../objdump/objdump |
@@ -23,8 +26,14 @@
s%.*: %%
s% *%\
%g
- w '$tmp2'
+ p
}
-}'
+}' |
+nl -b a > $tmp2
+printf "test.s\n"
+nl -b a $tmp1
+printf "\nobjdump\n"
+nl -b a $tmp2
+printf "\ndiff\n"
diff $tmp1 $tmp2