1
0

move test.sh to its own folder

This commit is contained in:
dtb
2023-09-04 10:39:03 -04:00
parent fec9b4ac53
commit 3ddc535924
2 changed files with 3 additions and 3 deletions

12
testing/test.sh Normal file
View 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