summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-07-22 21:12:42 +0300
committerVille Skyttä <ville.skytta@iki.fi>2011-07-22 21:12:42 +0300
commitf4364ac99a66e3613dffecaf33f0a1143c9e862f (patch)
tree570a4d16393960df26faa2c3ebe3da854ab72204 /test
parent346624bf5b86989392bb0b00183b458d72e9f01c (diff)
downloadbash-completion-f4364ac99a66e3613dffecaf33f0a1143c9e862f.tar.gz
testsuite: Add basic compare, conjure, import, and stream test cases.
Diffstat (limited to 'test')
-rw-r--r--test/completion/compare.exp1
-rw-r--r--test/completion/conjure.exp1
-rw-r--r--test/completion/import.exp1
-rw-r--r--test/completion/stream.exp1
-rw-r--r--test/lib/completions/compare.exp20
-rw-r--r--test/lib/completions/conjure.exp20
-rw-r--r--test/lib/completions/import.exp20
-rw-r--r--test/lib/completions/stream.exp20
8 files changed, 84 insertions, 0 deletions
diff --git a/test/completion/compare.exp b/test/completion/compare.exp
new file mode 100644
index 00000000..d2ea0cc7
--- /dev/null
+++ b/test/completion/compare.exp
@@ -0,0 +1 @@
+assert_source_completions compare
diff --git a/test/completion/conjure.exp b/test/completion/conjure.exp
new file mode 100644
index 00000000..687c6107
--- /dev/null
+++ b/test/completion/conjure.exp
@@ -0,0 +1 @@
+assert_source_completions conjure
diff --git a/test/completion/import.exp b/test/completion/import.exp
new file mode 100644
index 00000000..682a5069
--- /dev/null
+++ b/test/completion/import.exp
@@ -0,0 +1 @@
+assert_source_completions import
diff --git a/test/completion/stream.exp b/test/completion/stream.exp
new file mode 100644
index 00000000..fba2104f
--- /dev/null
+++ b/test/completion/stream.exp
@@ -0,0 +1 @@
+assert_source_completions stream
diff --git a/test/lib/completions/compare.exp b/test/lib/completions/compare.exp
new file mode 100644
index 00000000..006d70a1
--- /dev/null
+++ b/test/lib/completions/compare.exp
@@ -0,0 +1,20 @@
+proc setup {} {
+ save_env
+}
+
+
+proc teardown {} {
+ assert_env_unmodified
+}
+
+
+setup
+
+
+assert_complete_any "compare "
+
+
+sync_after_int
+
+
+teardown
diff --git a/test/lib/completions/conjure.exp b/test/lib/completions/conjure.exp
new file mode 100644
index 00000000..4f628af3
--- /dev/null
+++ b/test/lib/completions/conjure.exp
@@ -0,0 +1,20 @@
+proc setup {} {
+ save_env
+}
+
+
+proc teardown {} {
+ assert_env_unmodified
+}
+
+
+setup
+
+
+assert_complete_any "conjure "
+
+
+sync_after_int
+
+
+teardown
diff --git a/test/lib/completions/import.exp b/test/lib/completions/import.exp
new file mode 100644
index 00000000..db6845ea
--- /dev/null
+++ b/test/lib/completions/import.exp
@@ -0,0 +1,20 @@
+proc setup {} {
+ save_env
+}
+
+
+proc teardown {} {
+ assert_env_unmodified
+}
+
+
+setup
+
+
+assert_complete_any "import "
+
+
+sync_after_int
+
+
+teardown
diff --git a/test/lib/completions/stream.exp b/test/lib/completions/stream.exp
new file mode 100644
index 00000000..8cbda602
--- /dev/null
+++ b/test/lib/completions/stream.exp
@@ -0,0 +1,20 @@
+proc setup {} {
+ save_env
+}
+
+
+proc teardown {} {
+ assert_env_unmodified
+}
+
+
+setup
+
+
+assert_complete_any "stream "
+
+
+sync_after_int
+
+
+teardown