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_sftp_static.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/client/torture_sftp_static.c') diff --git a/tests/client/torture_sftp_static.c b/tests/client/torture_sftp_static.c index 7631def0..0cfd9e20 100644 --- a/tests/client/torture_sftp_static.c +++ b/tests/client/torture_sftp_static.c @@ -19,12 +19,13 @@ static void torture_sftp_ext_new(void **state) { int torture_run_tests(void) { int rc; - const UnitTest tests[] = { + UnitTest tests[] = { unit_test(torture_sftp_ext_new), }; ssh_init(); + torture_filter_tests(tests); rc = run_tests(tests); ssh_finalize(); -- cgit