From 278140ebf2bc97eb72a1e8adb04a40a0a5807d8f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 4 Nov 2016 10:51:57 +0300 Subject: Add mkdir and touch builtins --- tests/test/script/integration/testscript | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'tests/test/script/integration') diff --git a/tests/test/script/integration/testscript b/tests/test/script/integration/testscript index f9e89e2..8663e6f 100644 --- a/tests/test/script/integration/testscript +++ b/tests/test/script/integration/testscript @@ -2,7 +2,7 @@ # copyright : Copyright (c) 2014-2016 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file -+mkdir build &build/ # @@ TMP ++mkdir build +cat <>>build/boostrap.build project = test amalgamation = @@ -39,14 +39,12 @@ test.arguments = test $* <>EOE != 0 ./: test{foo} EOI @@ -55,7 +53,7 @@ EOE : wd-exists-before : -touch foo.test &foo.test; #@@ TMP +touch foo.test; mkdir test &!test/; $* <>EOE ./: test{foo} @@ -65,7 +63,7 @@ EOE : wd-not-empty-before : -touch foo.test &foo.test; #@@ TMP +touch foo.test; mkdir test &!test/; touch test/dummy &!test/dummy; $* <>EOE @@ -78,11 +76,13 @@ EOE : wd-not-empty-after : : The idea here is to run a nested testscript that creates (but does not -: clean up) a file in our working directory. Note that we still have to -: remove everything after detecting the failure. +: clean up) a file in our working directory. Note that an implicit cleanup +: cancelation is not required as the file is out of the test root directory +: scope. Also note that we still have to remove everything after detecting the +: failure. : cat <>>foo.test; -touch ../../dummy &!../../dummy +touch ../../dummy EOI $* <>EOE &test/*** != 0 ./: test{foo} -- cgit v1.1