From aaeb153ce869567f4f88f083dba28445216714f6 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 22 Jan 2023 00:23:32 +0100 Subject: Started working on testing (broken for now) --- test.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 test.sh (limited to 'test.sh') diff --git a/test.sh b/test.sh new file mode 100755 index 0000000..b7882a4 --- /dev/null +++ b/test.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +# Warning: tests should be in the correct order! +# Every testing module assumes that modules it depends on pass their tests. +all_modules=fst + +test_module() { + modules=$@ + for m in modules; do + ./tests/nissy_test $m + done +} + +if [ -n "$@" ]; then + test_module $@ +else + test_module $all_modules +fi +rm tests/nissy_test -- cgit v1.3