Skip to content

Commit f91e23f

Browse files
cipherboyfrozencemetery
authored andcommitted
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 <[email protected]> Reviewed-by: Robbie Harwood <[email protected]> Merges: #243
1 parent 6accc0a commit f91e23f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/runtests.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def runtests_main(testfiles):
5252
for e in ["bash", "pkg-config", "zcat", "kinit", "krb5kdc", "kdb5_util",
5353
"kadmin.local", "kdb5_ldap_util", "slapd", "slapadd",
5454
"ldapmodify", "valgrind"]:
55+
if e == "valgrind" and not args['valgrind_cmd'].startswith('valgrind'):
56+
continue
57+
5558
check_exec(e)
5659

5760
testdir = args['path']

0 commit comments

Comments
 (0)