From 4af5176d6377958a457da3e5f671ce21540fad70 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 18 Aug 2024 20:48:27 +0300 Subject: add tests and fixes on top of 674438 --- tests/scripts/gen-simple | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 tests/scripts/gen-simple (limited to 'tests/scripts/gen-simple') diff --git a/tests/scripts/gen-simple b/tests/scripts/gen-simple new file mode 100755 index 0000000..b8ddd9f --- /dev/null +++ b/tests/scripts/gen-simple @@ -0,0 +1,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 -- cgit v1.3