From 5b1fec9af7b64b4fdc67eb1b80fcc594c9d51202 Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Mon, 28 Aug 2023 23:20:05 +0200 Subject: [PATCH] Adapt tests to optional makefile variables --- tests/test.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/test.sh b/tests/test.sh index 04b2deb..c9972f2 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -53,13 +53,16 @@ set -e +CC="clang -std=c99" +CFLAGS="-pedantic -Wall -Wextra -g -O2" + make clean; make tis-ci make clean; make test -make clean; make test CFLAGS="-DBLAKE2_NO_UNROLLING -O3" -make clean; make test CC="clang -std=c99" CFLAGS="-g -fsanitize=address" -make clean; make test CC="clang -std=c99" CFLAGS="-g -fsanitize=memory" -make clean; make test CC="clang -std=c99" CFLAGS="-g -fsanitize=undefined" -make clean; make test.out CFLAGS="-g"; valgrind ./test.out +make clean; make test CFLAGS="$CFLAGS -DBLAKE2_NO_UNROLLING" +make clean; make test CFLAGS="$CFLAGS -fsanitize=address" +make clean; make test CFLAGS="$CFLAGS -fsanitize=memory" +make clean; make test CFLAGS="$CFLAGS -fsanitize=undefined" +make clean; make test.out CC="gcc -std=c99"; valgrind ./test.out echo echo "All sanitisers passed!" -- 2.47.3