summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-09-28 18:59:15 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-09-28 18:59:15 +0300
commit89b7923cb8247e4bd1fa7d01c235c88d0e45cd24 (patch)
treef1c6eb6e8b09ee1e9e79fbbce0d2f73319b82265 /test
parent9d146b9ba5735854c486cfc013c4a8d962661cc4 (diff)
downloadbash-completion-89b7923cb8247e4bd1fa7d01c235c88d0e45cd24.tar.gz
ping, tracepath: Split to iputils, add option completions.
Diffstat (limited to 'test')
-rw-r--r--test/completion/tracepath.exp1
-rw-r--r--test/lib/completions/ping.exp3
-rw-r--r--test/lib/completions/tracepath.exp21
3 files changed, 24 insertions, 1 deletions
diff --git a/test/completion/tracepath.exp b/test/completion/tracepath.exp
new file mode 100644
index 00000000..621f0ba8
--- /dev/null
+++ b/test/completion/tracepath.exp
@@ -0,0 +1 @@
+assert_source_completions tracepath
diff --git a/test/lib/completions/ping.exp b/test/lib/completions/ping.exp
index 3e419966..9ef7f2fd 100644
--- a/test/lib/completions/ping.exp
+++ b/test/lib/completions/ping.exp
@@ -12,8 +12,9 @@ setup
assert_complete_any "ping "
+sync_after_int
-
+assert_complete_any "ping -"
sync_after_int
diff --git a/test/lib/completions/tracepath.exp b/test/lib/completions/tracepath.exp
new file mode 100644
index 00000000..33b32567
--- /dev/null
+++ b/test/lib/completions/tracepath.exp
@@ -0,0 +1,21 @@
+proc setup {} {
+ save_env
+}
+
+
+proc teardown {} {
+ assert_env_unmodified
+}
+
+
+setup
+
+
+assert_complete_any "tracepath "
+sync_after_int
+
+assert_complete_any "tracepath -"
+sync_after_int
+
+
+teardown