aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh15
1 files changed, 14 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index a2f91ec..82eb864 100755
--- a/build.sh
+++ b/build.sh
@@ -51,6 +51,7 @@ if [[ $1 == "no_tests" ]]; then
fi
echo
+echo "---- Ungrateful tests ----"
for test in tests/un/*.c; do
fname=$(basename -- "$test")
@@ -65,7 +66,8 @@ for test in tests/un/*.c; do
fi
done
-wait
+echo
+echo "---- Cynic tests ----"
for test in tests/cyn/*.c; do
fname=$(basename -- "$test")
@@ -82,7 +84,12 @@ done
wait
+echo "---- Compiled ----"
echo
+echo "---- Running tests ----"
+
+passed=0
+failed=0
for case in bin/*; do
if [[ $1 == "quiet" ]]; then
@@ -92,8 +99,14 @@ for case in bin/*; do
fi
if [[ $? -eq 0 ]]; then
+ let "passed++"
echo "[DONE] $case"
else
+ let "failed++"
echo "[FAIL] $case"
fi
done
+
+echo
+echo "---- Done ----"
+echo "Passed: $passed, Failed: $failed"