diff --git a/bin/golden_test.sh b/bin/golden_test.sh index d1922f8..b386c92 100755 --- a/bin/golden_test.sh +++ b/bin/golden_test.sh @@ -1,45 +1,7 @@ #!/bin/bash - -cat < /dev/null - ------------------------------------------------------------------------- -# To test vs. csh version, quick test: - -c; golden_test.csh 16 1 1port |& tee tmp.csh -cp /tmp/test_16_1_1port.log tmplog.csh - -c; golden_test.sh 16 1 1port |& tee tmp.sh -cp /tmp/test_16_1_1port.log tmplog.sh - -c; diff tmp.csh tmp.sh -c; diff -Bb tmplog.csh tmplog.sh - - ------------------------------------------------------------------------- -# To test vs. csh version, full test: - -mkdir tmptest; cd tmptest -gtcsh='../golden_test.csh --perl -sim verilator' -gtsh='../golden_test.sh --perl -sim verilator' - - -i=100 -$gtcsh |& head -$i | tee test_results.log.csh$i; \ -$gtsh |& head -$i | tee test_results.log.sh$i -diff -Bb -I '2022$' test_results.log.{csh,sh}$i |& less - -$gtcsh | tee test_results.log.csh | egrep 'PASS|FAIL|ERR'; \ -$gtsh | tee test_results.log.sh | egrep 'PASS|FAIL|ERR' & -diff -Bb -I '2022$' test_results.log.{csh,sh} |& less - -EOF - - -VERBOSE=True -TRAVIS='' - -if [ "$1" == "--help" ]; then cat <& $tmp - fi + echo " $cmd GENESIS_PARAMS=$dq$parms$dq" >& $tmp [ $DBG ] && echo " $cmd GENESIS_PARAMS=$dq$parms$dq" $cmd GENESIS_PARAMS="$parms" &>> $tmp || fatal_error=True @@ -365,9 +329,6 @@ for t in "${tests[@]}"; do echo fatal error echo " ERROR 'make gen' failed. --- $npoints $nunits $nports" - [ $TRAVIS ] && cat $tmp - [ $TRAVIS ] && exit 13 - echo " See $tmp for details" echo " less -r $tmp" [ $sfx == "8_4_1port" ] && echo "*** NOTE $sfx is SUPPOSED to fail! (16 SRAM's for 8 points\!?) ***" @@ -381,13 +342,18 @@ for t in "${tests[@]}"; do alias mr='make -f $MAKEFILE run TOP=fft SIM=$SIMULATOR' function mr { make -f $MAKEFILE run TOP=fft SIM=$SIMULATOR; } - # Duh? Why twice? [ $DBG ] && echo " make -f $MAKEFILE run TOP=fft SIM=$SIMULATOR" - echo 1. make -f $MAKEFILE run TOP=fft SIM=$SIMULATOR >> $tmp - mr |& egrep -v '^Makefile' >> $tmp - echo 2. make -f $MAKEFILE run TOP=fft SIM=$SIMULATOR >> $tmp + +# # Duh? Why twice? +# echo 1. make -f $MAKEFILE run TOP=fft SIM=$SIMULATOR >> $tmp +# mr |& egrep -v '^Makefile' >> $tmp +# echo 2. make -f $MAKEFILE run TOP=fft SIM=$SIMULATOR >> $tmp +# mr |& egrep -v '^Makefile' >> $tmp + + echo make -f $MAKEFILE run TOP=fft SIM=$SIMULATOR >> $tmp mr |& egrep -v '^Makefile' >> $tmp + # If "make run" failed, print out a coherent error message. if [ ! -e $simlog ]; then echo fatal error @@ -537,28 +503,3 @@ echo echo "NOTE did not keep result summary file '$summfile'" printf "FINAL RESULT = PASS\n" - - -# echo ============================================================================== -# cat $summfile -# echo ============================================================================== -exit - - - - - -############################################################################## -## BOOKMARK ################################################################## -############################################################################## -if [ $"DBG" == 1 ]; then - echo '------------------------------------------------------------------------' - set | egrep '^golden_test' - echo '------------------------------------------------------------------------' -fi -exit -############################################################################## -############################################################################## -############################################################################## - -