diff options
-rw-r--r-- | rules/CC/test/RULES | 8 |
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" |