diff options
| author | 2024-03-27 13:08:32 -0700 | |
|---|---|---|
| committer | 2024-03-27 20:45:41 +0000 | |
| commit | 3fb1f2bc7c0ec674ae8cd93318f3d332ec2bc6b7 (patch) | |
| tree | f813a8cccb682b2b25f3738ced010ab5537ad9dc | |
| parent | 1406600d75c1a30ebdf45312b7fa0f4a4355194b (diff) | |
Collect ravenwood stats *.csv files under the testcases dir
Test: atest ravenwood-stats-checker
Bug: 292141694
Change-Id: I51a295d940e4a02f33341614ca4b80bca330200c
| -rw-r--r-- | Ravenwood.bp | 26 | ||||
| -rw-r--r-- | ravenwood/Android.bp | 12 | ||||
| -rwxr-xr-x | ravenwood/ravenwood-stats-checker.sh | 5 |
3 files changed, 43 insertions, 0 deletions
diff --git a/Ravenwood.bp b/Ravenwood.bp index f43c37bf637d..6237e3ec0f07 100644 --- a/Ravenwood.bp +++ b/Ravenwood.bp @@ -77,6 +77,19 @@ java_genrule { ], } +// Extract the stats file. +genrule { + name: "framework-minus-apex.ravenwood.stats", + defaults: ["ravenwood-internal-only-visibility-genrule"], + cmd: "cp $(in) $(out)", + srcs: [ + ":framework-minus-apex.ravenwood-base{hoststubgen_framework-minus-apex_stats.csv}", + ], + out: [ + "hoststubgen_framework-minus-apex_stats.csv", + ], +} + java_library { name: "services.core-for-hoststubgen", installable: false, // host only jar. @@ -135,6 +148,19 @@ java_genrule { ], } +// Extract the stats file. +genrule { + name: "services.core.ravenwood.stats", + defaults: ["ravenwood-internal-only-visibility-genrule"], + cmd: "cp $(in) $(out)", + srcs: [ + ":services.core.ravenwood-base{hoststubgen_services.core_stats.csv}", + ], + out: [ + "hoststubgen_services.core_stats.csv", + ], +} + java_library { name: "services.core.ravenwood-jarjar", installable: false, diff --git a/ravenwood/Android.bp b/ravenwood/Android.bp index 178102e2876d..f4337d41aead 100644 --- a/ravenwood/Android.bp +++ b/ravenwood/Android.bp @@ -154,3 +154,15 @@ filegroup { srcs: ["ravenwood-services-jarjar-rules.txt"], visibility: ["//frameworks/base"], } + +// For collecting the *stats.csv files in a known directory under out/host/linux-x86/testcases/. +// The "test" just shows the available stats filenames. +sh_test_host { + name: "ravenwood-stats-checker", + src: "ravenwood-stats-checker.sh", + test_suites: ["general-tests"], + data: [ + ":framework-minus-apex.ravenwood.stats", + ":services.core.ravenwood.stats", + ], +} diff --git a/ravenwood/ravenwood-stats-checker.sh b/ravenwood/ravenwood-stats-checker.sh new file mode 100755 index 000000000000..fb58e7228461 --- /dev/null +++ b/ravenwood/ravenwood-stats-checker.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +# Just print the available *.csv filenames. +echo '#Stats files:' +ls *.csv
\ No newline at end of file |