From 7790e27b3423901e2080bfd3c600a65a48d42886 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Fri, 1 May 2026 18:37:38 +0300 Subject: start adding proper tests --- tests/scripts/gen-xpass | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tests/scripts/gen-xpass (limited to 'tests/scripts/gen-xpass') diff --git a/tests/scripts/gen-xpass b/tests/scripts/gen-xpass new file mode 100755 index 0000000..762650e --- /dev/null +++ b/tests/scripts/gen-xpass @@ -0,0 +1,15 @@ +#!/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 " ../fwd $s/$s.fwd > reports/$s/gen.c 2> reports/$s/log" >> tests.mk + echo " \$(COMPILE_TEST) reports/$s/gen.c -o reports/$s/$s \\" >> tests.mk + echo " \$(TEST_LIBS)" >> tests.mk + echo " ./reports/$s/$s > reports/$s/OK 2>&1" >> tests.mk +done + +echo "TESTS += " "${@}" >> tests.mk -- cgit v1.2.3