diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2019-08-07 09:17:13 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.net.br> | 2019-08-07 09:17:13 -0300 |
commit | 5732da2af736c40cf693354485446ab4867ecb4d (patch) | |
tree | 76d76cdfa16ca62d20fb109da13895ec64fff110 /test/lib/completions/modprobe.exp | |
parent | 9cd22d1df8f0f5b554858471c86faa9f37b8fed4 (diff) | |
download | bash-completion-5732da2af736c40cf693354485446ab4867ecb4d.tar.gz |
New upstream version 2.9upstream/2.9
Diffstat (limited to 'test/lib/completions/modprobe.exp')
-rw-r--r-- | test/lib/completions/modprobe.exp | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/test/lib/completions/modprobe.exp b/test/lib/completions/modprobe.exp deleted file mode 100644 index b0a530ef..00000000 --- a/test/lib/completions/modprobe.exp +++ /dev/null @@ -1,52 +0,0 @@ -proc setup {} { - save_env -} - - -proc teardown {} { - assert_env_unmodified -} - - -setup - - -set test "--al<TAB> should complete \"--all\"" -assert_complete "--all" "modprobe --al" $test - - -sync_after_int - - -set uname [exec bash -c "uname -r"] -if {[assert_exec "ls /lib/modules/$uname" "" "" "unsupported"]} { - set test "in<TAB> should complete modulename" - assert_complete_any "modprobe in" $test -} - - -sync_after_int - - -set test "should not complete anything for non-existent kernel" -assert_no_complete "modprobe -S you-dont-have-such-kernel in" $test - - -sync_after_int - - -set test "should not complete anything for non-existent module" -assert_no_complete "modprobe you-dont-have-such-module " $test - - -sync_after_int - - -set test "should complete filepaths" -assert_complete "/tmp/" "modprobe /tm" $test -nospace - - -sync_after_int - - -teardown |