X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Fcibuild.sh;h=48c56c7b4e7ee9190166713240170fa8c4f7cd21;hb=b2d31bc42a7694c671186081ee0cac077a188b99;hp=fdf4badceddae3091bb014e591e8f309250b0e58;hpb=ddfddb7cf99d898a70e911fa0d0ed4597a47b603;p=sysdb.git diff --git a/t/cibuild.sh b/t/cibuild.sh index fdf4bad..48c56c7 100755 --- a/t/cibuild.sh +++ b/t/cibuild.sh @@ -7,6 +7,20 @@ set -ex ./autogen.sh -./configure --enable-gcov CFLAGS="-O0 -Wno-sign-conversion" +./configure --enable-standards --enable-gcov $CIOPTIONS \ + CFLAGS="-O0 $CICFLAGS" \ + LDFLAGS="$CILDFLAGS" make clean all -make test + +case "$CICFLAGS" in + *sanitize=address*) + # skip regular tests + ;; + *) + # old versions of gcc and clang complain about { 0 } initializers + make -j10 test \ + TESTS_ENVIRONMENT="./testwrapper.sh" \ + CFLAGS="-O0 $CICFLAGS -Wno-missing-field-initializers" + ;; +esac +