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

Freddy Vulto fvulto at gmail.com
Fri Jul 24 09:58:53 UTC 2009


The following commit has been merged in the master branch:
commit 890cadbc3ab435109bb7fb2cb1c0adbd20da1482
Author: Freddy Vulto <fvulto at gmail.com>
Date:   Fri Jul 24 11:16:03 2009 +0200

    Reviewed tests n*

diff --git a/test/_completion_to_review/ncftp.exp b/test/_completion_to_review/ncftp.exp
deleted file mode 100644
index 12c5e7d..0000000
--- a/test/_completion_to_review/ncftp.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/ncftp.exp"
diff --git a/test/_completion_to_review/netstat.exp b/test/_completion_to_review/netstat.exp
deleted file mode 100644
index e9893b0..0000000
--- a/test/_completion_to_review/netstat.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/netstat.exp"
diff --git a/test/_completion_to_review/newlist.exp b/test/_completion_to_review/newlist.exp
deleted file mode 100644
index 80bee0c..0000000
--- a/test/_completion_to_review/newlist.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/newlist.exp"
diff --git a/test/_completion_to_review/nl.exp b/test/_completion_to_review/nl.exp
deleted file mode 100644
index 3d4eea2..0000000
--- a/test/_completion_to_review/nl.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/nl.exp"
diff --git a/test/_completion_to_review/nm.exp b/test/_completion_to_review/nm.exp
deleted file mode 100644
index 1238ac0..0000000
--- a/test/_completion_to_review/nm.exp
+++ /dev/null
@@ -1 +0,0 @@
-source "lib/completions/nm.exp"
diff --git a/test/completion/ncftp.exp b/test/completion/ncftp.exp
new file mode 100644
index 0000000..3e3fe2d
--- /dev/null
+++ b/test/completion/ncftp.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type ncftp]} {
+    source "lib/completions/ncftp.exp"
+}; # if
diff --git a/test/completion/netstat.exp b/test/completion/netstat.exp
new file mode 100644
index 0000000..a3084f1
--- /dev/null
+++ b/test/completion/netstat.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type netstat]} {
+    source "lib/completions/netstat.exp"
+}; # if
diff --git a/test/completion/newlist.exp b/test/completion/newlist.exp
new file mode 100644
index 0000000..dcc9d09
--- /dev/null
+++ b/test/completion/newlist.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type newlist]} {
+    source "lib/completions/newlist.exp"
+}; # if
diff --git a/test/completion/nl.exp b/test/completion/nl.exp
new file mode 100644
index 0000000..a64021b
--- /dev/null
+++ b/test/completion/nl.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type nl]} {
+    source "lib/completions/nl.exp"
+}; # if
diff --git a/test/completion/nm.exp b/test/completion/nm.exp
new file mode 100644
index 0000000..48e8430
--- /dev/null
+++ b/test/completion/nm.exp
@@ -0,0 +1,3 @@
+if {[assert_bash_type nm]} {
+    source "lib/completions/nm.exp"
+}; # if
diff --git a/test/_completion_to_review/ntpdate.exp b/test/completion/ntpdate.exp
similarity index 100%
rename from test/_completion_to_review/ntpdate.exp
rename to test/completion/ntpdate.exp
diff --git a/test/lib/completions/bc.exp b/test/lib/completions/ncftp.exp
similarity index 83%
copy from test/lib/completions/bc.exp
copy to test/lib/completions/ncftp.exp
index c437d03..ad71f22 100644
--- a/test/lib/completions/bc.exp
+++ b/test/lib/completions/ncftp.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "bc --"
+assert_complete_any "ncftp "
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/netstat.exp
similarity index 82%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/netstat.exp
index 26065d2..0e6414d 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/netstat.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "netstat "
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/newlist.exp
similarity index 82%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/newlist.exp
index 26065d2..bebf600 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/newlist.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "newlist "
 
 
 sync_after_int
diff --git a/test/lib/completions/ci.exp b/test/lib/completions/nl.exp
similarity index 84%
copy from test/lib/completions/ci.exp
copy to test/lib/completions/nl.exp
index 09105ee..02076df 100644
--- a/test/lib/completions/ci.exp
+++ b/test/lib/completions/nl.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "ci "
+assert_complete_any "nl "
 
 
 sync_after_int
diff --git a/test/lib/completions/ci.exp b/test/lib/completions/nm.exp
similarity index 84%
copy from test/lib/completions/ci.exp
copy to test/lib/completions/nm.exp
index 09105ee..551f49e 100644
--- a/test/lib/completions/ci.exp
+++ b/test/lib/completions/nm.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "ci "
+assert_complete_any "nm "
 
 
 sync_after_int
diff --git a/test/lib/completions/animate.exp b/test/lib/completions/ntpdate.exp
similarity index 81%
copy from test/lib/completions/animate.exp
copy to test/lib/completions/ntpdate.exp
index 26065d2..6a6456f 100644
--- a/test/lib/completions/animate.exp
+++ b/test/lib/completions/ntpdate.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete_any "animate "
+assert_complete_any "ntpdate -"
 
 
 sync_after_int
diff --git a/test/lib/completions_to_review/ncftp.exp b/test/lib/completions_to_review/ncftp.exp
deleted file mode 100644
index 553b9ca..0000000
--- a/test/lib/completions_to_review/ncftp.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "ncftp "
-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/netstat.exp b/test/lib/completions_to_review/netstat.exp
deleted file mode 100644
index 7c34419..0000000
--- a/test/lib/completions_to_review/netstat.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "netstat "
-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/newlist.exp b/test/lib/completions_to_review/newlist.exp
deleted file mode 100644
index 93273c7..0000000
--- a/test/lib/completions_to_review/newlist.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "newlist -"
-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/nl.exp b/test/lib/completions_to_review/nl.exp
deleted file mode 100644
index 7c0071d..0000000
--- a/test/lib/completions_to_review/nl.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "nl "
-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/nm.exp b/test/lib/completions_to_review/nm.exp
deleted file mode 100644
index 9e61b41..0000000
--- a/test/lib/completions_to_review/nm.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "nm "
-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/ntpdate.exp b/test/lib/completions_to_review/ntpdate.exp
deleted file mode 100644
index 2c96808..0000000
--- a/test/lib/completions_to_review/ntpdate.exp
+++ /dev/null
@@ -1,26 +0,0 @@
-proc setup {} {
-}; # setup()
-
-
-proc teardown {} {
-}; # teardown()
-
-
-setup
-
-
-set test "Tab should complete"
-    # Try completion
-set cmd "ntpdate -"
-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