]> git.codecow.com Git - Monocypher.git/commitdiff
Fix stupid Github CI
authorLoup Vaillant <loup@loup-vaillant.fr>
Mon, 28 Aug 2023 21:29:54 +0000 (23:29 +0200)
committerLoup Vaillant <loup@loup-vaillant.fr>
Mon, 28 Aug 2023 21:40:31 +0000 (23:40 +0200)
Stupid Github CI make doesn't take environment variables into account.
We have to override them explicitly, hence the ridiculous CC="$CC".

tests/test.sh

index c9972f217d3f105b40f14e70dcb968a4b5240da8..81298237d3e0b017c422ff2e7936866a8b3ee336 100755 (executable)
@@ -58,10 +58,10 @@ CFLAGS="-pedantic -Wall -Wextra -g -O2"
 
 make clean;  make tis-ci
 make clean;  make test
-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 CC="$CC" CFLAGS="$CFLAGS -DBLAKE2_NO_UNROLLING"
+make clean;  make test CC="$CC" CFLAGS="$CFLAGS -fsanitize=address"
+make clean;  make test CC="$CC" CFLAGS="$CFLAGS -fsanitize=memory"
+make clean;  make test CC="$CC" CFLAGS="$CFLAGS -fsanitize=undefined"
 make clean;  make test.out CC="gcc -std=c99";  valgrind ./test.out
 
 echo