scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit b61bd7e40dfc144a9b3dd67b7837402f9ad0eb08
parent 6717beb3e1a3d68eb21cdabe8915bd1db8bd4904
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 19 Dec 2017 08:01:49 +0100

[as] Add better loging in test.sh

If you want to be able to see the test result
you need a good log system

Diffstat:
Mas/test.sh | 21+++++++++++++++------
1 file changed, 15 insertions(+), 6 deletions(-)

diff --git 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 @@ trap "rm -f a.out $tmp1 $tmp2" 0 2 3 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 @@ sed -n '/^data:/,$ { 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