]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
ci: don't run unittests with clang fix/allowlist 401/head
authorVincent Bernat <vincent@bernat.ch>
Sat, 27 Jun 2020 14:46:30 +0000 (16:46 +0200)
committerVincent Bernat <vincent@bernat.ch>
Sat, 27 Jun 2020 14:46:30 +0000 (16:46 +0200)
libcheck introduced a change in 0.15 which is incompatible with clang.

tests/ci/run.sh

index 6cde2cfd61d5275ef05ad4cc99e2c99a1b9457a1..24a727ff8614e2b8bae2143fe615bf8f5143a3fb 100755 (executable)
@@ -22,11 +22,16 @@ esac
     exit 1
 }
 make all ${MAKE_ARGS-CFLAGS=-Werror} || make all ${MAKE_ARGS-CFLAGS=-Werror} V=1
-make check ${MAKE_ARGS-CFLAGS=-Werror} || {
-    [ ! -f tests/test-suite.log ] || cat tests/test-suite.log
-    exit 1
-}
-make distcheck
+
+# Temporarily don't run checks with clang, due to libcheck incompatibility:
+# See: <https://github.com/libcheck/check/issues/276>
+if [ "$CC" != clang ]; then
+    make check ${MAKE_ARGS-CFLAGS=-Werror} || {
+        [ ! -f tests/test-suite.log ] || cat tests/test-suite.log
+        exit 1
+    }
+    make distcheck
+fi
 
 case "$(uname -s)" in
     Darwin)