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

Freddy Vulto (none) freddy at rebase.
Fri Jul 31 20:18:41 UTC 2009


The following commit has been merged in the master branch:
commit bcd33375cac35d190fc9c15e690ab1e452282e45
Author: Freddy Vulto <freddy at rebase.(none)>
Date:   Fri Jul 31 22:18:12 2009 +0200

    Reviewed tests t*

diff --git a/test/_completion_to_review/tac.exp b/test/_completion_to_review/tac.exp
deleted file mode 100644
index bf9a032..0000000
--- a/test/_completion_to_review/tac.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/tac.exp"
diff --git a/test/_completion_to_review/tail.exp b/test/_completion_to_review/tail.exp
deleted file mode 100644
index c499aa4..0000000
--- a/test/_completion_to_review/tail.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/tail.exp"
diff --git a/test/_completion_to_review/tar.exp b/test/_completion_to_review/tar.exp
deleted file mode 100644
index 26dcf88..0000000
--- a/test/_completion_to_review/tar.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/tar.exp"
diff --git a/test/_completion_to_review/tcpkill.exp b/test/_completion_to_review/tcpkill.exp
deleted file mode 100644
index df96e69..0000000
--- a/test/_completion_to_review/tcpkill.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/tcpkill.exp"
diff --git a/test/_completion_to_review/tcpnice.exp b/test/_completion_to_review/tcpnice.exp
deleted file mode 100644
index fb39315..0000000
--- a/test/_completion_to_review/tcpnice.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/tcpnice.exp"
diff --git a/test/_completion_to_review/tee.exp b/test/_completion_to_review/tee.exp
deleted file mode 100644
index ef30ea8..0000000
--- a/test/_completion_to_review/tee.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/tee.exp"
diff --git a/test/_completion_to_review/texindex.exp b/test/_completion_to_review/texindex.exp
deleted file mode 100644
index 5437532..0000000
--- a/test/_completion_to_review/texindex.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/texindex.exp"
diff --git a/test/_completion_to_review/time.exp b/test/_completion_to_review/time.exp
deleted file mode 100644
index 3fb7e15..0000000
--- a/test/_completion_to_review/time.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/time.exp"
diff --git a/test/_completion_to_review/touch.exp b/test/_completion_to_review/touch.exp
deleted file mode 100644
index d8f368d..0000000
--- a/test/_completion_to_review/touch.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/touch.exp"
diff --git a/test/_completion_to_review/tr.exp b/test/_completion_to_review/tr.exp
deleted file mode 100644
index cb3fba4..0000000
--- a/test/_completion_to_review/tr.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/tr.exp"
diff --git a/test/completion/tac.exp b/test/completion/tac.exp
new file mode 100644
index 0000000..60ab372
--- /dev/null
+++ b/test/completion/tac.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type tac]} {
+    source "lib/completions/tac.exp"
+}; # if
diff --git a/test/completion/tail.exp b/test/completion/tail.exp
new file mode 100644
index 0000000..72793f1
--- /dev/null
+++ b/test/completion/tail.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type tail]} {
+    source "lib/completions/tail.exp"
+}; # if
diff --git a/test/completion/tar.exp b/test/completion/tar.exp
new file mode 100644
index 0000000..b694b66
--- /dev/null
+++ b/test/completion/tar.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type tar]} {
+    source "lib/completions/tar.exp"
+}; # if
diff --git a/test/completion/tcpkill.exp b/test/completion/tcpkill.exp
new file mode 100644
index 0000000..43473fc
--- /dev/null
+++ b/test/completion/tcpkill.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type tcpkill]} {
+    source "lib/completions/tcpkill.exp"
+}; # if
diff --git a/test/completion/tcpnice.exp b/test/completion/tcpnice.exp
new file mode 100644
index 0000000..8d37573
--- /dev/null
+++ b/test/completion/tcpnice.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type tcpnice]} {
+    source "lib/completions/tcpnice.exp"
+}; # if
diff --git a/test/completion/tee.exp b/test/completion/tee.exp
new file mode 100644
index 0000000..70e9610
--- /dev/null
+++ b/test/completion/tee.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type tee]} {
+    source "lib/completions/tee.exp"
+}; # if
diff --git a/test/completion/texindex.exp b/test/completion/texindex.exp
new file mode 100644
index 0000000..749b520
--- /dev/null
+++ b/test/completion/texindex.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type texindex]} {
+    source "lib/completions/texindex.exp"
+}; # if
diff --git a/test/completion/tightvncviewer.exp b/test/completion/tightvncviewer.exp
index a592f36..b05ee3f 100644
--- a/test/completion/tightvncviewer.exp
+++ b/test/completion/tightvncviewer.exp
@@ -1,3 +1,3 @@
-if {[assert_bash_type {tightvncviewer}]} {
+if {[assert_bash_type tightvncviewer]} {
     source "lib/completions/tightvncviewer.exp"
 }; # if
diff --git a/test/completion/time.exp b/test/completion/time.exp
new file mode 100644
index 0000000..c4fc235
--- /dev/null
+++ b/test/completion/time.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type time]} {
+    source "lib/completions/time.exp"
+}; # if
diff --git a/test/completion/touch.exp b/test/completion/touch.exp
new file mode 100644
index 0000000..2361e1f
--- /dev/null
+++ b/test/completion/touch.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type touch]} {
+    source "lib/completions/touch.exp"
+}; # if
diff --git a/test/completion/tr.exp b/test/completion/tr.exp
new file mode 100644
index 0000000..8279c93
--- /dev/null
+++ b/test/completion/tr.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type tr]} {
+    source "lib/completions/tr.exp"
+}; # if
diff --git a/test/lib/completions/bc.exp b/test/lib/completions/tac.exp
similarity index 83%
copy from test/lib/completions/bc.exp
copy to test/lib/completions/tac.exp
index c437d03..2123005 100644
--- a/test/lib/completions/bc.exp
+++ b/test/lib/completions/tac.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "bc --"
+assert_complete_any "tac --"
 
 
 sync_after_int
diff --git a/test/lib/completions/bash.exp b/test/lib/completions/tail.exp
similarity index 82%
copy from test/lib/completions/bash.exp
copy to test/lib/completions/tail.exp
index 4caf58f..fb8d89e 100644
--- a/test/lib/completions/bash.exp
+++ b/test/lib/completions/tail.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "bash --"
+assert_complete_any "tail --"
 
 
 sync_after_int
diff --git a/test/lib/completions/cat.exp b/test/lib/completions/tar.exp
similarity index 84%
copy from test/lib/completions/cat.exp
copy to test/lib/completions/tar.exp
index 46e8775..43c60ff 100644
--- a/test/lib/completions/cat.exp
+++ b/test/lib/completions/tar.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "cat "
+assert_complete_any "tar "
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/tcpkill.exp
similarity index 81%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/tcpkill.exp
index 26065d2..e8cc9c1 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/tcpkill.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "tcpkill -"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/tcpnice.exp
similarity index 81%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/tcpnice.exp
index 26065d2..44bb59c 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/tcpnice.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "tcpnice -"
 
 
 sync_after_int
diff --git a/test/lib/completions/cat.exp b/test/lib/completions/tee.exp
similarity index 84%
copy from test/lib/completions/cat.exp
copy to test/lib/completions/tee.exp
index 46e8775..c25057b 100644
--- a/test/lib/completions/cat.exp
+++ b/test/lib/completions/tee.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "cat "
+assert_complete_any "tee "
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/texindex.exp
similarity index 80%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/texindex.exp
index 26065d2..d5b8cd7 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/texindex.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "texindex --"
 
 
 sync_after_int
diff --git a/test/lib/completions/tightvncviewer.exp b/test/lib/completions/tightvncviewer.exp
index 879e5d9..6eba24c 100644
--- a/test/lib/completions/tightvncviewer.exp
+++ b/test/lib/completions/tightvncviewer.exp
@@ -11,15 +11,7 @@ proc teardown {} {
 setup
 
 
-set test "Tab should show completions"
-    # Try completion
-set cmd "tightvncviewer "
-send "$cmd\t"
-expect {
-    -re "$cmd\r\n.*$cmd$" { pass "$test" }
-    -re /@ { unresolved "$test at prompt" }
-    -re eof { unresolved "eof" }
-}; # expect
+assert_complete_any "tightvncviewer "
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/time.exp
similarity index 82%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/time.exp
index 26065d2..b114318 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/time.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "time set"
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/touch.exp
similarity index 82%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/touch.exp
index 26065d2..d8b07ce 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/touch.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "touch --"
 
 
 sync_after_int
diff --git a/test/lib/completions/bc.exp b/test/lib/completions/tr.exp
similarity index 83%
copy from test/lib/completions/bc.exp
copy to test/lib/completions/tr.exp
index c437d03..87e93fa 100644
--- a/test/lib/completions/bc.exp
+++ b/test/lib/completions/tr.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "bc --"
+assert_complete_any "tr --"
 
 
 sync_after_int
diff --git a/test/lib/completions_to_review/tac.exp b/test/lib/completions_to_review/tac.exp
deleted file mode 100644
index 669e6fc..0000000
--- a/test/lib/completions_to_review/tac.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "tac --"
-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/tail.exp b/test/lib/completions_to_review/tail.exp
deleted file mode 100644
index cc291b0..0000000
--- a/test/lib/completions_to_review/tail.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "tail "
-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/tar.exp b/test/lib/completions_to_review/tar.exp
deleted file mode 100644
index 717d725..0000000
--- a/test/lib/completions_to_review/tar.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "tar "
-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/tcpkill.exp b/test/lib/completions_to_review/tcpkill.exp
deleted file mode 100644
index 76789b9..0000000
--- a/test/lib/completions_to_review/tcpkill.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "tcpkill -"
-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/tcpnice.exp b/test/lib/completions_to_review/tcpnice.exp
deleted file mode 100644
index 4f0e0b4..0000000
--- a/test/lib/completions_to_review/tcpnice.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "tcpnice -"
-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/tee.exp b/test/lib/completions_to_review/tee.exp
deleted file mode 100644
index 675a67d..0000000
--- a/test/lib/completions_to_review/tee.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "tee "
-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/texindex.exp b/test/lib/completions_to_review/texindex.exp
deleted file mode 100644
index 2bf33f0..0000000
--- a/test/lib/completions_to_review/texindex.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "texindex "
-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/time.exp b/test/lib/completions_to_review/time.exp
deleted file mode 100644
index 2f6c26c..0000000
--- a/test/lib/completions_to_review/time.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "time set"
-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/touch.exp b/test/lib/completions_to_review/touch.exp
deleted file mode 100644
index abf1893..0000000
--- a/test/lib/completions_to_review/touch.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "touch "
-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/tr.exp b/test/lib/completions_to_review/tr.exp
deleted file mode 100644
index 2d12c79..0000000
--- a/test/lib/completions_to_review/tr.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "tr "
-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