summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-10-11 21:06:36 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-10-11 21:10:08 +0300
commit049b60ec61bebfd82e88eba3bc1df6fc138c38e5 (patch)
tree144d3178c38d322555a27072374c05c069ebbbc4 /test
parentec5762cba9ef34f6836da858560e47b196cbb6cf (diff)
downloadbash-completion-049b60ec61bebfd82e88eba3bc1df6fc138c38e5.tar.gz
watch: New completion (Linux only for now).
Diffstat (limited to 'test')
-rw-r--r--test/completion/watch.exp1
-rw-r--r--test/lib/completions/watch.exp18
2 files changed, 19 insertions, 0 deletions
diff --git a/test/completion/watch.exp b/test/completion/watch.exp
new file mode 100644
index 00000000..9bb0644f
--- /dev/null
+++ b/test/completion/watch.exp
@@ -0,0 +1 @@
+assert_source_completions watch
diff --git a/test/lib/completions/watch.exp b/test/lib/completions/watch.exp
new file mode 100644
index 00000000..02ae8f1b
--- /dev/null
+++ b/test/lib/completions/watch.exp
@@ -0,0 +1,18 @@
+proc setup {} {
+ save_env
+}
+
+
+proc teardown {} {
+ assert_env_unmodified
+}
+
+
+setup
+
+
+assert_complete_any "watch -"
+sync_after_int
+
+
+teardown