summaryrefslogtreecommitdiff
path: root/examples/unit/run_tests.sh
diff options
context:
space:
mode:
authorTom Harley2019-12-23 01:32:39 +0000
committerTom Harley2019-12-23 01:32:39 +0000
commit7bc67b95161a34f8eca635d4000d9602508a9243 (patch)
tree585b3778dc1967832390e5829e4b3909b4184a2c /examples/unit/run_tests.sh
parentAdd basics for interpreter; add CLI options (diff)
downloadsinter-7bc67b95161a34f8eca635d4000d9602508a9243.tar.gz
sinter-7bc67b95161a34f8eca635d4000d9602508a9243.zip

checkpoint

Diffstat (limited to 'examples/unit/run_tests.sh')
-rwxr-xr-xexamples/unit/run_tests.sh21
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