aboutsummaryrefslogtreecommitdiff
path: root/tests/scripts/gen-simple
blob: cf4c35cbb57de7d63dcf9a57ac51816d0a05895c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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 "	@../ek $s/$s.ek > reports/$s/log 2>&1\\"	>> tests.mk
	echo "		&& echo OK > reports/$s/OK \\"		>> tests.mk
	echo "		|| echo ERR > reports/$s/OK"		>> tests.mk
done

echo "TESTS += " "${@}" >> tests.mk