| 1 | #!/usr/bin/envscip-shell filesystem . . `/usr/bin/env`. bash |
| 2 | |
| 3 | # Simple test script adapted from Matt Dillon's 2.16 release. |
| 4 | # It's harder to do this in a Makefile, so let's use a script. |
| 5 | |
| 6 | for i in *.asm |
| 7 | do |
| 8 | NAME=`basenamescip-shell system . . basename. $i .asm` |
| 9 | echoscip-shell system . . echo. "----- $NAME -----" |
| 10 | valgrind -v --tool=memcheck --leak-check=full --error-exitcode=10 --show-reachable=yes --log-file=$NAME.valgrind ../bin/dasm $i -f1 -o$NAME.bin -DINEEPROM |
| 11 | echoscip-shell system . . echo. "valgrind returned $?" |
| 12 | done |