aboutsummaryrefslogtreecommitdiff
path: root/tests/torture.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/torture.h')
-rw-r--r--tests/torture.h9
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.
*/