Reviewed tests t*

This commit is contained in:
Freddy Vulto 2009-07-31 22:18:12 +02:00
parent 567eb37802
commit bcd33375ca
42 changed files with 232 additions and 280 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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

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

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

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

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

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

View File

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

View File

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

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

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

View File

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

View File

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

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

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

View File

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

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

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

View File

@ -0,0 +1,20 @@
proc setup {} {
save_env
}; # setup()
proc teardown {} {
assert_env_unmodified
}; # teardown()
setup
assert_complete_any "tac --"
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 "tail --"
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 "tar "
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 "tcpkill -"
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 "tcpnice -"
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 "tee "
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 "texindex --"
sync_after_int
teardown

View File

@ -11,15 +11,7 @@ proc teardown {} {
setup setup
set test "Tab should show completions" assert_complete_any "tightvncviewer "
# Try completion
set cmd "tightvncviewer "
send "$cmd\t"
expect {
-re "$cmd\r\n.*$cmd$" { pass "$test" }
-re /@ { unresolved "$test at prompt" }
-re eof { unresolved "eof" }
}; # expect
sync_after_int sync_after_int

View File

@ -0,0 +1,20 @@
proc setup {} {
save_env
}; # setup()
proc teardown {} {
assert_env_unmodified
}; # teardown()
setup
assert_complete_any "time set"
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 "touch --"
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 "tr --"
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 "tac --"
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 "tail "
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 "tar "
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 "tcpkill -"
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 "tcpnice -"
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 "tee "
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 "texindex "
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 "time set"
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 "touch "
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 "tr "
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