]> eyrie.org Git - kerberos/krb5-strength.git/commitdiff
Enable valgrind and cppcheck testing for CI
authorRuss Allbery <eagle@eyrie.org>
Sat, 16 May 2020 23:41:48 +0000 (16:41 -0700)
committerRuss Allbery <eagle@eyrie.org>
Sat, 16 May 2020 23:41:48 +0000 (16:41 -0700)
Run both MIT and Heimdal GCC tests under valgrind, and use the
MIT plus GCC build to run cppcheck.

ci/test

diff --git a/ci/test b/ci/test
index cd75a5df767dcde15b599c3ace5265ab013c946e..c0df36b6fe2c424d1ed40b5b87a4b7af7b2ef032 100755 (executable)
--- a/ci/test
+++ b/ci/test
@@ -23,7 +23,19 @@ if [ "$KERBEROS" = 'heimdal' ]; then
 else
     ./configure CC="$COMPILER"
 fi
-make warnings
 
-# Run tests.
-make check
+# Run the tests with valgrind for one of the compilers.  Arbitrarily
+# pick the GCC build.  (The assumption here is that other compilers won't
+# produce sufficiently different code as to create memory management
+# problems.)
+if [ "$COMPILER" = 'gcc' ]; then
+    make check-valgrind
+else
+    make check
+fi
+
+# Run some additional checks for one of the builds.  Arbitrarily pick the GCC
+# MIT build.
+if [ "$COMPILER" = 'gcc' ] && [ "$KERBEROS" = 'mit' ]; then
+    make check-cppcheck
+fi