aboutsummaryrefslogtreecommitdiff
path: root/tests/scripts/gen-simple
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scripts/gen-simple')
-rwxr-xr-xtests/scripts/gen-simple10
1 files changed, 7 insertions, 3 deletions
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