[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 55c38e271c25a2cf36141a40b9f83eba1117c801
Guillaume Rousse
Guillaume.Rousse at inria.fr
Mon Jan 17 21:26:54 UTC 2011
The following commit has been merged in the master branch:
commit 55c38e271c25a2cf36141a40b9f83eba1117c801
Author: Guillaume Rousse <Guillaume.Rousse at inria.fr>
Date: Mon Jan 17 22:26:50 2011 +0100
minimal tests for xfreerdp completion
diff --git a/test/completion/freerdp.exp b/test/completion/xfreerdp.exp
similarity index 100%
copy from test/completion/freerdp.exp
copy to test/completion/xfreerdp.exp
diff --git a/test/lib/completions/xfreerdp.exp b/test/lib/completions/xfreerdp.exp
new file mode 100644
index 0000000..f61cfca
--- /dev/null
+++ b/test/lib/completions/xfreerdp.exp
@@ -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
--
bash-completion
More information about the Bash-completion-commits
mailing list