aboutsummaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/test.sh b/test.sh
new file mode 100755
index 0000000..b7882a4
--- /dev/null
+++ b/test.sh
@@ -0,0 +1,19 @@
1#!/bin/sh
2
3# Warning: tests should be in the correct order!
4# Every testing module assumes that modules it depends on pass their tests.
5all_modules=fst
6
7test_module() {
8 modules=$@
9 for m in modules; do
10 ./tests/nissy_test $m
11 done
12}
13
14if [ -n "$@" ]; then
15 test_module $@
16else
17 test_module $all_modules
18fi
19rm tests/nissy_test

Generated with cgit - Back to sebastiano.tronto.net