diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-01-22 00:23:32 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-01-22 00:23:32 +0100 |
| commit | aaeb153ce869567f4f88f083dba28445216714f6 (patch) | |
| tree | 00848a7ee91478f68f26226d10685c579079fe88 /test.sh | |
| parent | 6dc6d1004393b7c093a3aef7456af67662d56fee (diff) | |
| download | nissy-aaeb153ce869567f4f88f083dba28445216714f6.tar.gz nissy-aaeb153ce869567f4f88f083dba28445216714f6.zip | |
Started working on testing (broken for now)
Diffstat (limited to '')
| -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 | ||
