Reviewed tests o*

This commit is contained in:
Freddy Vulto 2009-07-24 11:20:38 +02:00
parent 890cadbc3a
commit 285136a8df
13 changed files with 69 additions and 81 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

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

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

View File

@ -0,0 +1,20 @@
proc setup {} {
save_env
}; # setup()
proc teardown {} {
assert_env_unmodified
}; # teardown()
setup
assert_complete_any "objcopy "
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 "objdump "
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 "od "
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 "objcopy "
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 "objdump "
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 "od "
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