diff options
author | David Paleino <dapal@debian.org> | 2013-11-04 17:58:57 +0100 |
---|---|---|
committer | David Paleino <dapal@debian.org> | 2013-11-04 17:58:57 +0100 |
commit | 059a87a5936cfebfd2d71ab8057002cafb2ea051 (patch) | |
tree | 7fafa4bb39a443ba4d49fccc852193adfea93564 /test/lib/completions | |
parent | 30649a02707d24744853f84946f744fdcf7c2757 (diff) | |
download | bash-completion-059a87a5936cfebfd2d71ab8057002cafb2ea051.tar.gz |
Imported Upstream version 2.1upstream/2.1
Diffstat (limited to 'test/lib/completions')
36 files changed, 568 insertions, 5 deletions
diff --git a/test/lib/completions/chronyc.exp b/test/lib/completions/chronyc.exp new file mode 100644 index 00000000..33458113 --- /dev/null +++ b/test/lib/completions/chronyc.exp @@ -0,0 +1,21 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "chronyc -" +sync_after_int + +assert_complete_any "chronyc " +sync_after_int + + +teardown diff --git a/test/lib/completions/udevadm.exp b/test/lib/completions/eject.exp index bef16f0b..8de109d4 100644 --- a/test/lib/completions/udevadm.exp +++ b/test/lib/completions/eject.exp @@ -11,9 +11,7 @@ proc teardown {} { setup -assert_complete_any "udevadm " - - +assert_complete_any "eject -" sync_after_int diff --git a/test/lib/completions/eog.exp b/test/lib/completions/eog.exp new file mode 100644 index 00000000..b708c564 --- /dev/null +++ b/test/lib/completions/eog.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "eog " +sync_after_int + + +teardown diff --git a/test/lib/completions/file-roller.exp b/test/lib/completions/file-roller.exp new file mode 100644 index 00000000..942941d0 --- /dev/null +++ b/test/lib/completions/file-roller.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "file-roller " +sync_after_int + + +teardown diff --git a/test/lib/completions/genisoimage.exp b/test/lib/completions/genisoimage.exp new file mode 100644 index 00000000..5379f047 --- /dev/null +++ b/test/lib/completions/genisoimage.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "genisoimage " +sync_after_int + + +teardown diff --git a/test/lib/completions/gphoto2.exp b/test/lib/completions/gphoto2.exp new file mode 100644 index 00000000..90dc1e5e --- /dev/null +++ b/test/lib/completions/gphoto2.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "gphoto2 --" +sync_after_int + + +teardown diff --git a/test/lib/completions/hexdump.exp b/test/lib/completions/hexdump.exp new file mode 100644 index 00000000..e3447482 --- /dev/null +++ b/test/lib/completions/hexdump.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "hexdump -" +sync_after_int + + +teardown diff --git a/test/lib/completions/interdiff.exp b/test/lib/completions/interdiff.exp new file mode 100644 index 00000000..8880f461 --- /dev/null +++ b/test/lib/completions/interdiff.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "interdiff " +sync_after_int + + +teardown diff --git a/test/lib/completions/lua.exp b/test/lib/completions/lua.exp new file mode 100644 index 00000000..864b1bfc --- /dev/null +++ b/test/lib/completions/lua.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "lua " +sync_after_int + + +teardown diff --git a/test/lib/completions/luac.exp b/test/lib/completions/luac.exp new file mode 100644 index 00000000..d7cfb23b --- /dev/null +++ b/test/lib/completions/luac.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "luac " +sync_after_int + + +teardown diff --git a/test/lib/completions/luseradd.exp b/test/lib/completions/luseradd.exp new file mode 100644 index 00000000..744314a7 --- /dev/null +++ b/test/lib/completions/luseradd.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "luseradd -" +sync_after_int + + +teardown diff --git a/test/lib/completions/luserdel.exp b/test/lib/completions/luserdel.exp new file mode 100644 index 00000000..70d11661 --- /dev/null +++ b/test/lib/completions/luserdel.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "luserdel " +sync_after_int + + +teardown diff --git a/test/lib/completions/lusermod.exp b/test/lib/completions/lusermod.exp new file mode 100644 index 00000000..f96293e6 --- /dev/null +++ b/test/lib/completions/lusermod.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "lusermod " +sync_after_int + + +teardown diff --git a/test/lib/completions/man.exp b/test/lib/completions/man.exp index c7358c62..66b565a2 100644 --- a/test/lib/completions/man.exp +++ b/test/lib/completions/man.exp @@ -30,4 +30,8 @@ assert_complete "Bash::Completion" "man Bash::C" sync_after_int +assert_complete_dir "man/quux.8" "man man/" $::srcdir/fixtures/man +sync_after_int + + teardown diff --git a/test/lib/completions/mussh.exp b/test/lib/completions/mussh.exp new file mode 100644 index 00000000..24c5c1f1 --- /dev/null +++ b/test/lib/completions/mussh.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "mussh -" +sync_after_int + + +teardown diff --git a/test/lib/completions/nc.exp b/test/lib/completions/nc.exp new file mode 100644 index 00000000..84e61896 --- /dev/null +++ b/test/lib/completions/nc.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "nc -" +sync_after_int + + +teardown diff --git a/test/lib/completions/ncftp.exp b/test/lib/completions/ncftp.exp index 52d70756..d6683b86 100644 --- a/test/lib/completions/ncftp.exp +++ b/test/lib/completions/ncftp.exp @@ -12,8 +12,10 @@ setup assert_complete_any "ncftp " +sync_after_int +assert_complete_any "ncftp -" sync_after_int diff --git a/test/lib/completions/ngrep.exp b/test/lib/completions/ngrep.exp new file mode 100644 index 00000000..a49543bb --- /dev/null +++ b/test/lib/completions/ngrep.exp @@ -0,0 +1,21 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "ngrep -" +sync_after_int + +assert_complete_any "ngrep -d " +sync_after_int + + +teardown diff --git a/test/lib/completions/nmcli.exp b/test/lib/completions/nmcli.exp new file mode 100644 index 00000000..b891f45e --- /dev/null +++ b/test/lib/completions/nmcli.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "nmcli " +sync_after_int + + +teardown diff --git a/test/lib/completions/opera.exp b/test/lib/completions/opera.exp new file mode 100644 index 00000000..9b666403 --- /dev/null +++ b/test/lib/completions/opera.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "opera " +sync_after_int + + +teardown diff --git a/test/lib/completions/pkg-get.exp b/test/lib/completions/pkg-get.exp new file mode 100644 index 00000000..38b2b97f --- /dev/null +++ b/test/lib/completions/pkg-get.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "pkg-get " +sync_after_int + + +teardown diff --git a/test/lib/completions/pkgadd.exp b/test/lib/completions/pkgadd.exp new file mode 100644 index 00000000..ba5eadf9 --- /dev/null +++ b/test/lib/completions/pkgadd.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "pkgadd " +sync_after_int + + +teardown diff --git a/test/lib/completions/pkgrm.exp b/test/lib/completions/pkgrm.exp new file mode 100644 index 00000000..08c685c4 --- /dev/null +++ b/test/lib/completions/pkgrm.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "pkgrm " +sync_after_int + + +teardown diff --git a/test/lib/completions/pkgutil.exp b/test/lib/completions/pkgutil.exp new file mode 100644 index 00000000..e79dea15 --- /dev/null +++ b/test/lib/completions/pkgutil.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "pkgutil " +sync_after_int + + +teardown diff --git a/test/lib/completions/pwd.exp b/test/lib/completions/pwd.exp index f40fdb99..3690076a 100644 --- a/test/lib/completions/pwd.exp +++ b/test/lib/completions/pwd.exp @@ -11,7 +11,7 @@ proc teardown {} { setup -assert_no_complete "pwd " +assert_complete_any "pwd -" sync_after_int diff --git a/test/lib/completions/pydoc.exp b/test/lib/completions/pydoc.exp new file mode 100644 index 00000000..fe573693 --- /dev/null +++ b/test/lib/completions/pydoc.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "pydoc r" +sync_after_int + + +teardown diff --git a/test/lib/completions/pylint.exp b/test/lib/completions/pylint.exp new file mode 100644 index 00000000..62774220 --- /dev/null +++ b/test/lib/completions/pylint.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "pylint -" +sync_after_int + + +teardown diff --git a/test/lib/completions/ss.exp b/test/lib/completions/ss.exp new file mode 100644 index 00000000..f6e711c6 --- /dev/null +++ b/test/lib/completions/ss.exp @@ -0,0 +1,21 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "ss -" +sync_after_int + +assert_complete_any "ss -A " +sync_after_int + + +teardown diff --git a/test/lib/completions/strings.exp b/test/lib/completions/strings.exp new file mode 100644 index 00000000..103d5d3a --- /dev/null +++ b/test/lib/completions/strings.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "strings " +sync_after_int + + +teardown diff --git a/test/lib/completions/svcadm.exp b/test/lib/completions/svcadm.exp new file mode 100644 index 00000000..e7266146 --- /dev/null +++ b/test/lib/completions/svcadm.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "svcadm " +sync_after_int + + +teardown diff --git a/test/lib/completions/tshark.exp b/test/lib/completions/tshark.exp new file mode 100644 index 00000000..f2419119 --- /dev/null +++ b/test/lib/completions/tshark.exp @@ -0,0 +1,21 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "tshark -" +sync_after_int + +assert_complete_any "tshark -G " +sync_after_int + + +teardown diff --git a/test/lib/completions/vpnc.exp b/test/lib/completions/vpnc.exp new file mode 100644 index 00000000..451d8093 --- /dev/null +++ b/test/lib/completions/vpnc.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "vpnc -" +sync_after_int + + +teardown diff --git a/test/lib/completions/wget.exp b/test/lib/completions/wget.exp index 8e830a12..457ae2ce 100644 --- a/test/lib/completions/wget.exp +++ b/test/lib/completions/wget.exp @@ -17,4 +17,10 @@ assert_complete_any "wget --" sync_after_int +assert_no_complete "wget " + + +sync_after_int + + teardown diff --git a/test/lib/completions/wsimport.exp b/test/lib/completions/wsimport.exp new file mode 100644 index 00000000..36bf35c1 --- /dev/null +++ b/test/lib/completions/wsimport.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "wsimport " +sync_after_int + + +teardown diff --git a/test/lib/completions/xrandr.exp b/test/lib/completions/xrandr.exp index 14beb762..e76a5665 100644 --- a/test/lib/completions/xrandr.exp +++ b/test/lib/completions/xrandr.exp @@ -12,8 +12,9 @@ setup assert_complete_any "xrandr " +sync_after_int - +assert_no_complete "xrandr --mode " sync_after_int diff --git a/test/lib/completions/xxd.exp b/test/lib/completions/xxd.exp new file mode 100644 index 00000000..6f12c0c0 --- /dev/null +++ b/test/lib/completions/xxd.exp @@ -0,0 +1,18 @@ +proc setup {} { + save_env +} + + +proc teardown {} { + assert_env_unmodified +} + + +setup + + +assert_complete_any "xxd " +sync_after_int + + +teardown |