Files
rk35xx-android14/build/bazel/json_module_graph/findModulesWithTestSuitesValue.jq
T
hmz007 36ed224bac Rockchip Anroid14_SDK 20240628-rkr5 (2556df1a)
Signed-off-by: hmz007 <hmz007@gmail.com>
Change-Id: Ib87fdbe7a0be7dc961af3500fe9ea4589a127f9f
2024-10-29 18:12:02 +08:00

12 lines
419 B
Plaintext

# CMD: Returns the modules that have test_suites property with $arg as one of its value. Use $arg2 as the top level field key to be collected, e.g. Name, Blueprint.
def hasTestSuitesWithValue($a):
.[] | select(.Name == "Test_suites") | .Values | .[] | . == $a
;
[.[] |
select(.Module.Android.SetProperties |
if . == null then [] else . end |
hasTestSuitesWithValue($arg)) |
.[$arg2] ] | unique | sort | .[]