Blame | Last modification | View Log | Download | RSS feed
#!/bin/shecho executing self tests...echo "=================================================================" > ../testlogecho "Summaric results:" >> ../testlogSUMPASS="0"SUMFAIL="0"if [ "$1" = "" ]; thenSUBDIRS=t_*elseSUBDIRS="$1"fiif [ "$V" != "1" ]; thenQUIET="-q"fifor t in $SUBDIRS; doif test -f $t/$t.asm; thenif test -f $t/$t.ori; thenif cd $t ; then{if test "$V" = "1"; thencat $t.docfi# valgrind --leak-check=yes ...${RUNCMD} ../../${OBJDIR}asl${TARG_EXEXTENSION} `cat asflags` $QUIET -Werror -i ../../include $t.asm | tee $t.log${RUNCMD} ../../${OBJDIR}p2bin${TARG_EXEXTENSION} $QUIET -k -l 0 -r 0x-0x $tif test "$V" = "1"; thenecho +---------------------------------------------------------------+fiif cmp $t.ori $t.bin; thenif test "$V" = "1"; thenecho "Test $t succeeded!"fiecho "$t : OK" >> ../../testlogSUMPASS=`expr $SUMPASS + 1`elseecho "Test $t failed!"SUMFAIL=`expr $SUMFAIL + 1`echo "$t : failed" >> ../../testlogfigrep assembly $t.log >> ../../testloggrep Assemblierzeit $t.log >> ../../testlogif test "$V" = "1"; thenecho +---------------------------------------------------------------+firm -f $t.binrm -f $t.logrm -f $t.hcd ..}else{echo "$t : no such test" >> ../testlogSUMFAIL=`expr $SUMFAIL + 1`}fififidoneecho "successes: $SUMPASS" >> ../testlogecho "failures : $SUMFAIL" >> ../testlogif [ "$V" = "1" ] || [ "$SUMFAIL" != "0" ]; thencat ../testlogelseecho "successes: $SUMPASS"echo "failures : $SUMFAIL"fiif test "$SUMFAIL" = "0"; thenexit 0elseexit 1fi