aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-12-01 17:08:31 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-12-01 17:08:31 +0200
commitef7cb7ea3e6fcb21a4fcf38602b3f43f03232ace (patch)
tree7a37583dbe227019e62571d57c92613de3dd4b13 /tests
parent5e71edfa033f163ded9a82f7d66412d8ee05bc48 (diff)
Implement testscript variable-if
Now a variable-only if is treated the same as a single variable when deciding whether it is part of a test or setup/teardown.
Diffstat (limited to 'tests')
-rw-r--r--tests/common.test2
-rw-r--r--tests/function/path/testscript2
-rw-r--r--tests/test/common.test2
-rw-r--r--tests/test/script/runner/status.test2
4 files changed, 4 insertions, 4 deletions
diff --git a/tests/common.test b/tests/common.test
index 4d4520f..a35d0f8 100644
--- a/tests/common.test
+++ b/tests/common.test
@@ -16,6 +16,6 @@ test.options += -q --buildfile -
# By default just load the buildfile.
#
-+if ($empty($test.arguments))
+if ($empty($test.arguments))
test.arguments = noop
end
diff --git a/tests/function/path/testscript b/tests/function/path/testscript
index e1f0a36..066a6c8 100644
--- a/tests/function/path/testscript
+++ b/tests/function/path/testscript
@@ -4,7 +4,7 @@
.include ../../common.test
-+if ($cxx.target.class != windows) # @@ TMP ternarry
+if ($cxx.target.class != windows) # @@ TMP ternarry
s = '/'
else
s = '\'
diff --git a/tests/test/common.test b/tests/test/common.test
index 9477359..386b16c 100644
--- a/tests/test/common.test
+++ b/tests/test/common.test
@@ -19,6 +19,6 @@ test.options += -q --buildfile -
# By default perform test.
#
-+if ($empty($test.arguments))
+if ($empty($test.arguments))
test.arguments = test
end
diff --git a/tests/test/script/runner/status.test b/tests/test/script/runner/status.test
index cf4ce1d..f743518 100644
--- a/tests/test/script/runner/status.test
+++ b/tests/test/script/runner/status.test
@@ -6,7 +6,7 @@
b += --no-column
-+if ($cxx.target.class == "windows")
+if ($cxx.target.class == "windows")
ext = ".exe"
end