diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2011-02-06 14:58:28 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-02-06 16:27:43 +0100 |
commit | 38d6d38c1fcc9d323a062c413a5c0b6b8ef6590c (patch) | |
tree | 44f340d5f50f0f02b7ad247383e5309df77c1f59 /tests/torture.h | |
parent | 215c41710e842a892da23724d64c0f5414165496 (diff) | |
download | libssh-38d6d38c1fcc9d323a062c413a5c0b6b8ef6590c.tar.gz libssh-38d6d38c1fcc9d323a062c413a5c0b6b8ef6590c.tar.xz libssh-38d6d38c1fcc9d323a062c413a5c0b6b8ef6590c.zip |
torture: Added a function to setup a sftp session.
Diffstat (limited to 'tests/torture.h')
-rw-r--r-- | tests/torture.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/torture.h b/tests/torture.h index e80d0e76..b4fce84a 100644 --- a/tests/torture.h +++ b/tests/torture.h @@ -44,6 +44,12 @@ struct argument_s { int verbose; }; +struct torture_sftp { + ssh_session ssh; + sftp_session sftp; + char *testdir; +}; + void torture_cmdline_parse(int argc, char **argv, struct argument_s *arguments); int torture_rmdirs(const char *path); @@ -58,6 +64,9 @@ ssh_session torture_ssh_session(const char *host, const char *user, const char *password); +struct torture_sftp *torture_sftp_session(ssh_session session); +void torture_sftp_close(struct torture_sftp *t); + /* * This function must be defined in every unit test file. */ |