mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 10:26:47 +09: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:
committed by
Andreas Schneider
parent
8af829a42a
commit
d42a1a35b0
@@ -1437,7 +1437,7 @@ static void torture_pki_ecdsa_name521(void **state)
|
||||
|
||||
int torture_run_tests(void) {
|
||||
int rc;
|
||||
const UnitTest tests[] = {
|
||||
UnitTest tests[] = {
|
||||
unit_test(torture_pki_keytype),
|
||||
|
||||
unit_test(torture_pki_signature),
|
||||
@@ -1607,6 +1607,7 @@ int torture_run_tests(void) {
|
||||
(void)setup_both_keys;
|
||||
|
||||
ssh_init();
|
||||
torture_filter_tests(tests);
|
||||
rc=run_tests(tests);
|
||||
ssh_finalize();
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user