diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/00_basic/basic_tests.c | 1 | ||||
| -rwxr-xr-x | test/test.sh | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/test/00_basic/basic_tests.c b/test/00_basic/basic_tests.c index ddfecb4..5f5df6b 100644 --- a/test/00_basic/basic_tests.c +++ b/test/00_basic/basic_tests.c | |||
| @@ -14,6 +14,7 @@ check(cube_t cube, char *name) | |||
| 14 | void | 14 | void |
| 15 | check2(cube_t cube1, char *name1, cube_t cube2, char *name2) | 15 | check2(cube_t cube1, char *name1, cube_t cube2, char *name2) |
| 16 | { | 16 | { |
| 17 | fprintf(stderr, "check2 %s %s\n", name1, name2); | ||
| 17 | printf("%s and %s are%s equal\n", name1, name2, | 18 | printf("%s and %s are%s equal\n", name1, name2, |
| 18 | equal(cube1, cube2) ? "" : " NOT"); | 19 | equal(cube1, cube2) ? "" : " NOT"); |
| 19 | } | 20 | } |
diff --git a/test/test.sh b/test/test.sh index 9e064b2..1ee972d 100755 --- a/test/test.sh +++ b/test/test.sh | |||
| @@ -1,10 +1,14 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | CC="cc -DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra \ | 3 | CC="cc -DDEBUG -std=c99 -pthread -pedantic -Wall -Wextra \ |
| 4 | -Wno-unused-parameter -Wno-unused-function -g3" | 4 | -Wno-unused-parameter -Wno-unused-function -g3 -D$CUBETYPE" |
| 5 | if [ $(uname) != "OpenBSD" ]; then | 5 | if [ "$CUBETYPE" = "CUBE_AVX2" ]; then |
| 6 | CC="$CC -mavx2" | ||
| 7 | fi | ||
| 8 | if [ "$(uname)" != "OpenBSD" ]; then | ||
| 6 | CC="$CC -fsanitize=address -fsanitize=undefined" | 9 | CC="$CC -fsanitize=address -fsanitize=undefined" |
| 7 | fi | 10 | fi |
| 11 | |||
| 8 | TESTBIN="test/run" | 12 | TESTBIN="test/run" |
| 9 | TESTOUT="test/last.out" | 13 | TESTOUT="test/last.out" |
| 10 | TESTERR="test/last.err" | 14 | TESTERR="test/last.err" |
