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_algorithms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/client/torture_algorithms.c') diff --git a/tests/client/torture_algorithms.c b/tests/client/torture_algorithms.c index 8a466380..dc7b6539 100644 --- a/tests/client/torture_algorithms.c +++ b/tests/client/torture_algorithms.c @@ -289,7 +289,7 @@ static void torture_algorithms_dh_group1(void **state) { } int torture_run_tests(void) { int rc; - const UnitTest tests[] = { + UnitTest tests[] = { unit_test_setup_teardown(torture_algorithms_aes128_cbc_hmac_sha1, setup, teardown), unit_test_setup_teardown(torture_algorithms_aes128_cbc_hmac_sha2_256, setup, teardown), unit_test_setup_teardown(torture_algorithms_aes128_cbc_hmac_sha2_512, setup, teardown), @@ -323,7 +323,7 @@ int torture_run_tests(void) { }; ssh_init(); - + torture_filter_tests(tests); rc = run_tests(tests); ssh_finalize(); -- cgit