aboutsummaryrefslogtreecommitdiff
path: root/test/test.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-10-02 18:37:36 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-10-03 10:25:03 +0200
commitb8d17736ce2c85174a47c7200ef6d19a51d0c347 (patch)
treee62a8eb0c2ccf05be9b0b0791915e9aa1fca46e8 /test/test.sh
parent8d3fe446815a1631876e4170747bc6cb03a6bbf8 (diff)
downloadnissy-core-b8d17736ce2c85174a47c7200ef6d19a51d0c347.tar.gz
nissy-core-b8d17736ce2c85174a47c7200ef6d19a51d0c347.zip
Do not run make clean automatically on every build and other Makefile changes
Diffstat (limited to '')
-rwxr-xr-xtest/test.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test.sh b/test/test.sh
index 14b4ca3..a675286 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -5,7 +5,6 @@ re="${TEST:-$@}"
5TESTBIN="test/run" 5TESTBIN="test/run"
6TESTOUT="test/last.out" 6TESTOUT="test/last.out"
7TESTERR="test/last.err" 7TESTERR="test/last.err"
8CUBEOBJ="debugcube.o"
9 8
10for t in test/*; do 9for t in test/*; do
11 if [ -n "$re" ] && !(echo "$t" | grep -q "$re"); then 10 if [ -n "$re" ] && !(echo "$t" | grep -q "$re"); then
@@ -14,7 +13,7 @@ for t in test/*; do
14 13
15 # Verify if $t is a directory and if its name starts with three digits 14 # Verify if $t is a directory and if its name starts with three digits
16 if [ -d "$t" ] && basename "$t" | grep -Eq '^[0-9]{3}'; then 15 if [ -d "$t" ] && basename "$t" | grep -Eq '^[0-9]{3}'; then
17 $CC -o $TESTBIN "$t"/*.c $CUBEOBJ || exit 1 16 $CC -o $TESTBIN "$t"/*.c $OBJ || exit 1
18 for cin in "$t"/*.in; do 17 for cin in "$t"/*.in; do
19 c=$(echo "$cin" | sed 's/\.in//') 18 c=$(echo "$cin" | sed 's/\.in//')
20 cout="$c.out" 19 cout="$c.out"
@@ -32,4 +31,3 @@ for t in test/*; do
32done 31done
33 32
34echo "All tests passed!" 33echo "All tests passed!"
35rm -rf $TESTBIN $TESTOUT $TESTERR $CUBEOBJ

Generated with cgit - Back to sebastiano.tronto.net