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
commitf247b8a6fac185e47839074702f87685544c8d90 (patch)
tree81a02c8ff599a96a7ef20e63fe4d0bf5f8d7fc4f
parentadfcea9d9a67dca8627e9c5da9e81b03c1c83857 (diff)
downloadrules-cc-f247b8a6fac185e47839074702f87685544c8d90.tar.gz
rule CC/test: Introduce TEST_ENV for test runners
-rw-r--r--CC/test/RULES8
1 files changed, 7 insertions, 1 deletions
diff --git a/CC/test/RULES b/CC/test/RULES
index fa6fdbc..fc3ab97 100644
--- a/CC/test/RULES
+++ b/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"