diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-22 14:47:25 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-22 14:47:25 +0200 |
| commit | 93522effba2f200257141189de5925a23fca93b8 (patch) | |
| tree | 96d94b56017f1448832b5dc9e24bfcb31183f13c /shell/test.sh | |
| parent | 1fb55fe25b3dd5ef61dbc38290fbba2e233dc6b6 (diff) | |
| download | nissy-core-93522effba2f200257141189de5925a23fca93b8.tar.gz nissy-core-93522effba2f200257141189de5925a23fca93b8.zip | |
Remove compose from the public API
Diffstat (limited to '')
| -rwxr-xr-x | shell/test.sh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/shell/test.sh b/shell/test.sh deleted file mode 100755 index 8bc4589..0000000 --- a/shell/test.sh +++ /dev/null | |||
| @@ -1,22 +0,0 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | SHELLBIN="./debugrun" | ||
| 4 | TESTDIR="./shell/testcases" | ||
| 5 | TESTOUT="shell/lasttest.out" | ||
| 6 | TESTERR="shell/lasttest.err" | ||
| 7 | |||
| 8 | for cin in "$TESTDIR"/*.in; do | ||
| 9 | c=$(echo "$cin" | sed 's/\.in//') | ||
| 10 | cout="$c.out" | ||
| 11 | printf "%s: " "$c" | ||
| 12 | (cat "$cin" | xargs "$SHELLBIN") > $TESTOUT 2> $TESTERR | ||
| 13 | if diff "$cout" "$TESTOUT"; then | ||
| 14 | printf "OK\n" | ||
| 15 | else | ||
| 16 | printf "Test failed! stderr:\n" | ||
| 17 | cat $TESTERR | ||
| 18 | exit 1 | ||
| 19 | fi | ||
| 20 | done | ||
| 21 | |||
| 22 | echo "All tests passed!" | ||
