summaryrefslogtreecommitdiff
path: root/test/lib/completions/dd.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/completions/dd.exp')
-rw-r--r--test/lib/completions/dd.exp33
1 files changed, 33 insertions, 0 deletions
diff --git a/test/lib/completions/dd.exp b/test/lib/completions/dd.exp
new file mode 100644
index 00000000..400dd143
--- /dev/null
+++ b/test/lib/completions/dd.exp
@@ -0,0 +1,33 @@
+proc setup {} {
+ save_env
+}; # setup()
+
+
+proc teardown {} {
+ assert_env_unmodified
+}; # teardown()
+
+
+setup
+
+
+assert_complete_any "dd --"
+
+
+sync_after_int
+
+
+set test "option should be suffixed with ="
+set cmd "dd if"
+send "$cmd\t"
+expect -ex "$cmd"
+expect {
+ -re "^=$" { pass $test }
+ -re {^\\=$} { xfail $test }
+}; # expect
+
+
+sync_after_int
+
+
+teardown