Files
cppipe/run_tests.sh
T
2025-06-06 18:00:38 +03:00

16 lines
249 B
Bash
Executable File

#!/bin/sh
set -e
# Test cppipe functions
OKs=$(cppipe test/functions_test.cppipe | grep OK | wc -l)
if ! [ $OKs = 12 ]
then
echo "EXPECTED 1 OKs, got $OKs"
exit 1
fi
# Test on a C file
echo OK | cppipe test/c_file.c
echo ALL TESTS PASSED