diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2010-02-05 22:19:34 +0200 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2010-02-05 22:19:34 +0200 |
commit | 35ebc8aec8af49a6e4eb9a3b3ab0845c3d5a0da5 (patch) | |
tree | f73277041e34d797e1f7f56d5a799a4b316aa7c5 | |
parent | 44f7ea3c5ba2d22a6937db5b3363cb204b1b3bf8 (diff) | |
download | bash-completion-35ebc8aec8af49a6e4eb9a3b3ab0845c3d5a0da5.tar.gz |
(testsuite) Add lftp hostname completion testing fixture.
-rw-r--r-- | test/fixtures/lftp/.lftp/bookmarks | 1 | ||||
-rw-r--r-- | test/lib/completions/lftp.exp | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/test/fixtures/lftp/.lftp/bookmarks b/test/fixtures/lftp/.lftp/bookmarks new file mode 100644 index 00000000..31ec9303 --- /dev/null +++ b/test/fixtures/lftp/.lftp/bookmarks @@ -0,0 +1 @@ +lftptest ftp://ftp.funet.fi/ diff --git a/test/lib/completions/lftp.exp b/test/lib/completions/lftp.exp index 4bdde376..a49a1935 100644 --- a/test/lib/completions/lftp.exp +++ b/test/lib/completions/lftp.exp @@ -1,4 +1,5 @@ proc setup {} { + assert_bash_exec {HOME=$TESTDIR/fixtures/lftp} save_env }; # setup() @@ -11,7 +12,10 @@ proc teardown {} { setup -assert_complete_any "lftp " +set expected [get_hosts] +# `lftptest' is defined in ./fixtures/lftp/.lftp/bookmarks +lappend expected lftptest +assert_complete $expected "lftp " sync_after_int |