aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.gitignore1
-rwxr-xr-xtest/test.sh7
2 files changed, 6 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 24893c2..e0538cd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
1test/*/runtest 1test/*/runtest
2test/run 2test/run
3test/last.* 3test/last.*
4test/*.o
diff --git a/test/test.sh b/test/test.sh
index fb932af..5e17d33 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -9,10 +9,13 @@ SRC="src/cube_array.c"
9TESTBIN="test/run" 9TESTBIN="test/run"
10TESTOUT="test/last.out" 10TESTOUT="test/last.out"
11TESTERR="test/last.err" 11TESTERR="test/last.err"
12CUBEOBJ="test/cube.o"
13
14$CC -c $SRC -o $CUBEOBJ
12 15
13for t in test/*; do 16for t in test/*; do
14 if [ ! -d $t ]; then continue; fi 17 if [ ! -d $t ]; then continue; fi
15 $CC -o $TESTBIN $t/*.c $SRC || exit 1; 18 $CC -o $TESTBIN $t/*.c $CUBEOBJ || exit 1;
16 for cin in $t/*.in; do 19 for cin in $t/*.in; do
17 c=$(echo "$cin" | sed 's/\.in//') 20 c=$(echo "$cin" | sed 's/\.in//')
18 cout=$c.out 21 cout=$c.out
@@ -29,4 +32,4 @@ for t in test/*; do
29done 32done
30 33
31echo "All tests passed!" 34echo "All tests passed!"
32rm -rf $TESTBIN $TESTOUT $TESTERR 35rm -rf $TESTBIN $TESTOUT $TESTERR $CUBEOBJ

Generated with cgit - Back to sebastiano.tronto.net