aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script/common.test
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-01-20 20:25:59 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-01-24 14:53:00 +0300
commit28106f96de8ae5cdb3a0ee0e3a8a8185551e3b00 (patch)
tree8b912a7c9a2bd2ba1263695428d8343d022953a5 /tests/test/script/common.test
parenteeed734583c2f553e71ae0bd78a4b6e7e4d9cc2b (diff)
Add support for comparison of test command output to a file
Diffstat (limited to 'tests/test/script/common.test')
-rw-r--r--tests/test/script/common.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test/script/common.test b/tests/test/script/common.test
index 177fa75..781be30 100644
--- a/tests/test/script/common.test
+++ b/tests/test/script/common.test
@@ -7,7 +7,7 @@
#
+mkdir build
-+cat <<"EOI" >>>build/bootstrap.build
++cat <<"EOI" >=build/bootstrap.build
project = test
amalgamation =
@@ -18,7 +18,7 @@ EOI
# levels up from our working directory.
#
+if! $empty($target)
- cat <<"EOI" >>>build/root.build
+ cat <<"EOI" >=build/root.build
target = \$src_root/../../$string([name] $target)
test{*}: test = \$target
EOI
@@ -31,6 +31,6 @@ end
# Note that the buildfile is clever hack that relies on the first target
# automatically becoming dir{./}'s prerequisite.
#
-c = cat >>>testscript
+c = cat >=testscript
b = $0 --jobs 1 --quiet --buildfile - test <"'test{testscript}: \$target'" \
&?test/***