summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-09-19 10:22:59 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-09-19 10:22:59 -0700
commitfb3186e7285977d88babc4ce13bf93a6bc76ccb5 (patch)
tree5ebac5e6612e0c20a0e67c57246e48c4033f8c0c /tests
parent2c33e0bd60b96846298da06c5c70fdc7c029dae5 (diff)
downloadssh2-rs-fb3186e7285977d88babc4ce13bf93a6bc76ccb5.zip
Start SFTP bindings
Diffstat (limited to 'tests')
-rw-r--r--tests/all.rs1
-rw-r--r--tests/sftp.rs5
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/all.rs b/tests/all.rs
index bd5f085..5bb7257 100644
--- a/tests/all.rs
+++ b/tests/all.rs
@@ -10,6 +10,7 @@ mod agent;
mod session;
mod channel;
mod knownhosts;
+mod sftp;
pub fn socket() -> TcpStream {
let stream = TcpStream::connect(SocketAddr {
diff --git a/tests/sftp.rs b/tests/sftp.rs
new file mode 100644
index 0000000..f600abd
--- /dev/null
+++ b/tests/sftp.rs
@@ -0,0 +1,5 @@
+#[test]
+fn smoke() {
+ let (_tcp, sess) = ::authed_session();
+ sess.sftp().unwrap();
+}