]> eyrie.org Git - kerberos/krb5-strength.git/blobdiff - ci/test
Enable valgrind and cppcheck testing for CI
[kerberos/krb5-strength.git] / 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