From: Loup Vaillant Date: Mon, 28 Aug 2023 21:20:05 +0000 (+0200) Subject: Adapt tests to optional makefile variables X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=5b1fec9af7b64b4fdc67eb1b80fcc594c9d51202;p=Monocypher.git Adapt tests to optional makefile variables --- 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!"