Reviewed tests m*

This commit is contained in:
Freddy Vulto 2009-07-24 09:55:54 +02:00
parent 6966cad8cf
commit 0d443835c4
106 changed files with 585 additions and 700 deletions

View File

@ -1 +0,0 @@
source "lib/completions/m4.exp"

View File

@ -1 +0,0 @@
source "lib/completions/macof.exp"

View File

@ -1 +0,0 @@
source "lib/completions/mailmanctl.exp"

View File

@ -1 +0,0 @@
source "lib/completions/mailsnarf.exp"

View File

@ -1 +0,0 @@
source "lib/completions/man.exp"

View File

@ -1 +0,0 @@
source "lib/completions/mc.exp"

View File

@ -1 +0,0 @@
source "lib/completions/mcrypt.exp"

View File

@ -1 +0,0 @@
source "lib/completions/md5sum.exp"

View File

@ -1 +0,0 @@
source "lib/completions/mdecrypt.exp"

View File

@ -1 +0,0 @@
source "lib/completions/mencoder.exp"

View File

@ -1 +0,0 @@
source "lib/completions/mkdir.exp"

View File

@ -1 +0,0 @@
source "lib/completions/mkfifo.exp"

View File

@ -1 +0,0 @@
source "lib/completions/mkinitrd.exp"

View File

@ -1 +0,0 @@
source "lib/completions/mkisofs.exp"

View File

@ -1 +0,0 @@
source "lib/completions/mknod.exp"

View File

@ -1 +0,0 @@
source "lib/completions/mmsitepass.exp"

View File

@ -1 +0,0 @@
source "lib/completions/module.exp"

View File

@ -1 +0,0 @@
source "lib/completions/mogrify.exp"

View File

@ -1 +0,0 @@
source "lib/completions/montage.exp"

View File

@ -1 +0,0 @@
source "lib/completions/msgsnarf.exp"

View File

@ -1 +0,0 @@
source "lib/completions/mtx.exp"

View File

@ -1 +0,0 @@
source "lib/completions/mutt.exp"

View File

@ -1 +0,0 @@
source "lib/completions/muttng.exp"

View File

@ -1 +0,0 @@
source "lib/completions/mv.exp"

Binary file not shown.

3
test/completion/m4.exp Normal file
View File

@ -0,0 +1,3 @@
if {[assert_bash_type m4]} {
source "lib/completions/m4.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type macof]} {
source "lib/completions/macof.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type mailmanctl]} {
source "lib/completions/mailmanctl.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type mailsnarf]} {
source "lib/completions/mailsnarf.exp"
}; # if

3
test/completion/man.exp Normal file
View File

@ -0,0 +1,3 @@
if {[assert_bash_type man]} {
source "lib/completions/man.exp"
}; # if

3
test/completion/mc.exp Normal file
View File

@ -0,0 +1,3 @@
if {[assert_bash_type mc]} {
source "lib/completions/mc.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type mcrypt]} {
source "lib/completions/mcrypt.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type md5sum]} {
source "lib/completions/md5sum.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type mdecrypt]} {
source "lib/completions/mdecrypt.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type mencoder]} {
source "lib/completions/mencoder.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type mkdir]} {
source "lib/completions/mkdir.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type mkfifo]} {
source "lib/completions/mkfifo.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type mkinitrd]} {
source "lib/completions/mkinitrd.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type {mkisofs}]} {
source "lib/completions/mkisofs.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type mknod]} {
source "lib/completions/mknod.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type mmsitepass]} {
source "lib/completions/mmsitepass.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type module]} {
source "lib/completions/module.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type mogrify]} {
source "lib/completions/mogrify.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type montage]} {
source "lib/completions/montage.exp"
}; # if

View File

@ -1 +1,3 @@
if {[assert_bash_type mplayer]} {
source "lib/completions/mplayer.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type msgsnarf]} {
source "lib/completions/msgsnarf.exp"
}; # if

3
test/completion/mtx.exp Normal file
View File

@ -0,0 +1,3 @@
if {[assert_bash_type mtx]} {
source "lib/completions/mtx.exp"
}; # if

3
test/completion/mutt.exp Normal file
View File

@ -0,0 +1,3 @@
if {[assert_bash_type mutt]} {
source "lib/completions/mutt.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type muttng]} {
source "lib/completions/muttng.exp"
}; # if

3
test/completion/mv.exp Normal file
View File

@ -0,0 +1,3 @@
if {[assert_bash_type mv]} {
source "lib/completions/mv.exp"
}; # if

View File

@ -0,0 +1,3 @@
if {[assert_bash_type mysqladmin]} {
source "lib/completions/mysqladmin.exp"
}; # if

Binary file not shown.

View File

@ -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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View 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

View File

@ -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

View 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

View 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

View 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

View 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

View 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

View File

@ -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

View 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

View 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

View 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

View 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

View 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

View 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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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