From aa51adcfc9a79c606aa4435dc64dd5f160efbde1 Mon Sep 17 00:00:00 2001 From: peter Date: Sun, 20 Sep 2026 20:58:10 +0000 Subject: Start working on migrating to autoconf/automake instead of cmake FossilOrigin-Name: d870487495106763d2a4e416f1ddbf4c795081a6b77100d34063591e385692e0 --- tests/run_simple_test.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 tests/run_simple_test.sh (limited to 'tests/run_simple_test.sh') 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 -- cgit v1.2.3