From d42a1a35b0c2f2178e459b9328f97f9e988a1cb0 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Tue, 2 Sep 2014 09:07:17 +0200 Subject: tests: allow conditionnal execution on pattern Option can be used to filter out irrelevant tests usage: ./torture_pki '*ed25519' Signed-off-by: Aris Adamantiadis Reviewed-by: Andreas Schneider --- tests/client/torture_proxycommand.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/client/torture_proxycommand.c') diff --git a/tests/client/torture_proxycommand.c b/tests/client/torture_proxycommand.c index 8cf68685..a1508811 100644 --- a/tests/client/torture_proxycommand.c +++ b/tests/client/torture_proxycommand.c @@ -42,7 +42,7 @@ static void torture_options_set_proxycommand_notexist(void **state) { int torture_run_tests(void) { int rc; - const UnitTest tests[] = { + UnitTest tests[] = { unit_test_setup_teardown(torture_options_set_proxycommand, setup, teardown), unit_test_setup_teardown(torture_options_set_proxycommand_notexist, setup, teardown), }; @@ -50,6 +50,7 @@ int torture_run_tests(void) { ssh_init(); + torture_filter_tests(tests); rc = run_tests(tests); ssh_finalize(); -- cgit