kwil-header-tool/test.sh

20 lines
395 B
Bash
Raw Normal View History

2023-09-11 16:44:29 +00:00
#!/bin/bash
echo ""
echo "Beginning test"
echo ""
echo "" && echo "---- Running kwil ----" && \
./run.sh && \
echo "" && echo "---- Compiling test program ----" && \
gcc -g -o bin/test test_files/*.c -Itest_include -Wall && \
echo "" && echo "---- Running test program ----" && \
bin/test
if [[ $? == 0 ]]; then
echo ""
echo "Test succeeded"
else
echo ""
echo "Test failed"
fi