Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 59d51e26 authored by Makoto Onuki's avatar Makoto Onuki Committed by Android (Google) Code Review
Browse files

Merge "Collect ravenwood stats *.csv files under the testcases dir" into main

parents bcf5fa84 3fb1f2bc
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
@@ -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,
+12 −0
Original line number Diff line number Diff line
@@ -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",
    ],
}
+5 −0
Original line number Diff line number Diff line
#!/bin/bash

# Just print the available *.csv filenames.
echo '#Stats files:'
ls *.csv
 No newline at end of file