mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-25 08:48:31 -05:00
tests: Add --valgrind argument to parallel-vm.py
Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
eb9c155498
commit
4f76eb81e9
@ -330,6 +330,9 @@ def main():
|
|||||||
p.add_argument('--long', dest='long', action='store_const', const=True,
|
p.add_argument('--long', dest='long', action='store_const', const=True,
|
||||||
default=False,
|
default=False,
|
||||||
help="include long-duration test cases")
|
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='*')
|
p.add_argument('params', nargs='*')
|
||||||
args = p.parse_args()
|
args = p.parse_args()
|
||||||
num_servers = args.num_servers
|
num_servers = args.num_servers
|
||||||
@ -337,6 +340,8 @@ def main():
|
|||||||
if args.debug:
|
if args.debug:
|
||||||
debug_level = logging.DEBUG
|
debug_level = logging.DEBUG
|
||||||
extra_args = []
|
extra_args = []
|
||||||
|
if args.valgrind:
|
||||||
|
extra_args += [ '--valgrind' ]
|
||||||
if args.long:
|
if args.long:
|
||||||
extra_args += [ '--long' ]
|
extra_args += [ '--long' ]
|
||||||
if args.codecov:
|
if args.codecov:
|
||||||
|
Loading…
Reference in New Issue
Block a user