diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-10-26 13:38:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:35 +0200 |
commit | 616690fd06d1c5d05de97b88119dd8d328522df0 (patch) | |
tree | a7e212f33d30efb598464571b23531621064e5c9 /tests/test/script/integration/testscript | |
parent | 8fabd86e687ef9455f1b31abbe0b44876afdecab (diff) |
Implement support for testscript scopes
Diffstat (limited to 'tests/test/script/integration/testscript')
-rw-r--r-- | tests/test/script/integration/testscript | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/tests/test/script/integration/testscript b/tests/test/script/integration/testscript index e98a25c..a9c29a7 100644 --- a/tests/test/script/integration/testscript +++ b/tests/test/script/integration/testscript @@ -14,28 +14,32 @@ test.arguments = test #EOI +cp $src_base/bootstrap.build build/ -# @@ TODO: redo as scope. -# -touch testscript foo.test bar.test; -$* <<EOI 2>>EOE != 0; -./: test{testscript foo} +{ + +touch testscript foo.test bar.test + + $* <<EOI 2>>EOE != 0 +./: test{../testscript ../foo} EOI error: both 'testscript' and other names specified for dir{./} info: while testing dir{./} EOE -$* <<EOI 2>>EOE != 0; -./: test{foo testscript} + + $* <<EOI 2>>EOE != 0 +./: test{../foo ../testscript} EOI error: both 'testscript' and other names specified for dir{./} info: while testing dir{./} EOE -$* <<EOI 2>>EOE; -./: test{foo bar} + + $* <<EOI 2>>EOE +./: test{../foo ../bar} EOI -test dir{./} with test{foo} -test dir{./} with test{bar} +test dir{./} with ../test{foo} +test dir{./} with ../test{bar} EOE -rm -f testscript foo.test bar.test + + -rm -f testscript foo.test bar.test +} # work-dir-not-empty-begin # |