diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-07-11 15:18:16 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-07-11 15:18:16 +0200 |
| commit | 4abb81c230bfcd599ccceb2b1bcbdcadbd859537 (patch) | |
| tree | 41dd1cf04d0ff34022fa7669c0b00cd2f051f7d9 /test | |
| parent | 275d8c66d2aa4793d986bcc7939cb4adcd64e018 (diff) | |
| download | nissy-core-4abb81c230bfcd599ccceb2b1bcbdcadbd859537.tar.gz nissy-core-4abb81c230bfcd599ccceb2b1bcbdcadbd859537.zip | |
Cleanup makefile and tools
Diffstat (limited to 'test')
| -rwxr-xr-x | test/test.sh | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/test/test.sh b/test/test.sh index 8e50cf5..33613b1 100755 --- a/test/test.sh +++ b/test/test.sh | |||
| @@ -1,19 +1,7 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | detectsan() { | ||
| 4 | cc -fsanitize=$1 -dM -E -x c - </dev/null 2>/dev/null \ | ||
| 5 | | grep "SANITIZE" | ||
| 6 | } | ||
| 7 | |||
| 8 | re="${TEST:-$@}" | 3 | re="${TEST:-$@}" |
| 9 | 4 | ||
| 10 | CC="cc -DDEBUG -std=c99 -pedantic -Wall -Wextra \ | ||
| 11 | -Wno-unused-parameter -Wno-unused-function -g3 -D$CUBETYPE" | ||
| 12 | |||
| 13 | [ "$CUBETYPE" = "CUBE_AVX2" ] && CC="$CC -mavx2" | ||
| 14 | [ -n "$(detectsan address)" ] && CC="$CC -fsanitize=address" | ||
| 15 | [ -n "$(detectsan undefined)" ] && CC="$CC -fsanitize=undefined" | ||
| 16 | |||
| 17 | TESTBIN="test/run" | 5 | TESTBIN="test/run" |
| 18 | TESTOUT="test/last.out" | 6 | TESTOUT="test/last.out" |
| 19 | TESTERR="test/last.err" | 7 | TESTERR="test/last.err" |
