From bdc679a76d714c4475e9d67e19910008e6f1aca7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 25 Oct 2016 16:59:20 +0200 Subject: Add few testscript integration tests --- tests/test/script/integration/testscript | 36 ++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) (limited to 'tests/test/script/integration/testscript') 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; $* <>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 +$* <>EOE != 0; +./: test{foo testscript} +EOI +error: both 'testscript' and other names specified for dir{./} +info: while testing dir{./} +EOE +$* <>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; +$* <>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/ -- cgit v1.1