aboutsummaryrefslogtreecommitdiff
path: root/test/test.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-07-11 15:18:16 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-07-11 15:18:16 +0200
commit4abb81c230bfcd599ccceb2b1bcbdcadbd859537 (patch)
tree41dd1cf04d0ff34022fa7669c0b00cd2f051f7d9 /test/test.sh
parent275d8c66d2aa4793d986bcc7939cb4adcd64e018 (diff)
downloadnissy-core-4abb81c230bfcd599ccceb2b1bcbdcadbd859537.tar.gz
nissy-core-4abb81c230bfcd599ccceb2b1bcbdcadbd859537.zip
Cleanup makefile and tools
Diffstat (limited to 'test/test.sh')
-rwxr-xr-xtest/test.sh12
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
3detectsan() {
4 cc -fsanitize=$1 -dM -E -x c - </dev/null 2>/dev/null \
5 | grep "SANITIZE"
6}
7
8re="${TEST:-$@}" 3re="${TEST:-$@}"
9 4
10CC="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
17TESTBIN="test/run" 5TESTBIN="test/run"
18TESTOUT="test/last.out" 6TESTOUT="test/last.out"
19TESTERR="test/last.err" 7TESTERR="test/last.err"

Generated with cgit - Back to sebastiano.tronto.net