summaryrefslogtreecommitdiff
path: root/test/lib/completions/portinstall.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/completions/portinstall.exp')
-rw-r--r--test/lib/completions/portinstall.exp22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/lib/completions/portinstall.exp b/test/lib/completions/portinstall.exp
new file mode 100644
index 00000000..d70f5db6
--- /dev/null
+++ b/test/lib/completions/portinstall.exp
@@ -0,0 +1,22 @@
+proc setup {} {
+ assert_bash_exec {PORTSDIR=fixtures/pkgtools/ports ; sed -e s,PORTSDIR,$PORTSDIR,g $PORTSDIR/INDEX.dist > $PORTSDIR/INDEX ; cp $PORTSDIR/INDEX $PORTSDIR/INDEX-5}
+ save_env
+}; # setup()
+
+
+proc teardown {} {
+ assert_bash_exec {rm fixtures/pkgtools/ports/INDEX fixtures/pkgtools/ports/INDEX-5}
+ assert_env_unmodified
+}; # teardown()
+
+
+setup
+
+
+assert_complete "bash-2.05b.007_6 bash-3.1.17 bash-completion-20060301_2 shells/bash shells/bash-completion shells/bash2" "portinstall "
+
+
+sync_after_int
+
+
+teardown