aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test/script')
-rw-r--r--tests/test/script/integration/testscript36
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/