diff options
Diffstat (limited to 'test.sh')
| -rwxr-xr-x | test.sh | 19 |
1 files changed, 19 insertions, 0 deletions
| @@ -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. | ||
| 5 | all_modules=fst | ||
| 6 | |||
| 7 | test_module() { | ||
| 8 | modules=$@ | ||
| 9 | for m in modules; do | ||
| 10 | ./tests/nissy_test $m | ||
| 11 | done | ||
| 12 | } | ||
| 13 | |||
| 14 | if [ -n "$@" ]; then | ||
| 15 | test_module $@ | ||
| 16 | else | ||
| 17 | test_module $all_modules | ||
| 18 | fi | ||
| 19 | rm tests/nissy_test | ||
