[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 85dd9cd64cfa5130a9108fbcf54c744473957301

Freddy Vulto fvulto at gmail.com
Fri Jul 31 20:53:56 UTC 2009


The following commit has been merged in the master branch:
commit 85dd9cd64cfa5130a9108fbcf54c744473957301
Author: Freddy Vulto <fvulto at gmail.com>
Date:   Fri Jul 31 22:53:30 2009 +0200

    Reviewed tests u*

diff --git a/test/_completion_to_review/unace.exp b/test/_completion_to_review/unace.exp
deleted file mode 100644
index ec60414..0000000
--- a/test/_completion_to_review/unace.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/unace.exp"
diff --git a/test/_completion_to_review/uname.exp b/test/_completion_to_review/uname.exp
deleted file mode 100644
index 63baea5..0000000
--- a/test/_completion_to_review/uname.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/uname.exp"
diff --git a/test/_completion_to_review/unexpand.exp b/test/_completion_to_review/unexpand.exp
deleted file mode 100644
index 0ffe241..0000000
--- a/test/_completion_to_review/unexpand.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/unexpand.exp"
diff --git a/test/_completion_to_review/uniq.exp b/test/_completion_to_review/uniq.exp
deleted file mode 100644
index e545c63..0000000
--- a/test/_completion_to_review/uniq.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/uniq.exp"
diff --git a/test/_completion_to_review/units.exp b/test/_completion_to_review/units.exp
deleted file mode 100644
index 06df208..0000000
--- a/test/_completion_to_review/units.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/units.exp"
diff --git a/test/_completion_to_review/unrar.exp b/test/_completion_to_review/unrar.exp
deleted file mode 100644
index 544fb18..0000000
--- a/test/_completion_to_review/unrar.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/unrar.exp"
diff --git a/test/_completion_to_review/unset.exp b/test/_completion_to_review/unset.exp
deleted file mode 100644
index 3e90e46..0000000
--- a/test/_completion_to_review/unset.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/unset.exp"
diff --git a/test/_completion_to_review/unshunt.exp b/test/_completion_to_review/unshunt.exp
deleted file mode 100644
index e419425..0000000
--- a/test/_completion_to_review/unshunt.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/unshunt.exp"
diff --git a/test/_completion_to_review/update-alternatives.exp b/test/_completion_to_review/update-alternatives.exp
deleted file mode 100644
index 9237b8a..0000000
--- a/test/_completion_to_review/update-alternatives.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/update-alternatives.exp"
diff --git a/test/_completion_to_review/update-rc.d.exp b/test/_completion_to_review/update-rc.d.exp
deleted file mode 100644
index 5f4ec91..0000000
--- a/test/_completion_to_review/update-rc.d.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/update-rc.d.exp"
diff --git a/test/_completion_to_review/urlsnarf.exp b/test/_completion_to_review/urlsnarf.exp
deleted file mode 100644
index 6810859..0000000
--- a/test/_completion_to_review/urlsnarf.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/urlsnarf.exp"
diff --git a/test/completion/unace.exp b/test/completion/unace.exp
new file mode 100644
index 0000000..052a39f
--- /dev/null
+++ b/test/completion/unace.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type unace]} {
+    source "lib/completions/unace.exp"
+}; # if
diff --git a/test/completion/uname.exp b/test/completion/uname.exp
new file mode 100644
index 0000000..e53f272
--- /dev/null
+++ b/test/completion/uname.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type uname]} {
+    source "lib/completions/uname.exp"
+}; # if
diff --git a/test/completion/unexpand.exp b/test/completion/unexpand.exp
new file mode 100644
index 0000000..cb6a165
--- /dev/null
+++ b/test/completion/unexpand.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type unexpand]} {
+    source "lib/completions/unexpand.exp"
+}; # if
diff --git a/test/completion/uniq.exp b/test/completion/uniq.exp
new file mode 100644
index 0000000..c535ae9
--- /dev/null
+++ b/test/completion/uniq.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type uniq]} {
+    source "lib/completions/uniq.exp"
+}; # if
diff --git a/test/completion/units.exp b/test/completion/units.exp
new file mode 100644
index 0000000..db77cef
--- /dev/null
+++ b/test/completion/units.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type units]} {
+    source "lib/completions/units.exp"
+}; # if
diff --git a/test/completion/unrar.exp b/test/completion/unrar.exp
new file mode 100644
index 0000000..892b320
--- /dev/null
+++ b/test/completion/unrar.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type unrar]} {
+    source "lib/completions/unrar.exp"
+}; # if
diff --git a/test/completion/unset.exp b/test/completion/unset.exp
new file mode 100644
index 0000000..5b26216
--- /dev/null
+++ b/test/completion/unset.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type unset]} {
+    source "lib/completions/unset.exp"
+}; # if
diff --git a/test/completion/unshunt.exp b/test/completion/unshunt.exp
new file mode 100644
index 0000000..a86619a
--- /dev/null
+++ b/test/completion/unshunt.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type unshunt]} {
+    source "lib/completions/unshunt.exp"
+}; # if
diff --git a/test/completion/update-alternatives.exp b/test/completion/update-alternatives.exp
new file mode 100644
index 0000000..9fe1bc6
--- /dev/null
+++ b/test/completion/update-alternatives.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type update-alternatives]} {
+    source "lib/completions/update-alternatives.exp"
+}; # if
diff --git a/test/completion/update-rc.d.exp b/test/completion/update-rc.d.exp
new file mode 100644
index 0000000..98cf859
--- /dev/null
+++ b/test/completion/update-rc.d.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type update-rc.d]} {
+    source "lib/completions/update-rc.d.exp"
+}; # if
diff --git a/test/completion/urlsnarf.exp b/test/completion/urlsnarf.exp
new file mode 100644
index 0000000..beae4ce
--- /dev/null
+++ b/test/completion/urlsnarf.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type urlsnarf]} {
+    source "lib/completions/urlsnarf.exp"
+}; # if
diff --git a/test/lib/completions/bash.exp b/test/lib/completions/unace.exp
similarity index 82%
copy from test/lib/completions/bash.exp
copy to test/lib/completions/unace.exp
index 4caf58f..0afbaaf 100644
--- a/test/lib/completions/bash.exp
+++ b/test/lib/completions/unace.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "bash --"
+assert_complete_any "unace -"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/uname.exp
similarity index 82%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/uname.exp
index 26065d2..8de0eed 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/uname.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "uname --"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/unexpand.exp
similarity index 80%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/unexpand.exp
index 26065d2..ecb726f 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/unexpand.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "unexpand --"
 
 
 sync_after_int
diff --git a/test/lib/completions/bash.exp b/test/lib/completions/uniq.exp
similarity index 82%
copy from test/lib/completions/bash.exp
copy to test/lib/completions/uniq.exp
index 4caf58f..6b91559 100644
--- a/test/lib/completions/bash.exp
+++ b/test/lib/completions/uniq.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "bash --"
+assert_complete_any "uniq --"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/units.exp
similarity index 82%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/units.exp
index 26065d2..b4c52b0 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/units.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "units --"
 
 
 sync_after_int
diff --git a/test/lib/completions/bash.exp b/test/lib/completions/unrar.exp
similarity index 82%
copy from test/lib/completions/bash.exp
copy to test/lib/completions/unrar.exp
index 4caf58f..e66e3c8 100644
--- a/test/lib/completions/bash.exp
+++ b/test/lib/completions/unrar.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "bash --"
+assert_complete_any "unrar -"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/unset.exp
similarity index 79%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/unset.exp
index 26065d2..a5e7fc9 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/unset.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "unset BASH_ARG"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/unshunt.exp
similarity index 81%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/unshunt.exp
index 26065d2..964cac6 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/unshunt.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "unshunt -"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/update-alternatives.exp
similarity index 76%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/update-alternatives.exp
index 26065d2..10ff4e6 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/update-alternatives.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "update-alternatives --"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/update-rc.d.exp
similarity index 79%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/update-rc.d.exp
index 26065d2..9c2c246 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/update-rc.d.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "update-rc.d -"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/urlsnarf.exp
similarity index 81%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/urlsnarf.exp
index 26065d2..c5b2692 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/urlsnarf.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "urlsnarf -"
 
 
 sync_after_int
diff --git a/test/lib/completions_to_review/unace.exp b/test/lib/completions_to_review/unace.exp
deleted file mode 100644
index b28b898..0000000
--- a/test/lib/completions_to_review/unace.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "unace "
-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/uname.exp b/test/lib/completions_to_review/uname.exp
deleted file mode 100644
index eaf7fcf..0000000
--- a/test/lib/completions_to_review/uname.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "uname --"
-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/unexpand.exp b/test/lib/completions_to_review/unexpand.exp
deleted file mode 100644
index e061d13..0000000
--- a/test/lib/completions_to_review/unexpand.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "unexpand "
-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/uniq.exp b/test/lib/completions_to_review/uniq.exp
deleted file mode 100644
index 27417a1..0000000
--- a/test/lib/completions_to_review/uniq.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "uniq "
-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/units.exp b/test/lib/completions_to_review/units.exp
deleted file mode 100644
index eb3ebe8..0000000
--- a/test/lib/completions_to_review/units.exp
+++ /dev/null
@@ -1,27 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "units --"
-send "$cmd\t"
-sync_after_tab
-expect {
-    -re "^$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/unrar.exp b/test/lib/completions_to_review/unrar.exp
deleted file mode 100644
index 6c1c56a..0000000
--- a/test/lib/completions_to_review/unrar.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "unrar "
-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/unset.exp b/test/lib/completions_to_review/unset.exp
deleted file mode 100644
index b070ed3..0000000
--- a/test/lib/completions_to_review/unset.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "unset BASH_ARG"
-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/unshunt.exp b/test/lib/completions_to_review/unshunt.exp
deleted file mode 100644
index ccf56f9..0000000
--- a/test/lib/completions_to_review/unshunt.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "unshunt "
-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/update-alternatives.exp b/test/lib/completions_to_review/update-alternatives.exp
deleted file mode 100644
index ed43779..0000000
--- a/test/lib/completions_to_review/update-alternatives.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "update-alternatives --"
-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/update-rc.d.exp b/test/lib/completions_to_review/update-rc.d.exp
deleted file mode 100644
index 92fffd3..0000000
--- a/test/lib/completions_to_review/update-rc.d.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "update-rc.d -"
-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/urlsnarf.exp b/test/lib/completions_to_review/urlsnarf.exp
deleted file mode 100644
index 620c4c3..0000000
--- a/test/lib/completions_to_review/urlsnarf.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "urlsnarf -"
-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