diff options
Diffstat (limited to 'test')
| -rwxr-xr-x | test/test.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test.sh b/test/test.sh index 1ee972d..a018401 100755 --- a/test/test.sh +++ b/test/test.sh | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | re="${TEST:-$@}" | ||
| 4 | |||
| 3 | CC="cc -DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra \ | 5 | CC="cc -DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra \ |
| 4 | -Wno-unused-parameter -Wno-unused-function -g3 -D$CUBETYPE" | 6 | -Wno-unused-parameter -Wno-unused-function -g3 -D$CUBETYPE" |
| 5 | if [ "$CUBETYPE" = "CUBE_AVX2" ]; then | 7 | if [ "$CUBETYPE" = "CUBE_AVX2" ]; then |
| @@ -15,6 +17,9 @@ TESTERR="test/last.err" | |||
| 15 | CUBEOBJ="debugcube.o" | 17 | CUBEOBJ="debugcube.o" |
| 16 | 18 | ||
| 17 | for t in test/*; do | 19 | for t in test/*; do |
| 20 | if [ -n "$re" ] && [ -z "$(echo "$t" | grep "$re")" ]; then | ||
| 21 | continue | ||
| 22 | fi | ||
| 18 | if [ ! -d $t ]; then continue; fi | 23 | if [ ! -d $t ]; then continue; fi |
| 19 | $CC -o $TESTBIN $t/*.c $CUBEOBJ || exit 1; | 24 | $CC -o $TESTBIN $t/*.c $CUBEOBJ || exit 1; |
| 20 | for cin in $t/*.in; do | 25 | for cin in $t/*.in; do |
