summaryrefslogtreecommitdiff
path: root/CC/test/RULES
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2024-08-20 17:04:17 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2024-08-20 17:04:17 +0200
commit591339c7e794162250b01aec5a8b43049b49079b (patch)
tree3b7dc4f2a07a2ddb0f50f8b1c531fc7c88e332b3 /CC/test/RULES
parent5dd29fdb85b881ce4a67f1bc42b9c82ef653c829 (diff)
parent22534d3549a0584c889085594d7ab14cf6e8d44c (diff)
downloadrules-cc-591339c7e794162250b01aec5a8b43049b49079b.tar.gz
Merge branch 'just-rules' into rules
Diffstat (limited to 'CC/test/RULES')
-rw-r--r--CC/test/RULES20
1 files changed, 17 insertions, 3 deletions
diff --git a/CC/test/RULES b/CC/test/RULES
index 244bca0..3401974 100644
--- a/CC/test/RULES
+++ b/CC/test/RULES
@@ -31,6 +31,7 @@
, "RUNS_PER_TEST"
, "ARCH_DISPATCH"
, "TEST_SUMMARY_EXECUTION_PROPERTIES"
+ , "LINT"
]
, "implicit":
{ "defaults": [["./", "..", "defaults"]]
@@ -151,6 +152,11 @@
[ "Additional remote-execution properties for the test-summarizing action"
, "in case RUNS_PER_TEST is set; defaults to the empty map."
]
+ , "LINT":
+ [ "Also provide nodes describing compile actions and header files;"
+ , "those can be used by lint rules (doing also the config transition)"
+ , "for additional checks."
+ ]
}
, "artifacts_doc":
[ "result: the result of this test (\"PASS\" or \"FAIL\"); useful for"
@@ -178,6 +184,8 @@
, "config_transitions":
{ "defaults": [{"type": "CALL_EXPRESSION", "name": "host transition"}]
, "private-deps": [{"type": "CALL_EXPRESSION", "name": "host transition"}]
+ , "private-hdrs": [{"type": "CALL_EXPRESSION", "name": "host transition"}]
+ , "srcs": [{"type": "CALL_EXPRESSION", "name": "host transition"}]
, "data": [{"type": "CALL_EXPRESSION", "name": "host transition"}]
, "runner": [{"type": "CALL_EXPRESSION", "name": "host transition"}]
}
@@ -197,12 +205,16 @@
, "$1": {"type": "FIELD", "name": "stage"}
}
]
+ , ["host-trans", {"type": "CALL_EXPRESSION", "name": "host transition"}]
, [ "srcs"
, { "type": "to_subdir"
, "subdir": {"type": "var", "name": "stage"}
, "$1":
{ "type": "let*"
- , "bindings": [["fieldname", "srcs"]]
+ , "bindings":
+ [ ["fieldname", "srcs"]
+ , ["transition", {"type": "var", "name": "host-trans"}]
+ ]
, "body": {"type": "CALL_EXPRESSION", "name": "artifacts"}
}
}
@@ -212,12 +224,14 @@
, "subdir": {"type": "var", "name": "stage"}
, "$1":
{ "type": "let*"
- , "bindings": [["fieldname", "private-hdrs"]]
+ , "bindings":
+ [ ["fieldname", "private-hdrs"]
+ , ["transition", {"type": "var", "name": "host-trans"}]
+ ]
, "body": {"type": "CALL_EXPRESSION", "name": "artifacts"}
}
}
]
- , ["host-trans", {"type": "CALL_EXPRESSION", "name": "host transition"}]
, ["defaults-transition", {"type": "var", "name": "host-trans"}]
, ["deps-transition", {"type": "var", "name": "host-trans"}]
, ["deps-fieldnames", ["private-deps", "defaults"]]