]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: add scan-build compilation test
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 8 Dec 2016 11:13:34 +0000 (12:13 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 8 Dec 2016 13:47:38 +0000 (14:47 +0100)
test/compilation/002-scanbuild [new file with mode: 0755]

diff --git a/test/compilation/002-scanbuild b/test/compilation/002-scanbuild
new file mode 100755 (executable)
index 0000000..085cc65
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+cd ../..
+
+for opts in \
+       "--host-system=Linux" \
+       "--host-system=NetBSD" \
+       "--host-system=FreeBSD" \
+       "--without-nss" \
+       "--without-tomcrypt --without-nss"
+do
+       ./configure $opts
+       scan-build make "$@" || exit 1
+done