From eff7f52c368df5dc662d54956de5aa3b2b9ee936 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Mon, 26 Aug 2024 18:34:24 +0300 Subject: simplify tests --- tests/scripts/gen-simple | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tests/scripts/gen-simple') diff --git a/tests/scripts/gen-simple b/tests/scripts/gen-simple index ddec9a4..418cc02 100755 --- a/tests/scripts/gen-simple +++ b/tests/scripts/gen-simple @@ -26,6 +26,10 @@ echo " rm -f reports/$NAME/*" >> tests.mk echo " timeout --foreground 30s \$(QEMU) \ build/$NAME/initrd > reports/$NAME/log" >> tests.mk -echo "TESTS += $NAME" >> tests.mk -echo ".PHONY: do-$NAME" >> tests.mk -echo "do-$NAME: reports/$NAME/log" >> tests.mk +echo "TESTS += $NAME" >> tests.mk +echo ".PHONY: $NAME" >> tests.mk +echo "$NAME: reports/$NAME/log" >> tests.mk +echo " grep 'BUG' reports/$NAME/log \\" >> tests.mk +echo " && echo 'BUG' > reports/$NAME/log \\" >> tests.mk +echo " || tail -n1 reports/$NAME/log | tr -d '\\\\r' \\" >> tests.mk +echo " > reports/$NAME/OK" >> tests.mk -- cgit v1.3