20 lines
395 B
Bash
Executable File
20 lines
395 B
Bash
Executable File
#!/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
|