blob: 542bb7b40e252993860ec7cd8aa2bf5f7d00c8c7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/bin/sh
PREFIX=JIT_TEST
for s in ${@}
do
src="${s#*/}"
exe="tests/test-jit-${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
done
|