summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-03-14 11:29:28 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2022-03-14 14:47:41 +0100
commit7376d096a94a17c3678a3ca48fe63f68cc66ba8f (patch)
tree5fd4dd3c169b153a33a940dd8d3572acce53f8ec
parent10217a10a39f8a11aa97a47cc735943442a5aeeb (diff)
downloadjustbuild-7376d096a94a17c3678a3ca48fe63f68cc66ba8f.tar.gz
rule CC/test: Introduce TEST_ENV for test runners
-rw-r--r--rules/CC/test/RULES8
1 files changed, 7 insertions, 1 deletions
diff --git a/rules/CC/test/RULES b/rules/CC/test/RULES
index fa6fdbc0..fc3ab972 100644
--- a/rules/CC/test/RULES
+++ b/rules/CC/test/RULES
@@ -7,7 +7,7 @@
, "target_fields": ["srcs", "private-hdrs", "deps", "data"]
, "string_fields": ["name", "stage"]
, "config_vars":
- ["CXX", "CC", "CXXFLAGS", "CFLAGS", "ENV", "CC_TEST_LAUNCHER"]
+ ["CXX", "CC", "CXXFLAGS", "CFLAGS", "ENV", "TEST_ENV", "CC_TEST_LAUNCHER"]
, "implicit":
{ "defaults": [["./", "..", "defaults"]]
, "proto-deps": []
@@ -37,6 +37,7 @@
[ "The flags for CXX to be used instead of the default ones"
, "taken from the [\"CC\", \"defaults\"] target"
]
+ , "TEST_ENV": ["The environment for executing the test runner."]
, "CC_TEST_LAUNCHER":
[ "List of strings representing the launcher that is prepend to the"
, "command line for running the test binary."
@@ -250,6 +251,11 @@
, {"type": "var", "name": "CC_TEST_LAUNCHER", "default": []}
]
}
+ , "env":
+ { "type": "var"
+ , "name": "TEST_ENV"
+ , "default": {"type": "empty_map"}
+ }
, "may_fail": ["test"]
, "fail_message":
{ "type": "join"