diff options
author | martin@ashbysoft.com <martin@ashbysoft.com> | 2022-06-11 21:59:03 +0000 |
---|---|---|
committer | martin@ashbysoft.com <martin@ashbysoft.com> | 2022-06-11 21:59:03 +0000 |
commit | bb40c4cbc74fe48a04069e6efb78c94bd0cc0451 (patch) | |
tree | 60580318d7c9cbb7df1aa95739e9171f76e824cf /test | |
parent | 83e0861e200999ed46a1a1a8afa0b5638e48e14b (diff) | |
download | learn-c-bb40c4cbc74fe48a04069e6efb78c94bd0cc0451.tar.gz learn-c-bb40c4cbc74fe48a04069e6efb78c94bd0cc0451.tar.bz2 learn-c-bb40c4cbc74fe48a04069e6efb78c94bd0cc0451.tar.xz learn-c-bb40c4cbc74fe48a04069e6efb78c94bd0cc0451.zip |
Add CuTest and test script.
Update ex1-9 with unit tests using CuTest.
Diffstat (limited to 'test')
-rwxr-xr-x | test | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |