Reviewed tests n*
This commit is contained in:
parent
0d443835c4
commit
890cadbc3a
@ -1 +0,0 @@
|
|||||||
source "lib/completions/ncftp.exp"
|
|
@ -1 +0,0 @@
|
|||||||
source "lib/completions/netstat.exp"
|
|
@ -1 +0,0 @@
|
|||||||
source "lib/completions/newlist.exp"
|
|
@ -1 +0,0 @@
|
|||||||
source "lib/completions/nl.exp"
|
|
@ -1 +0,0 @@
|
|||||||
source "lib/completions/nm.exp"
|
|
3
test/completion/ncftp.exp
Normal file
3
test/completion/ncftp.exp
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
if {[assert_bash_type ncftp]} {
|
||||||
|
source "lib/completions/ncftp.exp"
|
||||||
|
}; # if
|
3
test/completion/netstat.exp
Normal file
3
test/completion/netstat.exp
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
if {[assert_bash_type netstat]} {
|
||||||
|
source "lib/completions/netstat.exp"
|
||||||
|
}; # if
|
3
test/completion/newlist.exp
Normal file
3
test/completion/newlist.exp
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
if {[assert_bash_type newlist]} {
|
||||||
|
source "lib/completions/newlist.exp"
|
||||||
|
}; # if
|
3
test/completion/nl.exp
Normal file
3
test/completion/nl.exp
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
if {[assert_bash_type nl]} {
|
||||||
|
source "lib/completions/nl.exp"
|
||||||
|
}; # if
|
3
test/completion/nm.exp
Normal file
3
test/completion/nm.exp
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
if {[assert_bash_type nm]} {
|
||||||
|
source "lib/completions/nm.exp"
|
||||||
|
}; # if
|
20
test/lib/completions/ncftp.exp
Normal file
20
test/lib/completions/ncftp.exp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}; # setup()
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}; # teardown()
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "ncftp "
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
20
test/lib/completions/netstat.exp
Normal file
20
test/lib/completions/netstat.exp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}; # setup()
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}; # teardown()
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "netstat "
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
20
test/lib/completions/newlist.exp
Normal file
20
test/lib/completions/newlist.exp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}; # setup()
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}; # teardown()
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "newlist "
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
20
test/lib/completions/nl.exp
Normal file
20
test/lib/completions/nl.exp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}; # setup()
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}; # teardown()
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "nl "
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
20
test/lib/completions/nm.exp
Normal file
20
test/lib/completions/nm.exp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}; # setup()
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}; # teardown()
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "nm "
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
20
test/lib/completions/ntpdate.exp
Normal file
20
test/lib/completions/ntpdate.exp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}; # setup()
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}; # teardown()
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
assert_complete_any "ntpdate -"
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
@ -1,26 +0,0 @@
|
|||||||
proc setup {} {
|
|
||||||
}; # setup()
|
|
||||||
|
|
||||||
|
|
||||||
proc teardown {} {
|
|
||||||
}; # teardown()
|
|
||||||
|
|
||||||
|
|
||||||
setup
|
|
||||||
|
|
||||||
|
|
||||||
set test "Tab should complete"
|
|
||||||
# Try completion
|
|
||||||
set cmd "ncftp "
|
|
||||||
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 "netstat "
|
|
||||||
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 "newlist -"
|
|
||||||
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 "nl "
|
|
||||||
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 "nm "
|
|
||||||
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 "ntpdate -"
|
|
||||||
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
|
|
Loading…
x
Reference in New Issue
Block a user