From b8d17736ce2c85174a47c7200ef6d19a51d0c347 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 2 Oct 2024 18:37:36 +0200 Subject: Do not run make clean automatically on every build and other Makefile changes --- test/test.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/test.sh') 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:-$@}" TESTBIN="test/run" TESTOUT="test/last.out" TESTERR="test/last.err" -CUBEOBJ="debugcube.o" for t in test/*; do if [ -n "$re" ] && !(echo "$t" | grep -q "$re"); then @@ -14,7 +13,7 @@ for t in test/*; do # Verify if $t is a directory and if its name starts with three digits if [ -d "$t" ] && basename "$t" | grep -Eq '^[0-9]{3}'; then - $CC -o $TESTBIN "$t"/*.c $CUBEOBJ || exit 1 + $CC -o $TESTBIN "$t"/*.c $OBJ || exit 1 for cin in "$t"/*.in; do c=$(echo "$cin" | sed 's/\.in//') cout="$c.out" @@ -32,4 +31,3 @@ for t in test/*; do done echo "All tests passed!" -rm -rf $TESTBIN $TESTOUT $TESTERR $CUBEOBJ -- cgit v1.3