diff options
| author | Tom Harley | 2019-12-23 01:32:39 +0000 |
|---|---|---|
| committer | Tom Harley | 2019-12-23 01:32:39 +0000 |
| commit | 7bc67b95161a34f8eca635d4000d9602508a9243 (patch) | |
| tree | 585b3778dc1967832390e5829e4b3909b4184a2c /examples/unit/run_tests.sh | |
| parent | Add basics for interpreter; add CLI options (diff) | |
| download | sinter-7bc67b95161a34f8eca635d4000d9602508a9243.tar.gz sinter-7bc67b95161a34f8eca635d4000d9602508a9243.zip | |
checkpoint
Diffstat (limited to 'examples/unit/run_tests.sh')
| -rwxr-xr-x | examples/unit/run_tests.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/unit/run_tests.sh b/examples/unit/run_tests.sh new file mode 100755 index 0000000..2146746 --- /dev/null +++ b/examples/unit/run_tests.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +make --silent clean +make --silent test_framework.o + +for t in test_*.sin ; do + exe="$(basename -s .sin $t)" + echo -n "$exe... " + make --silent "$exe" + if [ $? -ne 0 ] ; then + echo "cannot build" + continue + fi + echo -n "built " + ./"$exe" + if [ $? -ne 0 ] ; then + echo "failed" + continue + fi + echo "passed" +done |
