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

Freddy Vulto fvulto at gmail.com
Fri Feb 5 14:17:08 UTC 2010


The following commit has been merged in the master branch:
commit dc4d28bc112e379e65c2e1c6ca953dd3d09930e0
Author: Freddy Vulto <fvulto at gmail.com>
Date:   Fri Feb 5 15:16:19 2010 +0100

    (testsuite) mv fixture1 fixtures/shared/default

diff --git a/test/Makefile.am b/test/Makefile.am
index e05abf5..d955be8 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -3,7 +3,6 @@ AM_RUNTESTFLAGS = --outdir log
 
 EXTRA_DIST = completion \
 	     config \
-	     fixture1 \
 	     fixtures \
 	     lib \
 	     unit
diff --git a/test/fixture1/bar b/test/fixtures/shared/default/bar
similarity index 100%
rename from test/fixture1/bar
rename to test/fixtures/shared/default/bar
diff --git a/test/fixture1/bar bar.d/foo b/test/fixtures/shared/default/bar bar.d/foo
similarity index 100%
rename from test/fixture1/bar bar.d/foo
rename to test/fixtures/shared/default/bar bar.d/foo
diff --git a/test/fixture1/foo b/test/fixtures/shared/default/foo
similarity index 100%
rename from test/fixture1/foo
rename to test/fixtures/shared/default/foo
diff --git a/test/fixture1/foo.d/foo b/test/fixtures/shared/default/foo.d/foo
similarity index 100%
rename from test/fixture1/foo.d/foo
rename to test/fixtures/shared/default/foo.d/foo
diff --git a/test/lib/completions/acroread.exp b/test/lib/completions/acroread.exp
index d21d0f5..4f11f90 100644
--- a/test/lib/completions/acroread.exp
+++ b/test/lib/completions/acroread.exp
@@ -1,11 +1,11 @@
 proc setup {} {
     save_env
-    assert_bash_exec "touch fixture1/t.pdf";  # Create temporary files
+    assert_bash_exec "touch fixtures/shared/default/t.pdf";  # Create temporary files
 }; # setup()
 
 
 proc teardown {} {
-    assert_bash_exec "rm fixture1/t.pdf";  # Remove temporary files
+    assert_bash_exec "rm fixtures/shared/default/t.pdf";  # Remove temporary files
     assert_env_unmodified
 }; # teardown()
 
@@ -13,7 +13,7 @@ proc teardown {} {
 setup
 
 
-assert_complete {"bar bar.d/" foo.d/ t.pdf} "acroread fixture1/"
+assert_complete {"bar bar.d/" foo.d/ t.pdf} "acroread fixtures/shared/default/"
 
 
 sync_after_int
diff --git a/test/lib/completions/cancel.exp b/test/lib/completions/cancel.exp
index ac41c28..764497c 100644
--- a/test/lib/completions/cancel.exp
+++ b/test/lib/completions/cancel.exp
@@ -12,7 +12,7 @@ setup
 
 
     # Adding a print job is successful?
-if {[assert_exec {lp -H hold fixture1/foo} job]} {
+if {[assert_exec {lp -H hold fixtures/shared/default/foo} job]} {
     # Yes, adding a print-job is successful;
         # Retrieve job-id, so we can cancel the job after the test
     set job_id [lindex [split $job] 3]
diff --git a/test/lib/completions/cd.exp b/test/lib/completions/cd.exp
index d4c06d9..5823357 100644
--- a/test/lib/completions/cd.exp
+++ b/test/lib/completions/cd.exp
@@ -12,7 +12,7 @@ setup
 
 
 set test "Tab should complete"
-assert_complete {"bar bar.d/" foo.d/} "cd fixture1/" $test
+assert_complete {"bar bar.d/" foo.d/} "cd fixtures/shared/default/" $test
 
 
 sync_after_int
@@ -20,13 +20,13 @@ sync_after_int
 
 set test "Tab should complete cd at cursor position"
     # Try completion
-set cmd "cd fixture1/foo"
+set cmd "cd fixtures/shared/default/foo"
 append cmd \002\002\002; # \002 = ^B = Move cursor left in bash emacs mode
 #append cmd \033\0133D; # Escape-[-D = Cursor left
 send "$cmd\t"
 expect {
-    -re "cd fixture1/foo\b\b\b\r\n(\.svn/ +|)bar bar.d/ +foo.d/ *(\.svn/ *|)\r\n/@cd fixture1/foo\b\b\b$" { pass "$test" }
-	-re "^cd fixture1/foo\b\b\bfoo.d/foo\b\b\b$" { fail "$test: Wrong cursor position" }
+    -re "cd fixtures/shared/default/foo\b\b\b\r\n(\.svn/ +|)bar bar.d/ +foo.d/ *(\.svn/ *|)\r\n/@cd fixtures/shared/default/foo\b\b\b$" { pass "$test" }
+	-re "^cd fixtures/shared/default/foo\b\b\bfoo.d/foo\b\b\b$" { fail "$test: Wrong cursor position" }
     -re /@ { unresolved "$test at prompt" }
     default { unresolved "$test" }
 }; # expect
@@ -38,7 +38,7 @@ sync_after_int
 set test "Tab should complete CDPATH"
     # Set CDPATH
 assert_bash_exec "CDPATH=\$PWD";
-assert_complete "fixture1/foo.d/" "cd fixture1/fo" $test
+assert_complete "fixtures/shared/default/foo.d/" "cd fixtures/shared/default/fo" $test
 sync_after_int
     # Reset CDPATH
 assert_bash_exec "unset CDPATH"
diff --git a/test/lib/completions/find.exp b/test/lib/completions/find.exp
index 0fb5c62..8009fdd 100644
--- a/test/lib/completions/find.exp
+++ b/test/lib/completions/find.exp
@@ -29,7 +29,7 @@ sync_after_int
 
 
 set test "-wholename should complete files/dirs"
-set dir fixture1
+set dir fixtures/shared/default
 set files [split [exec bash -c "cd $dir && ls -p"] "\n"]
 assert_complete_dir $files "find -wholename " $dir
 
diff --git a/test/lib/completions/perl.exp b/test/lib/completions/perl.exp
index 4b46338..2199c99 100644
--- a/test/lib/completions/perl.exp
+++ b/test/lib/completions/perl.exp
@@ -18,7 +18,7 @@ sync_after_int
 
 
 set test "Second argument should file complete"
-set cmd "perl foo fixture1/f"
+set cmd "perl foo fixtures/shared/default/f"
 send "$cmd\t"
 expect {
     -re "^$cmd\r\nfoo +foo.d/ *\r\n/@${cmd}oo$" { pass "$test" }
@@ -31,7 +31,7 @@ sync_after_int
 
 
 set test "-I without space should complete directories"
-set cmd "perl -Ifixture1/"
+set cmd "perl -Ifixtures/shared/default/"
 send "$cmd\t"
 expect {
     -re "^$cmd\r\nbar bar.d/ +foo.d/ *\r\n/@$cmd$" { pass "$test" }
@@ -44,7 +44,7 @@ sync_after_int
 
 
 set test "-I with space should complete directories"
-set cmd "perl -I fixture1/"
+set cmd "perl -I fixtures/shared/default/"
 send "$cmd\t"
 expect {
     -re "^$cmd\r\nbar bar.d/ +foo.d/ *\r\n/@$cmd$" { pass "$test" }
@@ -57,7 +57,7 @@ sync_after_int
 
 
 set test "-x without space should complete directories"
-set cmd "perl -xfixture1/b"
+set cmd "perl -xfixtures/shared/default/b"
 send "$cmd\t"
 expect {
     -re "^${cmd}ar\\\\ bar.d/ *$" { pass "$test" }
@@ -70,7 +70,7 @@ sync_after_int
 
 
 set test "-x with space should complete directories"
-set cmd "perl -x fixture1/b"
+set cmd "perl -x fixtures/shared/default/b"
 send "$cmd\t"
 expect {
     -re "^${cmd}ar\\\\ bar.d/ *$" { pass "$test" }
diff --git a/test/lib/completions/sbcl-mt.exp b/test/lib/completions/sbcl-mt.exp
index 1188f19..45e81f7 100644
--- a/test/lib/completions/sbcl-mt.exp
+++ b/test/lib/completions/sbcl-mt.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete {bar "bar bar.d/" foo foo.d/} "sbcl-mt fixture1/"
+assert_complete {bar "bar bar.d/" foo foo.d/} "sbcl-mt fixtures/shared/default/"
 
 
 sync_after_int
diff --git a/test/lib/completions/sbcl.exp b/test/lib/completions/sbcl.exp
index d5f2c8c..b68b2dc 100644
--- a/test/lib/completions/sbcl.exp
+++ b/test/lib/completions/sbcl.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete {bar "bar bar.d/" foo foo.d/} "sbcl fixture1/"
+assert_complete {bar "bar bar.d/" foo foo.d/} "sbcl fixtures/shared/default/"
 
 
 sync_after_int
diff --git a/test/lib/completions/screen.exp b/test/lib/completions/screen.exp
index 4bd5ad0..53e94b1 100644
--- a/test/lib/completions/screen.exp
+++ b/test/lib/completions/screen.exp
@@ -18,7 +18,7 @@ sync_after_int
 
 
 set test "-c should complete files/dirs"
-set dir fixture1
+set dir fixtures/shared/default
 set prompt "/$dir/@"
 assert_bash_exec "cd $dir" "" $prompt
 set cmd "screen -c "
diff --git a/test/lib/completions/sudo.exp b/test/lib/completions/sudo.exp
index 3dc98da..1299a6d 100644
--- a/test/lib/completions/sudo.exp
+++ b/test/lib/completions/sudo.exp
@@ -11,7 +11,7 @@ proc teardown {} {
 setup
 
 
-assert_complete "fixture1/foo.d/" "sudo cd fixture1/fo"
+assert_complete "fixtures/shared/default/foo.d/" "sudo cd fixtures/shared/default/fo"
 
 
 sync_after_int

-- 
bash-completion



More information about the Bash-completion-commits mailing list