diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-05-16 10:21:58 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-05-16 10:21:58 +0200 |
commit | a97dfcfb8a1f49d634b17c493ef54fa4fed72047 (patch) | |
tree | 7490d1af5469814eccb707ba9ea484e30a43e47f | |
parent | 5d679dbf97fd9a86809bb1ef0e132764ab88d879 (diff) | |
download | compilertests-a97dfcfb8a1f49d634b17c493ef54fa4fed72047.tar.gz compilertests-a97dfcfb8a1f49d634b17c493ef54fa4fed72047.tar.bz2 |
better cleanup of temporary files, more .gitignores
-rw-r--r-- | .gitignore | 2 | ||||
-rwxr-xr-x | ecomp-c/build.sh | 2 | ||||
-rwxr-xr-x | ecomp-c/test.sh | 1 |
3 files changed, 5 insertions, 0 deletions
@@ -3,6 +3,8 @@ miniemu/miniemu miniemu/*.bin minic/minic ecomp-c/ec +ecomp-c/asm-i386 +ecomp-c/emul ecomp-c/tests/*.asm ecomp-c/tests/*.comp_err ecomp-c/tests/*.asm_err diff --git a/ecomp-c/build.sh b/ecomp-c/build.sh index 2124ccb..3b9aff0 100755 --- a/ecomp-c/build.sh +++ b/ecomp-c/build.sh @@ -61,3 +61,5 @@ if [ "${DEBUG}" = 1 ]; then else cat ${MODULES[@]} | ${COMPILER} ${CFLAGS} -o ${BINARY} - fi + +rm -f "${BINARY}_tmp.c" diff --git a/ecomp-c/test.sh b/ecomp-c/test.sh index 30eefdd..c5448e1 100755 --- a/ecomp-c/test.sh +++ b/ecomp-c/test.sh @@ -44,6 +44,7 @@ run_test( ) fasm $TEST.asm $TEST.ebin >/dev/null 2>&1 ../asm-i386 < $TEST.asm > $TEST.bin 2> _tmp grep -v '^Total ' _tmp | grep -v '^Arena' | grep -v 'bytes.*=' | grep -v 'max mmap' | grep -v 'Assembled in' > $TEST.asm_err + rm -f _tmp cmp $TEST.bin $TEST.ebin >/dev/null 2>&1 OUT=$? diff $TEST.asm_err $TEST.easm_err >/dev/null 2>&1 |