diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2014-09-02 09:07:17 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2015-02-02 17:34:15 +0100 |
commit | d42a1a35b0c2f2178e459b9328f97f9e988a1cb0 (patch) | |
tree | 509cf5ffb852bead71db43dc1b183686aadc6dda /tests/unittests/torture_buffer.c | |
parent | 8af829a42aea835219113e13a176fa36a397db35 (diff) | |
download | libssh-d42a1a35b0c2f2178e459b9328f97f9e988a1cb0.tar.gz libssh-d42a1a35b0c2f2178e459b9328f97f9e988a1cb0.tar.xz libssh-d42a1a35b0c2f2178e459b9328f97f9e988a1cb0.zip |
tests: allow conditionnal execution on pattern
Option can be used to filter out irrelevant tests
usage: ./torture_pki '*ed25519'
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/unittests/torture_buffer.c')
-rw-r--r-- | tests/unittests/torture_buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unittests/torture_buffer.c b/tests/unittests/torture_buffer.c index ec87259d..0934cbf1 100644 --- a/tests/unittests/torture_buffer.c +++ b/tests/unittests/torture_buffer.c @@ -250,7 +250,7 @@ static void torture_buffer_pack_badformat(void **state){ int torture_run_tests(void) { int rc; - const UnitTest tests[] = { + UnitTest tests[] = { unit_test_setup_teardown(torture_growing_buffer, setup, teardown), unit_test_setup_teardown(torture_growing_buffer_shifting, setup, teardown), unit_test_setup_teardown(torture_buffer_prepend, setup, teardown), @@ -262,6 +262,7 @@ int torture_run_tests(void) { }; ssh_init(); + torture_filter_tests(tests); rc=run_tests(tests); ssh_finalize(); return rc; |