summaryrefslogtreecommitdiff
path: root/test/lib/completions/dpkg.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/completions/dpkg.exp')
-rw-r--r--test/lib/completions/dpkg.exp29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/lib/completions/dpkg.exp b/test/lib/completions/dpkg.exp
new file mode 100644
index 00000000..2bd1fb6e
--- /dev/null
+++ b/test/lib/completions/dpkg.exp
@@ -0,0 +1,29 @@
+proc setup {} {
+ save_env
+}; # setup()
+
+
+proc teardown {} {
+ assert_env_unmodified
+}; # teardown()
+
+
+setup
+
+
+assert_complete_any "dpkg --c"
+
+
+sync_after_int
+
+
+ # Build list of installed packages
+if {[assert_exec {dpkg --get-selections | command grep \[\[:space:\]\]install$ | cut -f1} packages]} {
+ assert_complete $packages "dpkg -L "
+}; # if
+
+
+sync_after_int
+
+
+teardown