summaryrefslogtreecommitdiff
path: root/test/lib/completions/lftp.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/completions/lftp.exp')
-rw-r--r--test/lib/completions/lftp.exp24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/lib/completions/lftp.exp b/test/lib/completions/lftp.exp
new file mode 100644
index 00000000..a49a1935
--- /dev/null
+++ b/test/lib/completions/lftp.exp
@@ -0,0 +1,24 @@
+proc setup {} {
+ assert_bash_exec {HOME=$TESTDIR/fixtures/lftp}
+ save_env
+}; # setup()
+
+
+proc teardown {} {
+ assert_env_unmodified
+}; # teardown()
+
+
+setup
+
+
+set expected [get_hosts]
+# `lftptest' is defined in ./fixtures/lftp/.lftp/bookmarks
+lappend expected lftptest
+assert_complete $expected "lftp "
+
+
+sync_after_int
+
+
+teardown