blob: 5521006c7bd2e8dc1b5f21bfd7d09780a9b21281 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
PREFIX=TESTS
for s in ${@}
do
src="${s#*/}"
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} libejit.a" >> tests.mk
echo " \$(COMPILE_TEST) ${s} libejit.a -o ${exe}" >> tests.mk
done
|