minimal tests for xfreerdp completion
This commit is contained in:
parent
d6043b9609
commit
55c38e271c
1
test/completion/xfreerdp.exp
Normal file
1
test/completion/xfreerdp.exp
Normal file
@ -0,0 +1 @@
|
|||||||
|
assert_source_completions xfreerdp
|
28
test/lib/completions/xfreerdp.exp
Normal file
28
test/lib/completions/xfreerdp.exp
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
proc setup {} {
|
||||||
|
save_env
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
proc teardown {} {
|
||||||
|
assert_env_unmodified
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
setup
|
||||||
|
|
||||||
|
|
||||||
|
set test "Tab should complete options"
|
||||||
|
set cmd "xfreerdp --"
|
||||||
|
send "$cmd\t"
|
||||||
|
set expected "^$cmd\r\n--data.*--kbd-list.*--plugin\r\n/@$cmd$"
|
||||||
|
expect {
|
||||||
|
-re $expected { pass "$test" }
|
||||||
|
-re /@ { unresolved "$test at prompt" }
|
||||||
|
default { unresolved "$test" }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
sync_after_int
|
||||||
|
|
||||||
|
|
||||||
|
teardown
|
Loading…
x
Reference in New Issue
Block a user