From 1240ce24b3dd59bb2f48a396043b4115cc49c6e1 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 17 Mar 2012 16:47:33 -0500 Subject: Passing --verify to regression tests uses valgrind --- test/LedgerHarness.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/LedgerHarness.py') diff --git a/test/LedgerHarness.py b/test/LedgerHarness.py index 564a4d32..3477e720 100755 --- a/test/LedgerHarness.py +++ b/test/LedgerHarness.py @@ -81,6 +81,13 @@ class LedgerHarness: command = re.sub('\$ledger', '%s%s %s' % \ (self.ledger, insert, '--args-only'), command) + valgrind = '/usr/bin/valgrind' + if not os.path.isfile(valgrind): + valgrind = '/opt/local/bin/valgrind' + + if os.path.isfile(valgrind) and '--verify' in insert: + command = valgrind + ' -q ' + command + return Popen(command, shell=True, close_fds=True, env=env, stdin=PIPE, stdout=PIPE, stderr=PIPE) -- cgit v1.2.3