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/unittests/torture_channel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/unittests/torture_channel.c') diff --git a/tests/unittests/torture_channel.c b/tests/unittests/torture_channel.c index 1d928b84..a5819d8d 100644 --- a/tests/unittests/torture_channel.c +++ b/tests/unittests/torture_channel.c @@ -37,11 +37,12 @@ static void torture_channel_select(void **state) int torture_run_tests(void) { int rc; - const UnitTest tests[] = { + UnitTest tests[] = { unit_test(torture_channel_select), }; ssh_init(); + torture_filter_tests(tests); rc = run_tests(tests); ssh_finalize(); -- cgit