2010-05-07 15:39:08 +04:00
|
|
|
#define LIBSSH_STATIC
|
2010-12-28 16:15:32 +03:00
|
|
|
|
2010-05-07 15:39:08 +04:00
|
|
|
#include "torture.h"
|
2010-12-29 23:02:51 +03:00
|
|
|
#include "libssh/libssh.h"
|
2010-05-07 15:39:08 +04:00
|
|
|
|
2010-12-28 16:15:32 +03:00
|
|
|
static void torture_ssh_init(void **state) {
|
2010-05-07 15:39:08 +04:00
|
|
|
int rc;
|
|
|
|
|
2010-12-28 16:15:32 +03:00
|
|
|
(void) state;
|
2010-05-07 15:39:08 +04:00
|
|
|
|
2010-12-28 16:15:32 +03:00
|
|
|
rc = ssh_init();
|
|
|
|
assert_int_equal(rc, SSH_OK);
|
|
|
|
rc = ssh_finalize();
|
|
|
|
assert_int_equal(rc, SSH_OK);
|
2010-05-07 15:39:08 +04:00
|
|
|
}
|
|
|
|
|
2010-12-28 16:15:32 +03:00
|
|
|
int torture_run_tests(void) {
|
|
|
|
const UnitTest tests[] = {
|
|
|
|
unit_test(torture_ssh_init),
|
|
|
|
};
|
2010-05-07 15:39:08 +04:00
|
|
|
|
2010-12-28 16:15:32 +03:00
|
|
|
return run_tests(tests);
|
|
|
|
}
|