blob: 762650ef19b0cf2df3fc43f6e43e10d4d22dc190 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh
mkdir -p $(for d in "${@}"; do echo "$d"; done | uniq | sed "s|^|reports/|")
for s in "${@}"
do
echo ".PHONY: $s" >> tests.mk
echo "$s:" >> tests.mk
echo " ../fwd $s/$s.fwd > reports/$s/gen.c 2> reports/$s/log" >> tests.mk
echo " \$(COMPILE_TEST) reports/$s/gen.c -o reports/$s/$s \\" >> tests.mk
echo " \$(TEST_LIBS)" >> tests.mk
echo " ./reports/$s/$s > reports/$s/OK 2>&1" >> tests.mk
done
echo "TESTS += " "${@}" >> tests.mk
|