diff options
Diffstat (limited to 'scripts/gen-tests')
-rwxr-xr-x | scripts/gen-tests | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/gen-tests b/scripts/gen-tests index 934f13f..542bb7b 100755 --- a/scripts/gen-tests +++ b/scripts/gen-tests @@ -3,7 +3,8 @@ PREFIX=JIT_TEST for s in ${@} do - exe="tests/test-jit-$(basename ${s%.*})" + src="${s#*/}" + exe="tests/test-jit-${src%.*}" dep="tests/${exe}.d" echo "${PREFIX} += ${exe}" >> tests.mk @@ -16,7 +17,8 @@ done PREFIX=BCODE_TESTS for s in ${@} do - exe="tests/test-bcode-$(basename ${s%.*})" + src="${s#*/}" + exe="tests/test-bcode-${src%.*}" dep="tests/${exe}.d" echo "${PREFIX} += ${exe}" >> tests.mk |