From d40315bbb456d1ccf786cc06118ad4218880fd09 Mon Sep 17 00:00:00 2001 From: Alexander Scheel Date: Mar 18 2019 21:26:00 +0000 Subject: Permit testing sans Valgrind Only run the check_exec on Valgrind when present as the prefix to the --valgrind-cmd argument. This lets us run the test suite without Valgrind via: ./tests/runtests.py --valgrind-cmd "" Signed-off-by: Alexander Scheel --- diff --git a/tests/runtests.py b/tests/runtests.py index 4150543..9cd546f 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -52,6 +52,9 @@ def runtests_main(testfiles): for e in ["bash", "pkg-config", "zcat", "kinit", "krb5kdc", "kdb5_util", "kadmin.local", "kdb5_ldap_util", "slapd", "slapadd", "ldapmodify", "valgrind"]: + if e == "valgrind" and not args['valgrind_cmd'].startswith('valgrind'): + continue + check_exec(e) testdir = args['path']