move test.sh to its own folder
This commit is contained in:
12
testing/test.sh
Normal file
12
testing/test.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
i=1
|
||||
while test -e "$i".test; do
|
||||
printf '%s: %s: Running test...\n' "$0" "$i".test
|
||||
./"$i".test >"$i".result
|
||||
diff 1.expected 1.result
|
||||
printf '%s: %s: Test passed.\n' "$0" "$i".test
|
||||
i="$(printf '%s + %s\n' 1 "$i" | bc)"
|
||||
done
|
||||
Reference in New Issue
Block a user