diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gen-tests | 28 |
1 files changed, 7 insertions, 21 deletions
diff --git a/scripts/gen-tests b/scripts/gen-tests index f014a30..5d9e087 100755 --- a/scripts/gen-tests +++ b/scripts/gen-tests @@ -1,29 +1,15 @@ #!/bin/sh -PREFIX=JIT_TESTS +PREFIX=TESTS for s in ${@} do src="${s#*/}" - exe="tests/test-jit-${src%.*}" + exe="tests/test-${src%.*}" dep="tests/${exe}.d" - echo "${PREFIX} += ${exe}" >> tests.mk - echo "${dep}:" >> tests.mk - echo "-include ${dep}" >> tests.mk - echo "${exe}: ${s} ejit.o" >> tests.mk - echo " \$(COMPILE_JIT_TEST) ${s} ejit.o -o ${exe}" >> tests.mk -done - -PREFIX=BCODE_TESTS -for s in ${@} -do - src="${s#*/}" - exe="tests/test-bcode-${src%.*}" - dep="tests/${exe}.d" - - echo "${PREFIX} += ${exe}" >> tests.mk - echo "${dep}:" >> tests.mk - echo "-include ${dep}" >> tests.mk - echo "${exe}: ${s} ejit.o" >> tests.mk - echo " \$(COMPILE_BCODE_TEST) ${s} ejit.o -o ${exe}" >> tests.mk + echo "${PREFIX} += ${exe}" >> tests.mk + echo "${dep}:" >> tests.mk + echo "-include ${dep}" >> tests.mk + echo "${exe}: ${s} ejit.o" >> tests.mk + echo " \$(COMPILE_TEST) ${s} ejit.o -o ${exe}" >> tests.mk done |