From: Jouni Malinen Date: Sat, 14 Mar 2015 10:09:23 +0000 (+0200) Subject: tests: Add --valgrind argument to parallel-vm.py X-Git-Tag: hostap_2_4~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f76eb81e9d8da87c61c804254e61c3047b23b43;p=thirdparty%2Fhostap.git tests: Add --valgrind argument to parallel-vm.py Signed-off-by: Jouni Malinen --- diff --git a/tests/hwsim/vm/parallel-vm.py b/tests/hwsim/vm/parallel-vm.py index e55dfee27..4622512c2 100755 --- a/tests/hwsim/vm/parallel-vm.py +++ b/tests/hwsim/vm/parallel-vm.py @@ -330,6 +330,9 @@ def main(): p.add_argument('--long', dest='long', action='store_const', const=True, default=False, help="include long-duration test cases") + p.add_argument('--valgrind', dest='valgrind', action='store_const', + const=True, default=False, + help="run tests under valgrind") p.add_argument('params', nargs='*') args = p.parse_args() num_servers = args.num_servers @@ -337,6 +340,8 @@ def main(): if args.debug: debug_level = logging.DEBUG extra_args = [] + if args.valgrind: + extra_args += [ '--valgrind' ] if args.long: extra_args += [ '--long' ] if args.codecov: