tests: Convert torture_connect to a cwrap test

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Andreas Schneider
2014-10-13 10:00:25 +02:00
parent 14f1ce2e5b
commit d403c01a30
3 changed files with 81 additions and 28 deletions

View File

@@ -46,6 +46,8 @@
assert_true(code >= 0)
#endif /* assert_return_code */
#define TORTURE_SSH_SERVER "127.0.0.10"
#define TORTURE_TESTKEY_PASSWORD "libssh-rocks"
/* Used by main to communicate with parse_opt. */
@@ -65,6 +67,9 @@ struct torture_state {
char *pcap_file;
char *srv_pidfile;
char *srv_config;
struct {
ssh_session session;
} ssh;
};
#ifndef ZERO_STRUCT