[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 9f49a101174911d8672c55cdc379ac5a3db186ff

Ville Skyttä ville.skytta at iki.fi
Sat Jan 9 10:57:59 UTC 2010


The following commit has been merged in the master branch:
commit 66f5c11ab7894125039fc366c80d651f06587c43
Author: Ville Skyttä <ville.skytta at iki.fi>
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



More information about the Bash-completion-commits mailing list