diff options
author | Freddy Vulto <fvulto@gmail.com> | 2010-02-05 15:16:19 +0100 |
---|---|---|
committer | Freddy Vulto <fvulto@gmail.com> | 2010-02-05 15:16:19 +0100 |
commit | dc4d28bc112e379e65c2e1c6ca953dd3d09930e0 (patch) | |
tree | 2c231cac6f751089e0129153e00e035c9a273bfc | |
parent | c70c1ecb3178492757cfde95f931b7c434db3174 (diff) | |
download | bash-completion-dc4d28bc112e379e65c2e1c6ca953dd3d09930e0.tar.gz |
(testsuite) mv fixture1 fixtures/shared/default
-rw-r--r-- | test/Makefile.am | 1 | ||||
-rw-r--r-- | test/fixtures/shared/default/bar (renamed from test/fixture1/bar) | 0 | ||||
-rw-r--r-- | test/fixtures/shared/default/bar bar.d/foo (renamed from test/fixture1/bar bar.d/foo) | 0 | ||||
-rw-r--r-- | test/fixtures/shared/default/foo (renamed from test/fixture1/foo) | 0 | ||||
-rw-r--r-- | test/fixtures/shared/default/foo.d/foo (renamed from test/fixture1/foo.d/foo) | 0 | ||||
-rw-r--r-- | test/lib/completions/acroread.exp | 6 | ||||
-rw-r--r-- | test/lib/completions/cancel.exp | 2 | ||||
-rw-r--r-- | test/lib/completions/cd.exp | 10 | ||||
-rw-r--r-- | test/lib/completions/find.exp | 2 | ||||
-rw-r--r-- | test/lib/completions/perl.exp | 10 | ||||
-rw-r--r-- | test/lib/completions/sbcl-mt.exp | 2 | ||||
-rw-r--r-- | test/lib/completions/sbcl.exp | 2 | ||||
-rw-r--r-- | test/lib/completions/screen.exp | 2 | ||||
-rw-r--r-- | test/lib/completions/sudo.exp | 2 |
14 files changed, 19 insertions, 20 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index e05abf5f..d955be8a 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 index e69de29b..e69de29b 100644 --- a/test/fixture1/bar +++ b/test/fixtures/shared/default/bar diff --git a/test/fixture1/bar bar.d/foo b/test/fixtures/shared/default/bar bar.d/foo index e69de29b..e69de29b 100644 --- a/test/fixture1/bar bar.d/foo +++ b/test/fixtures/shared/default/bar bar.d/foo diff --git a/test/fixture1/foo b/test/fixtures/shared/default/foo index 257cc564..257cc564 100644 --- a/test/fixture1/foo +++ b/test/fixtures/shared/default/foo diff --git a/test/fixture1/foo.d/foo b/test/fixtures/shared/default/foo.d/foo index e69de29b..e69de29b 100644 --- a/test/fixture1/foo.d/foo +++ b/test/fixtures/shared/default/foo.d/foo diff --git a/test/lib/completions/acroread.exp b/test/lib/completions/acroread.exp index d21d0f55..4f11f905 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 ac41c282..764497c3 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 d4c06d9d..58233575 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 0fb5c62c..8009fddc 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 4b463383..2199c994 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 1188f197..45e81f79 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 d5f2c8c2..b68b2dce 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 4bd5ad0a..53e94b18 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 3dc98da3..1299a6da 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 |