20 lines
347 B
Bash
Executable File
20 lines
347 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
# Test cppipe functions
|
|
OKs=$(test/functions_test.cppipe 2>/dev/null | grep OK | wc -l)
|
|
if ! [ $OKs = 13 ]
|
|
then
|
|
echo "Functions test failed: EXPECTED 13 OKs, got $OKs"
|
|
exit 1
|
|
fi
|
|
echo Functions test OK!
|
|
|
|
# Test on a C file
|
|
cppipe test/c_file.c
|
|
|
|
# Test the cppipe command
|
|
./test/command_line_test.sh
|
|
|
|
echo ALL TESTS PASSED
|