aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script/runner/cleanup.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test/script/runner/cleanup.test')
-rw-r--r--tests/test/script/runner/cleanup.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test/script/runner/cleanup.test b/tests/test/script/runner/cleanup.test
index 76cff63..9a660d5 100644
--- a/tests/test/script/runner/cleanup.test
+++ b/tests/test/script/runner/cleanup.test
@@ -2,9 +2,29 @@
# copyright : Copyright (c) 2014-2016 Code Synthesis Ltd
# license : MIT; see accompanying LICENSE file
++mkdir build &build/ # @@ Should not be necessary once builtin.
++cat <<EOI >>>build/boostrap.build
+project = test
+amalgamation =
+
+using test
+EOI
+
+b = $build.driver -q --no-column --buildfile - <"./: test{testscript}" \
+ &test/ test
+c = cat >>>testscript
+
$* -f a &a # file
$* -d a &a/ # dir1
$* -d a/b &a/ &a/b/ # dir2
$* -d a/b -f a/b/c &a/ &a/b/ &a/b/c # file-dir
$* -f a &a &a # file-dup
$* -d a/b &a/ &a/b/ &a/b/../b/ # dir-dup
+
+# <test-id>
+#
+# @@ TODO: $c <"$* &a/" && $b 2>>EOE
+$c <"$* &a/";
+$b 2>>EOE != 0
+testscript:1: error: registered for cleanup directory test/1/a/ does not exist
+EOE