1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-07-28 01:41:48 +03:00

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>
This commit is contained in:
Aris Adamantiadis
2014-09-02 09:07:17 +02:00
committed by Andreas Schneider
parent 8af829a42a
commit d42a1a35b0
25 changed files with 88 additions and 26 deletions

View File

@ -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;