summaryrefslogtreecommitdiff
path: root/tests/run_simple_test.sh
diff options
context:
space:
mode:
authorpeter <peter@pmikkelsen.com>2026-09-22 19:23:46 +0000
committerpeter <peter@pmikkelsen.com>2026-09-22 19:23:46 +0000
commitec058e1f6acc1f6f98ebb31a350531f387441781 (patch)
tree8b95b4eb67d108dc17312ecdd635e8a7dad29880 /tests/run_simple_test.sh
parent0b6ea0024a5a51db015797e952d55bfac49b4b6d (diff)
parent1e88f84ab887be0330585fdb7b8eeb22280cc9d6 (diff)
Update branch to get the latest autotools stuff
FossilOrigin-Name: a39b9d0fe118ac1f3202f7b730f504056fdba8f0ab5fe79961e0861367fc60bb
Diffstat (limited to 'tests/run_simple_test.sh')
-rwxr-xr-xtests/run_simple_test.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/run_simple_test.sh b/tests/run_simple_test.sh
new file mode 100755
index 0000000..6c1d56c
--- /dev/null
+++ b/tests/run_simple_test.sh
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+input=$1
+
+input=${input#*/tests/}
+program=${input%%/*}
+
+input=${input#*/}
+expected=${input%%/*}
+
+"./testbin-$program" "$1"
+status=$?
+
+case $expected in
+ good)
+ [ "$status" -eq 0 ]
+ ;;
+ bad)
+ [ "$status" -ne 0 ]
+ ;;
+esac