X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=t%2Fcibuild.sh;h=48c56c7b4e7ee9190166713240170fa8c4f7cd21;hp=120d4278b9e7f404d1175cab90626a30d547650d;hb=a248a2d506d3caf06d3cf5284231df6fc583087e;hpb=f7bf1a1f05648e6292baded4828b46bea0f59075 diff --git a/t/cibuild.sh b/t/cibuild.sh index 120d427..48c56c7 100755 --- a/t/cibuild.sh +++ b/t/cibuild.sh @@ -7,8 +7,20 @@ set -ex ./autogen.sh -./configure --enable-gcov $CIOPTIONS \ - CFLAGS="-O0 -Wno-sign-conversion $CICFLAGS" \ +./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 +