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/client/torture_algorithms.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/client/torture_algorithms.c')
-rw-r--r-- | tests/client/torture_algorithms.c | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |