aboutsummaryrefslogtreecommitdiff
path: root/tests/scripts/gen-simple
blob: b8ddd9f62e879b366aa498d7b22aa5709bb3c786 (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 "	@../qbt $s/$s.qbt > 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