summaryrefslogtreecommitdiff
path: root/test/lib/completions/rpm.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/completions/rpm.exp')
-rw-r--r--test/lib/completions/rpm.exp29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/lib/completions/rpm.exp b/test/lib/completions/rpm.exp
new file mode 100644
index 00000000..3ed154a9
--- /dev/null
+++ b/test/lib/completions/rpm.exp
@@ -0,0 +1,29 @@
+proc setup {} {
+ save_env
+}; # setup()
+
+
+proc teardown {} {
+ assert_env_unmodified
+}; # teardown()
+
+
+setup
+
+
+assert_complete_any "rpm "
+
+
+sync_after_int
+
+
+ # Build list of installed packages
+if {[assert_exec {rpm -qa --qf=%\{NAME\}\n | sort -u} packages]} {
+ assert_complete $packages "rpm -q "
+}; # if
+
+
+sync_after_int
+
+
+teardown