summaryrefslogtreecommitdiff
path: root/test/lib/completions/makepkg.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/completions/makepkg.exp')
-rw-r--r--test/lib/completions/makepkg.exp28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/lib/completions/makepkg.exp b/test/lib/completions/makepkg.exp
new file mode 100644
index 00000000..56e06339
--- /dev/null
+++ b/test/lib/completions/makepkg.exp
@@ -0,0 +1,28 @@
+proc setup {} {
+ save_env
+}
+
+
+proc teardown {} {
+ assert_env_unmodified
+}
+
+
+setup
+
+
+assert_complete_any "makepkg -"
+
+
+sync_after_int
+
+
+set test "--<TAB> should complete all long options"
+set options [list --linkadd --prepend --chown]
+assert_complete $options "makepkg --" $test
+
+
+sync_after_int
+
+
+teardown