The following commit has been merged in the master branch:
commit 66f5c11ab7894125039fc366c80d651f06587c43
Author: Ville Skyttä <[email protected]>
Date:   Sat Jan 9 11:44:36 2010 +0200

    (testsuite) Add simple rpm completion tests.

diff --git a/test/completion/rpm.exp b/test/completion/rpm.exp
new file mode 100644
index 0000000..c1ebf5e
--- /dev/null
+++ b/test/completion/rpm.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type rpm]} {
+    source "lib/completions/rpm.exp"
+}; # if
diff --git a/test/lib/completions/rpm.exp b/test/lib/completions/rpm.exp
new file mode 100644
index 0000000..dffce93
--- /dev/null
+++ b/test/lib/completions/rpm.exp
@@ -0,0 +1,37 @@
+proc setup {} {
+    save_env
+}; # setup()
+
+
+proc teardown {} {
+    assert_env_unmodified
+}; # teardown()
+
+
+set _old_match_max [match_max]
+match_max 100000
+
+setup
+
+
+assert_complete_any "rpm "
+
+
+sync_after_int
+
+
+assert_complete_any "rpm -q "
+
+
+sync_after_int
+
+
+assert_complete_any "rpm --eval %"
+
+
+sync_after_int
+
+
+teardown
+
+match_max $_old_match_max

-- 
bash-completion

_______________________________________________
Bash-completion-commits mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/bash-completion-commits

Reply via email to