Reviewed tests o*
This commit is contained in:
parent
890cadbc3a
commit
285136a8df
@ -1 +0,0 @@
|
|||||||
source "lib/completions/objcopy.exp"
|
|
@ -1 +0,0 @@
|
|||||||
source "lib/completions/objdump.exp"
|
|
@ -1 +0,0 @@
|
|||||||
source "lib/completions/od.exp"
|
|
3
test/completion/objcopy.exp
Normal file
3
test/completion/objcopy.exp
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
if {[assert_bash_type objcopy]} {
|
||||||
|
source "lib/completions/objcopy.exp"
|
||||||
|
}; # if
|
3
test/completion/objdump.exp
Normal file
3
test/completion/objdump.exp
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
if {[assert_bash_type objdump]} {
|
||||||
|
source "lib/completions/objdump.exp"
|
||||||
|
}; # if
|
3
test/completion/od.exp
Normal file
3
test/completion/od.exp
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
if {[assert_bash_type od]} {
|
||||||
|
source "lib/completions/od.exp"
|
||||||
|
}; # if
|
20
test/lib/completions/objcopy.exp
Normal file
20
test/lib/completions/objcopy.exp
Normal 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
|
20
test/lib/completions/objdump.exp
Normal file
20
test/lib/completions/objdump.exp
Normal 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
|
20
test/lib/completions/od.exp
Normal file
20
test/lib/completions/od.exp
Normal 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
|
@ -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
|
|
@ -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
|
|
@ -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
|
|
Loading…
x
Reference in New Issue
Block a user