1
1
libssh/tests/unittests/torture_init.c
Aris Adamantiadis d42a1a35b0 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>
2015-02-02 17:34:15 +01:00

24 строки
429 B
C

#define LIBSSH_STATIC
#include "torture.h"
#include "libssh/libssh.h"
static void torture_ssh_init(void **state) {
int rc;
(void) state;
rc = ssh_init();
assert_int_equal(rc, SSH_OK);
rc = ssh_finalize();
assert_int_equal(rc, SSH_OK);
}
int torture_run_tests(void) {
UnitTest tests[] = {
unit_test(torture_ssh_init),
};
torture_filter_tests(tests);
return run_tests(tests);
}