Reviewed tests m*
This commit is contained in:
parent
6966cad8cf
commit
0d443835c4
@ -1 +0,0 @@
|
||||
source "lib/completions/m4.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/macof.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/mailmanctl.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/mailsnarf.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/man.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/mc.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/mcrypt.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/md5sum.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/mdecrypt.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/mencoder.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/mkdir.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/mkfifo.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/mkinitrd.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/mkisofs.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/mknod.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/mmsitepass.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/module.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/mogrify.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/montage.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/msgsnarf.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/mtx.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/mutt.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/muttng.exp"
|
@ -1 +0,0 @@
|
||||
source "lib/completions/mv.exp"
|
Binary file not shown.
3
test/completion/m4.exp
Normal file
3
test/completion/m4.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type m4]} {
|
||||
source "lib/completions/m4.exp"
|
||||
}; # if
|
3
test/completion/macof.exp
Normal file
3
test/completion/macof.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type macof]} {
|
||||
source "lib/completions/macof.exp"
|
||||
}; # if
|
3
test/completion/mailmanctl.exp
Normal file
3
test/completion/mailmanctl.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type mailmanctl]} {
|
||||
source "lib/completions/mailmanctl.exp"
|
||||
}; # if
|
3
test/completion/mailsnarf.exp
Normal file
3
test/completion/mailsnarf.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type mailsnarf]} {
|
||||
source "lib/completions/mailsnarf.exp"
|
||||
}; # if
|
3
test/completion/man.exp
Normal file
3
test/completion/man.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type man]} {
|
||||
source "lib/completions/man.exp"
|
||||
}; # if
|
3
test/completion/mc.exp
Normal file
3
test/completion/mc.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type mc]} {
|
||||
source "lib/completions/mc.exp"
|
||||
}; # if
|
3
test/completion/mcrypt.exp
Normal file
3
test/completion/mcrypt.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type mcrypt]} {
|
||||
source "lib/completions/mcrypt.exp"
|
||||
}; # if
|
3
test/completion/md5sum.exp
Normal file
3
test/completion/md5sum.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type md5sum]} {
|
||||
source "lib/completions/md5sum.exp"
|
||||
}; # if
|
3
test/completion/mdecrypt.exp
Normal file
3
test/completion/mdecrypt.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type mdecrypt]} {
|
||||
source "lib/completions/mdecrypt.exp"
|
||||
}; # if
|
3
test/completion/mencoder.exp
Normal file
3
test/completion/mencoder.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type mencoder]} {
|
||||
source "lib/completions/mencoder.exp"
|
||||
}; # if
|
3
test/completion/mkdir.exp
Normal file
3
test/completion/mkdir.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type mkdir]} {
|
||||
source "lib/completions/mkdir.exp"
|
||||
}; # if
|
3
test/completion/mkfifo.exp
Normal file
3
test/completion/mkfifo.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type mkfifo]} {
|
||||
source "lib/completions/mkfifo.exp"
|
||||
}; # if
|
3
test/completion/mkinitrd.exp
Normal file
3
test/completion/mkinitrd.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type mkinitrd]} {
|
||||
source "lib/completions/mkinitrd.exp"
|
||||
}; # if
|
3
test/completion/mkisofs.exp
Normal file
3
test/completion/mkisofs.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type {mkisofs}]} {
|
||||
source "lib/completions/mkisofs.exp"
|
||||
}; # if
|
3
test/completion/mknod.exp
Normal file
3
test/completion/mknod.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type mknod]} {
|
||||
source "lib/completions/mknod.exp"
|
||||
}; # if
|
3
test/completion/mmsitepass.exp
Normal file
3
test/completion/mmsitepass.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type mmsitepass]} {
|
||||
source "lib/completions/mmsitepass.exp"
|
||||
}; # if
|
3
test/completion/module.exp
Normal file
3
test/completion/module.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type module]} {
|
||||
source "lib/completions/module.exp"
|
||||
}; # if
|
3
test/completion/mogrify.exp
Normal file
3
test/completion/mogrify.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type mogrify]} {
|
||||
source "lib/completions/mogrify.exp"
|
||||
}; # if
|
3
test/completion/montage.exp
Normal file
3
test/completion/montage.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type montage]} {
|
||||
source "lib/completions/montage.exp"
|
||||
}; # if
|
@ -1 +1,3 @@
|
||||
source "lib/completions/mplayer.exp"
|
||||
if {[assert_bash_type mplayer]} {
|
||||
source "lib/completions/mplayer.exp"
|
||||
}; # if
|
||||
|
3
test/completion/msgsnarf.exp
Normal file
3
test/completion/msgsnarf.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type msgsnarf]} {
|
||||
source "lib/completions/msgsnarf.exp"
|
||||
}; # if
|
3
test/completion/mtx.exp
Normal file
3
test/completion/mtx.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type mtx]} {
|
||||
source "lib/completions/mtx.exp"
|
||||
}; # if
|
3
test/completion/mutt.exp
Normal file
3
test/completion/mutt.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type mutt]} {
|
||||
source "lib/completions/mutt.exp"
|
||||
}; # if
|
3
test/completion/muttng.exp
Normal file
3
test/completion/muttng.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type muttng]} {
|
||||
source "lib/completions/muttng.exp"
|
||||
}; # if
|
3
test/completion/mv.exp
Normal file
3
test/completion/mv.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type mv]} {
|
||||
source "lib/completions/mv.exp"
|
||||
}; # if
|
3
test/completion/mysqladmin.exp
Normal file
3
test/completion/mysqladmin.exp
Normal file
@ -0,0 +1,3 @@
|
||||
if {[assert_bash_type mysqladmin]} {
|
||||
source "lib/completions/mysqladmin.exp"
|
||||
}; # if
|
Binary file not shown.
@ -29,17 +29,13 @@ sync_after_int
|
||||
|
||||
|
||||
set test "-wholename should complete files/dirs"
|
||||
# Change directory to `fixture1'
|
||||
set dir fixture1
|
||||
set prompt "/$dir/@"
|
||||
assert_bash_exec "cd $dir" "" $prompt
|
||||
# NOTE: `-p' adds a slash to directories
|
||||
set files [split [exec bash -c "cd $dir && ls -p"] "\n"]
|
||||
assert_complete $files "find -wholename " "" $prompt
|
||||
sync_after_int $prompt
|
||||
assert_bash_exec "cd \$TESTDIR"
|
||||
assert_complete_dir $files "find -wholename " $dir
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
set test "-uid should complete uids"
|
||||
# Complete
|
||||
|
20
test/lib/completions/m4.exp
Normal file
20
test/lib/completions/m4.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "m4 --"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/macof.exp
Normal file
20
test/lib/completions/macof.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "macof -"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/mailmanctl.exp
Normal file
20
test/lib/completions/mailmanctl.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mailmanctl "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/mailsnarf.exp
Normal file
20
test/lib/completions/mailsnarf.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mailsnarf -"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/man.exp
Normal file
20
test/lib/completions/man.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "man man"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/mc.exp
Normal file
20
test/lib/completions/mc.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mc -"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/mcrypt.exp
Normal file
20
test/lib/completions/mcrypt.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mcrypt "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/md5sum.exp
Normal file
20
test/lib/completions/md5sum.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "md5sum "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/mdecrypt.exp
Normal file
20
test/lib/completions/mdecrypt.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mdecrypt "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/mencoder.exp
Normal file
20
test/lib/completions/mencoder.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mencoder "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/minicom.exp
Normal file
20
test/lib/completions/minicom.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "minicom -"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/mkdir.exp
Normal file
20
test/lib/completions/mkdir.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mkdir "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/mkfifo.exp
Normal file
20
test/lib/completions/mkfifo.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mkfifo "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/mkinitrd.exp
Normal file
20
test/lib/completions/mkinitrd.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mkinitrd "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,23 +1,17 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "mkisofs "
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
assert_complete_any "mkisofs "
|
||||
|
||||
|
||||
sync_after_int
|
20
test/lib/completions/mknod.exp
Normal file
20
test/lib/completions/mknod.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mknod "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/mmsitepass.exp
Normal file
20
test/lib/completions/mmsitepass.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mmsitepass "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/module.exp
Normal file
20
test/lib/completions/module.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "module "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/mogrify.exp
Normal file
20
test/lib/completions/mogrify.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mogrify "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/montage.exp
Normal file
20
test/lib/completions/montage.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "montage "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -11,15 +11,7 @@ proc teardown {} {
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "mplayer "
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
assert_complete_any "mplayer "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
20
test/lib/completions/msgsnarf.exp
Normal file
20
test/lib/completions/msgsnarf.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "msgsnarf -"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/mtx.exp
Normal file
20
test/lib/completions/mtx.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mtx "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/mutt.exp
Normal file
20
test/lib/completions/mutt.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mutt -"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/muttng.exp
Normal file
20
test/lib/completions/muttng.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "muttng -"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/mv.exp
Normal file
20
test/lib/completions/mv.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mv "
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
20
test/lib/completions/mysqladmin.exp
Normal file
20
test/lib/completions/mysqladmin.exp
Normal file
@ -0,0 +1,20 @@
|
||||
proc setup {} {
|
||||
save_env
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
assert_env_unmodified
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "mysqladmin -"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "m4 "
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "macof -"
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "mailmanctl "
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "mailsnarf -"
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should show completions"
|
||||
# Try completion
|
||||
set cmd "man man"
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "$cmd\r\n.*/@$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "mc "
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "mcrypt "
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "md5sum "
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "mdecrypt "
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "mencoder "
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "minicom -"
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "mkdir "
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "mkfifo "
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "mkinitrd "
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "mknod "
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "mmsitepass -"
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "module "
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "mogrify "
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
@ -1,26 +0,0 @@
|
||||
proc setup {} {
|
||||
}; # setup()
|
||||
|
||||
|
||||
proc teardown {} {
|
||||
}; # teardown()
|
||||
|
||||
|
||||
setup
|
||||
|
||||
|
||||
set test "Tab should complete"
|
||||
# Try completion
|
||||
set cmd "montage "
|
||||
send "$cmd\t"
|
||||
expect {
|
||||
-re "^$cmd\r\n.*$cmd$" { pass "$test" }
|
||||
-re /@ { unresolved "$test at prompt" }
|
||||
-re eof { unresolved "eof" }
|
||||
}; # expect
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
teardown
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user