aboutsummaryrefslogtreecommitdiff
path: root/scripts/gen-tests
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/gen-tests')
-rwxr-xr-xscripts/gen-tests6
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