[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 53b1c41c160c3b112cbf6491f5c8840edd289e18

Freddy Vulto fvulto at gmail.com
Fri Jul 24 09:59:22 UTC 2009


The following commit has been merged in the master branch:
commit 53b1c41c160c3b112cbf6491f5c8840edd289e18
Author: Freddy Vulto <fvulto at gmail.com>
Date:   Fri Jul 24 11:58:02 2009 +0200

    Reviewed tests p*

diff --git a/test/_completion_to_review/p4.exp b/test/_completion_to_review/p4.exp
deleted file mode 100644
index 7de48de..0000000
--- a/test/_completion_to_review/p4.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/p4.exp"
diff --git a/test/_completion_to_review/paste.exp b/test/_completion_to_review/paste.exp
deleted file mode 100644
index 017e25f..0000000
--- a/test/_completion_to_review/paste.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/paste.exp"
diff --git a/test/_completion_to_review/patch.exp b/test/_completion_to_review/patch.exp
deleted file mode 100644
index 69a4970..0000000
--- a/test/_completion_to_review/patch.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/patch.exp"
diff --git a/test/_completion_to_review/perl.exp b/test/_completion_to_review/perl.exp
deleted file mode 100644
index a7817b3..0000000
--- a/test/_completion_to_review/perl.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/perl.exp"
diff --git a/test/_completion_to_review/perldoc.exp b/test/_completion_to_review/perldoc.exp
deleted file mode 100644
index 526e144..0000000
--- a/test/_completion_to_review/perldoc.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/perldoc.exp"
diff --git a/test/_completion_to_review/pine.exp b/test/_completion_to_review/pine.exp
deleted file mode 100644
index 414bd3a..0000000
--- a/test/_completion_to_review/pine.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/pine.exp"
diff --git a/test/_completion_to_review/pkg_deinstall.exp b/test/_completion_to_review/pkg_deinstall.exp
deleted file mode 100644
index bc721be..0000000
--- a/test/_completion_to_review/pkg_deinstall.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/pkg_deinstall.exp"
diff --git a/test/_completion_to_review/pkg_delete.exp b/test/_completion_to_review/pkg_delete.exp
deleted file mode 100644
index e43d50e..0000000
--- a/test/_completion_to_review/pkg_delete.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/pkg_delete.exp"
diff --git a/test/_completion_to_review/pkg_info.exp b/test/_completion_to_review/pkg_info.exp
deleted file mode 100644
index 54cd1b7..0000000
--- a/test/_completion_to_review/pkg_info.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/pkg_info.exp"
diff --git a/test/_completion_to_review/portinstall.exp b/test/_completion_to_review/portinstall.exp
deleted file mode 100644
index fd223e5..0000000
--- a/test/_completion_to_review/portinstall.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/portinstall.exp"
diff --git a/test/_completion_to_review/portupgrade.exp b/test/_completion_to_review/portupgrade.exp
deleted file mode 100644
index 22e50cf..0000000
--- a/test/_completion_to_review/portupgrade.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/portupgrade.exp"
diff --git a/test/_completion_to_review/povray.exp b/test/_completion_to_review/povray.exp
deleted file mode 100644
index bf7688a..0000000
--- a/test/_completion_to_review/povray.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/povray.exp"
diff --git a/test/_completion_to_review/pr.exp b/test/_completion_to_review/pr.exp
deleted file mode 100644
index 3f08a61..0000000
--- a/test/_completion_to_review/pr.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/pr.exp"
diff --git a/test/_completion_to_review/psql.exp b/test/_completion_to_review/psql.exp
deleted file mode 100644
index 0fcc8c8..0000000
--- a/test/_completion_to_review/psql.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/psql.exp"
diff --git a/test/_completion_to_review/ptx.exp b/test/_completion_to_review/ptx.exp
deleted file mode 100644
index 000594f..0000000
--- a/test/_completion_to_review/ptx.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/ptx.exp"
diff --git a/test/_completion_to_review/python.exp b/test/_completion_to_review/python.exp
deleted file mode 100644
index 18cee88..0000000
--- a/test/_completion_to_review/python.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/python.exp"
diff --git a/test/completion/p4.exp b/test/completion/p4.exp
new file mode 100644
index 0000000..d261ee0
--- /dev/null
+++ b/test/completion/p4.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type p4]} {
+    source "lib/completions/p4.exp"
+}; # if
diff --git a/test/completion/paste.exp b/test/completion/paste.exp
new file mode 100644
index 0000000..3358b9f
--- /dev/null
+++ b/test/completion/paste.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type paste]} {
+    source "lib/completions/paste.exp"
+}; # if
diff --git a/test/completion/patch.exp b/test/completion/patch.exp
new file mode 100644
index 0000000..a8b9b76
--- /dev/null
+++ b/test/completion/patch.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type patch]} {
+    source "lib/completions/patch.exp"
+}; # if
diff --git a/test/completion/perl.exp b/test/completion/perl.exp
new file mode 100644
index 0000000..496d4db
--- /dev/null
+++ b/test/completion/perl.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type {perl}]} {
+    source "lib/completions/perl.exp"
+}; # if
diff --git a/test/completion/perldoc.exp b/test/completion/perldoc.exp
new file mode 100644
index 0000000..3116252
--- /dev/null
+++ b/test/completion/perldoc.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type perldoc]} {
+    source "lib/completions/perldoc.exp"
+}; # if
diff --git a/test/completion/pine.exp b/test/completion/pine.exp
new file mode 100644
index 0000000..108b0cc
--- /dev/null
+++ b/test/completion/pine.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type pine]} {
+    source "lib/completions/pine.exp"
+}; # if
diff --git a/test/_completion_to_review/pkg-config.exp b/test/completion/pkg-config.exp
similarity index 100%
rename from test/_completion_to_review/pkg-config.exp
rename to test/completion/pkg-config.exp
diff --git a/test/completion/pkg_deinstall.exp b/test/completion/pkg_deinstall.exp
new file mode 100644
index 0000000..67b0a7e
--- /dev/null
+++ b/test/completion/pkg_deinstall.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type pkg_deinstall]} {
+    source "lib/completions/pkg_deinstall.exp"
+}; # if
diff --git a/test/completion/pkg_delete.exp b/test/completion/pkg_delete.exp
new file mode 100644
index 0000000..d90eca2
--- /dev/null
+++ b/test/completion/pkg_delete.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type pkg_delete]} {
+    source "lib/completions/pkg_delete.exp"
+}; # if
diff --git a/test/completion/pkg_info.exp b/test/completion/pkg_info.exp
new file mode 100644
index 0000000..1a7fe00
--- /dev/null
+++ b/test/completion/pkg_info.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type pkg_info]} {
+    source "lib/completions/pkg_info.exp"
+}; # if
diff --git a/test/completion/portinstall.exp b/test/completion/portinstall.exp
new file mode 100644
index 0000000..fa6fc8b
--- /dev/null
+++ b/test/completion/portinstall.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type portinstall]} {
+    source "lib/completions/portinstall.exp"
+}; # if
diff --git a/test/completion/portupgrade.exp b/test/completion/portupgrade.exp
new file mode 100644
index 0000000..bc2e857
--- /dev/null
+++ b/test/completion/portupgrade.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type portupgrade]} {
+    source "lib/completions/portupgrade.exp"
+}; # if
diff --git a/test/completion/povray.exp b/test/completion/povray.exp
new file mode 100644
index 0000000..0c50f4f
--- /dev/null
+++ b/test/completion/povray.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type povray]} {
+    source "lib/completions/povray.exp"
+}; # if
diff --git a/test/completion/pr.exp b/test/completion/pr.exp
new file mode 100644
index 0000000..de0884a
--- /dev/null
+++ b/test/completion/pr.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type pr]} {
+    source "lib/completions/pr.exp"
+}; # if
diff --git a/test/completion/psql.exp b/test/completion/psql.exp
new file mode 100644
index 0000000..86a3f29
--- /dev/null
+++ b/test/completion/psql.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type psql]} {
+    source "lib/completions/psql.exp"
+}; # if
diff --git a/test/completion/ptx.exp b/test/completion/ptx.exp
new file mode 100644
index 0000000..75656a9
--- /dev/null
+++ b/test/completion/ptx.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type ptx]} {
+    source "lib/completions/ptx.exp"
+}; # if
diff --git a/test/_completion_to_review/pvchange.exp b/test/completion/pvchange.exp
similarity index 100%
rename from test/_completion_to_review/pvchange.exp
rename to test/completion/pvchange.exp
diff --git a/test/_completion_to_review/pvcreate.exp b/test/completion/pvcreate.exp
similarity index 100%
rename from test/_completion_to_review/pvcreate.exp
rename to test/completion/pvcreate.exp
diff --git a/test/_completion_to_review/pvdisplay.exp b/test/completion/pvdisplay.exp
similarity index 100%
rename from test/_completion_to_review/pvdisplay.exp
rename to test/completion/pvdisplay.exp
diff --git a/test/_completion_to_review/pvmove.exp b/test/completion/pvmove.exp
similarity index 100%
rename from test/_completion_to_review/pvmove.exp
rename to test/completion/pvmove.exp
diff --git a/test/_completion_to_review/pvremove.exp b/test/completion/pvremove.exp
similarity index 100%
rename from test/_completion_to_review/pvremove.exp
rename to test/completion/pvremove.exp
diff --git a/test/_completion_to_review/pvs.exp b/test/completion/pvs.exp
similarity index 100%
rename from test/_completion_to_review/pvs.exp
rename to test/completion/pvs.exp
diff --git a/test/_completion_to_review/pvscan.exp b/test/completion/pvscan.exp
similarity index 100%
rename from test/_completion_to_review/pvscan.exp
rename to test/completion/pvscan.exp
diff --git a/test/completion/python.exp b/test/completion/python.exp
new file mode 100644
index 0000000..fd44bfb
--- /dev/null
+++ b/test/completion/python.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type python]} {
+    source "lib/completions/python.exp"
+}; # if
diff --git a/test/lib/completions/ci.exp b/test/lib/completions/p4.exp
similarity index 84%
copy from test/lib/completions/ci.exp
copy to test/lib/completions/p4.exp
index 09105ee..369d2c6 100644
--- a/test/lib/completions/ci.exp
+++ b/test/lib/completions/p4.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "ci "
+assert_complete_any "p4 "
 
 
 sync_after_int
diff --git a/test/lib/completions/bc.exp b/test/lib/completions/paste.exp
similarity index 83%
copy from test/lib/completions/bc.exp
copy to test/lib/completions/paste.exp
index c437d03..3a4e93b 100644
--- a/test/lib/completions/bc.exp
+++ b/test/lib/completions/paste.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "bc --"
+assert_complete_any "paste "
 
 
 sync_after_int
diff --git a/test/lib/completions/bc.exp b/test/lib/completions/patch.exp
similarity index 83%
copy from test/lib/completions/bc.exp
copy to test/lib/completions/patch.exp
index c437d03..a44fa13 100644
--- a/test/lib/completions/bc.exp
+++ b/test/lib/completions/patch.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "bc --"
+assert_complete_any "patch "
 
 
 sync_after_int
diff --git a/test/lib/completions_to_review/perl.exp b/test/lib/completions/perl.exp
similarity index 64%
rename from test/lib/completions_to_review/perl.exp
rename to test/lib/completions/perl.exp
index 8e61e2d..4b46338 100644
--- a/test/lib/completions_to_review/perl.exp
+++ b/test/lib/completions/perl.exp
@@ -1,23 +1,17 @@
 proc setup {} {
+    save_env
 }; # setup()
 
 
 proc teardown {} {
+    assert_env_unmodified
 }; # teardown()
 
 
 setup
 
 
-set test "Tab should show completions"
-    # Try completion
-set cmd "perl "
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*\r\n/@$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
+assert_complete_any "perl "
 
 
 sync_after_int
@@ -40,7 +34,7 @@ set test "-I without space should complete directories"
 set cmd "perl -Ifixture1/"
 send "$cmd\t"
 expect {
-    -re "^$cmd\r\n(\.svn/ +|)bar bar.d/ +foo.d/ *(\.svn/ *|)\r\n/@$cmd$" { pass "$test" }
+    -re "^$cmd\r\nbar bar.d/ +foo.d/ *\r\n/@$cmd$" { pass "$test" }
     -re /@ { unresolved "$test at prompt" }
     -re eof { unresolved "eof" }
 }
@@ -53,7 +47,7 @@ set test "-I with space should complete directories"
 set cmd "perl -I fixture1/"
 send "$cmd\t"
 expect {
-    -re "^$cmd\r\n(\.svn/ +|)bar bar.d/ +foo.d/ *(\.svn/ *|)\r\n/@$cmd$" { pass "$test" }
+    -re "^$cmd\r\nbar bar.d/ +foo.d/ *\r\n/@$cmd$" { pass "$test" }
     -re /@ { unresolved "$test at prompt" }
     -re eof { unresolved "eof" }
 }
@@ -89,14 +83,10 @@ sync_after_int
 
 
 set test "- should complete options"
-    # Try completion
-set cmd "perl -"
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n-0 +-a +-c +-C +-d +-D +-e +-F +-h +-i +-I +-l +-m +-M +-n +-p +-P +-s +-S +-T +-u +-U +-v +-V +-w +-W +-x +-X\r\n/@$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
+set options {
+    -0 -a -c -C -d -D -e -F -h -i -I -l -m -M -n -p -P -s -S -T -u -U -v -V -w -W -x -X
+}
+assert_complete $options "perl -"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/perldoc.exp
similarity index 81%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/perldoc.exp
index 26065d2..01eab99 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/perldoc.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "perldoc -"
 
 
 sync_after_int
diff --git a/test/lib/completions/bc.exp b/test/lib/completions/pine.exp
similarity index 83%
copy from test/lib/completions/bc.exp
copy to test/lib/completions/pine.exp
index c437d03..0a0c3f4 100644
--- a/test/lib/completions/bc.exp
+++ b/test/lib/completions/pine.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "bc --"
+assert_complete_any "pine "
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/pkg-config.exp
similarity index 80%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/pkg-config.exp
index 26065d2..477dba0 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/pkg-config.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "pkg-config -"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/pkg_deinstall.exp
similarity index 79%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/pkg_deinstall.exp
index 26065d2..fffc502 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/pkg_deinstall.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "pkg_deinstall "
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/pkg_delete.exp
similarity index 80%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/pkg_delete.exp
index 26065d2..b0c1a2a 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/pkg_delete.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "pkg_delete "
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/pkg_info.exp
similarity index 81%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/pkg_info.exp
index 26065d2..3f253cc 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/pkg_info.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "pkg_info "
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/portinstall.exp
similarity index 80%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/portinstall.exp
index 26065d2..677ac65 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/portinstall.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "portinstall "
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/portupgrade.exp
similarity index 80%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/portupgrade.exp
index 26065d2..e80281b 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/portupgrade.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "portupgrade "
 
 
 sync_after_int
diff --git a/test/lib/completions/bash.exp b/test/lib/completions/povray.exp
similarity index 82%
copy from test/lib/completions/bash.exp
copy to test/lib/completions/povray.exp
index 4caf58f..1efeedd 100644
--- a/test/lib/completions/bash.exp
+++ b/test/lib/completions/povray.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "bash --"
+assert_complete_any "povray "
 
 
 sync_after_int
diff --git a/test/lib/completions/ci.exp b/test/lib/completions/pr.exp
similarity index 84%
copy from test/lib/completions/ci.exp
copy to test/lib/completions/pr.exp
index 09105ee..5d7a96c 100644
--- a/test/lib/completions/ci.exp
+++ b/test/lib/completions/pr.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "ci "
+assert_complete_any "pr "
 
 
 sync_after_int
diff --git a/test/lib/completions/bc.exp b/test/lib/completions/psql.exp
similarity index 83%
copy from test/lib/completions/bc.exp
copy to test/lib/completions/psql.exp
index c437d03..56d5666 100644
--- a/test/lib/completions/bc.exp
+++ b/test/lib/completions/psql.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "bc --"
+assert_complete_any "psql -"
 
 
 sync_after_int
diff --git a/test/lib/completions/cat.exp b/test/lib/completions/ptx.exp
similarity index 84%
copy from test/lib/completions/cat.exp
copy to test/lib/completions/ptx.exp
index 46e8775..2defe04 100644
--- a/test/lib/completions/cat.exp
+++ b/test/lib/completions/ptx.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "cat "
+assert_complete_any "ptx "
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/pvchange.exp
similarity index 80%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/pvchange.exp
index 26065d2..fd4b73d 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/pvchange.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "pvchange --"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/pvcreate.exp
similarity index 80%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/pvcreate.exp
index 26065d2..47cebf7 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/pvcreate.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "pvcreate --"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/pvdisplay.exp
similarity index 80%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/pvdisplay.exp
index 26065d2..151064c 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/pvdisplay.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "pvdisplay --"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/pvmove.exp
similarity index 81%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/pvmove.exp
index 26065d2..81c05e9 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/pvmove.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "pvmove --"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/pvremove.exp
similarity index 80%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/pvremove.exp
index 26065d2..dd145bf 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/pvremove.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "pvremove --"
 
 
 sync_after_int
diff --git a/test/lib/completions/bc.exp b/test/lib/completions/pvs.exp
similarity index 83%
copy from test/lib/completions/bc.exp
copy to test/lib/completions/pvs.exp
index c437d03..6e5527e 100644
--- a/test/lib/completions/bc.exp
+++ b/test/lib/completions/pvs.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "bc --"
+assert_complete_any "pvs --"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/pvscan.exp
similarity index 81%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/pvscan.exp
index 26065d2..e92cdbe 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/pvscan.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "pvscan --"
 
 
 sync_after_int
diff --git a/test/lib/completions/bash.exp b/test/lib/completions/python.exp
similarity index 82%
copy from test/lib/completions/bash.exp
copy to test/lib/completions/python.exp
index 4caf58f..c9d70b4 100644
--- a/test/lib/completions/bash.exp
+++ b/test/lib/completions/python.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "bash --"
+assert_complete_any "python "
 
 
 sync_after_int
diff --git a/test/lib/completions_to_review/p4.exp b/test/lib/completions_to_review/p4.exp
deleted file mode 100644
index 1b26cfc..0000000
--- a/test/lib/completions_to_review/p4.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "p4 "
-send "$cmd\t"
-expect {
-    -re "^${cmd}(bash: p4: command not found|)\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/paste.exp b/test/lib/completions_to_review/paste.exp
deleted file mode 100644
index 5d6c3c8..0000000
--- a/test/lib/completions_to_review/paste.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "paste "
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/patch.exp b/test/lib/completions_to_review/patch.exp
deleted file mode 100644
index c3015c1..0000000
--- a/test/lib/completions_to_review/patch.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "patch "
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/perldoc.exp b/test/lib/completions_to_review/perldoc.exp
deleted file mode 100644
index ac8a18f..0000000
--- a/test/lib/completions_to_review/perldoc.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "perldoc -"
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/pine.exp b/test/lib/completions_to_review/pine.exp
deleted file mode 100644
index cb4396c..0000000
--- a/test/lib/completions_to_review/pine.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "pine "
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/pkg-config.exp b/test/lib/completions_to_review/pkg-config.exp
deleted file mode 100644
index 67094dd..0000000
--- a/test/lib/completions_to_review/pkg-config.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "pkg-config -"
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/pkg_deinstall.exp b/test/lib/completions_to_review/pkg_deinstall.exp
deleted file mode 100644
index 700a5be..0000000
--- a/test/lib/completions_to_review/pkg_deinstall.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "pkg_deinstall "
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/pkg_delete.exp b/test/lib/completions_to_review/pkg_delete.exp
deleted file mode 100644
index fc82066..0000000
--- a/test/lib/completions_to_review/pkg_delete.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "pkg_delete "
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/pkg_info.exp b/test/lib/completions_to_review/pkg_info.exp
deleted file mode 100644
index 66bc0e1..0000000
--- a/test/lib/completions_to_review/pkg_info.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "pkg_info "
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/portinstall.exp b/test/lib/completions_to_review/portinstall.exp
deleted file mode 100644
index 36a6f0b..0000000
--- a/test/lib/completions_to_review/portinstall.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "portinstall "
-send "$cmd\t"
-expect {
-    -re "^${cmd}(bash: /usr/ports//INDEX: No such file or directory\r\n)*\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/portupgrade.exp b/test/lib/completions_to_review/portupgrade.exp
deleted file mode 100644
index b345f1a..0000000
--- a/test/lib/completions_to_review/portupgrade.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "portupgrade "
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/povray.exp b/test/lib/completions_to_review/povray.exp
deleted file mode 100644
index bada2cc..0000000
--- a/test/lib/completions_to_review/povray.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "povray "
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/pr.exp b/test/lib/completions_to_review/pr.exp
deleted file mode 100644
index a7f4f57..0000000
--- a/test/lib/completions_to_review/pr.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "pr "
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/psql.exp b/test/lib/completions_to_review/psql.exp
deleted file mode 100644
index 19f5a8a..0000000
--- a/test/lib/completions_to_review/psql.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "psql "
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/ptx.exp b/test/lib/completions_to_review/ptx.exp
deleted file mode 100644
index 95c9344..0000000
--- a/test/lib/completions_to_review/ptx.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "ptx "
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/pvchange.exp b/test/lib/completions_to_review/pvchange.exp
deleted file mode 100644
index 190ee41..0000000
--- a/test/lib/completions_to_review/pvchange.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "pvchange --"
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/pvcreate.exp b/test/lib/completions_to_review/pvcreate.exp
deleted file mode 100644
index 795c8f2..0000000
--- a/test/lib/completions_to_review/pvcreate.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "pvcreate --"
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/pvdisplay.exp b/test/lib/completions_to_review/pvdisplay.exp
deleted file mode 100644
index e10fbe0..0000000
--- a/test/lib/completions_to_review/pvdisplay.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "pvdisplay --"
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/pvmove.exp b/test/lib/completions_to_review/pvmove.exp
deleted file mode 100644
index 9c0f70e..0000000
--- a/test/lib/completions_to_review/pvmove.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "pvmove --"
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/pvremove.exp b/test/lib/completions_to_review/pvremove.exp
deleted file mode 100644
index cb89bd2..0000000
--- a/test/lib/completions_to_review/pvremove.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "pvremove --"
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/pvs.exp b/test/lib/completions_to_review/pvs.exp
deleted file mode 100644
index a8a5758..0000000
--- a/test/lib/completions_to_review/pvs.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "pvs --"
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/pvscan.exp b/test/lib/completions_to_review/pvscan.exp
deleted file mode 100644
index 7ffb484..0000000
--- a/test/lib/completions_to_review/pvscan.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "pvscan --"
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown
diff --git a/test/lib/completions_to_review/python.exp b/test/lib/completions_to_review/python.exp
deleted file mode 100644
index 0889d43..0000000
--- a/test/lib/completions_to_review/python.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "python "
-send "$cmd\t"
-expect {
-    -re "^$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
-
-
-sync_after_int
-
-
-teardown

-- 
bash-completion



More information about the Bash-completion-commits mailing list