From bb40c4cbc74fe48a04069e6efb78c94bd0cc0451 Mon Sep 17 00:00:00 2001 From: "martin@ashbysoft.com" Date: Sat, 11 Jun 2022 21:59:03 +0000 Subject: Add CuTest and test script. Update ex1-9 with unit tests using CuTest. --- test | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 test (limited to 'test') diff --git a/test b/test new file mode 100755 index 0000000..4e32886 --- /dev/null +++ b/test @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +set -e +cc -Dtest=true -o test_exe CuTest.c $@ +./test_exe +result=$? +rm test_exe +exit $result -- cgit v1.2.3-ZIG