aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorbonmas14 <bonmas14@gmail.com>2025-08-04 16:08:22 +0000
committerbonmas14 <bonmas14@gmail.com>2025-08-04 16:08:22 +0000
commitb16ca14911ad5df44ae499eed2d90c3ca2da4eb0 (patch)
tree685d64ea40f66b72c994bcfd3de0c5015a9cf36a /build.sh
parented1cab483e49e29396178a33dea51773aa770855 (diff)
downloadungrateful-b16ca14911ad5df44ae499eed2d90c3ca2da4eb0.tar.gz
ungrateful-b16ca14911ad5df44ae499eed2d90c3ca2da4eb0.zip
Vecs and tests
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"