diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-10-25 16:59:20 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 09:26:35 +0200 |
commit | bdc679a76d714c4475e9d67e19910008e6f1aca7 (patch) | |
tree | 6219205f428d6934df88805ae8299cb577f471ab /tests/test/script | |
parent | b61e9e2ba8e625a598427cc2990806b69d104a18 (diff) |
Add few testscript integration tests
Diffstat (limited to 'tests/test/script')
-rw-r--r-- | tests/test/script/integration/testscript | 36 |
1 files changed, 34 insertions, 2 deletions
diff --git a/tests/test/script/integration/testscript b/tests/test/script/integration/testscript index 4c8c380..e98a25c 100644 --- a/tests/test/script/integration/testscript +++ b/tests/test/script/integration/testscript @@ -14,14 +14,46 @@ test.arguments = test #EOI +cp $src_base/bootstrap.build build/ -touch testscript foo.test; +# @@ TODO: redo as scope. +# +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 -rm -f testscript foo.test +$* <<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 +test dir{./} with test{foo} +test dir{./} with test{bar} +EOE +rm -f testscript foo.test bar.test + +# work-dir-not-empty-begin +# +touch foo.test; +mkdir test; +touch test/dummy; +$* <<EOI 2>>EOE != 0; +./: test{foo} +EOI +error: working directory test/ is not empty at the beginning of the test +info: while testing dir{./} +EOE +rm -f test/dummy foo.test; +rmdir test + +# work-dir-not-empty-end +# +# @@ No (easy) way to test this. -rm -f build/bootstrap.build -rmdir build/ |