• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1package {
2    // See: http://go/android-license-faq
3    // A large-scale-change added 'default_applicable_licenses' to import
4    // all of the 'license_kinds' from "external_perfetto_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["external_perfetto_license"],
8}
9
10cc_test {
11    name: "CtsPerfettoTestCases",
12    team: "trendy_team_perfetto",
13    srcs: [
14        "device_feature_test_cts.cc",
15        "heapprofd_test_cts.cc",
16        "producer_to_consumer_integrationtest_cts.cc",
17        "traced_perf_test_cts.cc",
18        ":perfetto_end_to_end_integrationtests",
19        ":perfetto_protos_perfetto_config_cpp_gen",
20        ":perfetto_protos_perfetto_common_cpp_gen",
21    ],
22    generated_headers: [
23        "perfetto_protos_perfetto_config_cpp_gen_headers",
24        "perfetto_protos_perfetto_common_cpp_gen_headers",
25    ],
26    static_libs: [
27        "libgmock",
28        "libprotobuf-cpp-lite",
29        "libperfetto_client_experimental",
30        "perfetto_cts_deps",
31        "perfetto_trace_protos",
32    ],
33    whole_static_libs: [
34        "perfetto_gtest_logcat_printer",
35    ],
36    shared_libs: [
37        "libandroid",
38        "liblog",
39    ],
40    test_suites: [
41        "cts",
42        "vts10",
43        "general-tests",
44    ],
45    compile_multilib: "both",
46    multilib: {
47        lib32: {
48            suffix: "32",
49        },
50        lib64: {
51            suffix: "64",
52        },
53    },
54    per_testcase_directory: true,
55    data: [
56        ":CtsPerfettoNonProfileableApp",
57        ":CtsPerfettoProfileableApp",
58        ":CtsPerfettoProducerApp",
59        ":CtsPerfettoReleaseApp",
60        ":CtsPerfettoDebuggableApp",
61        ":perfetto_device_preparer_sh",
62    ],
63    stl: "libc++_static",
64    // This test is also run via Mainline Testing against the ART Mainline
65    // Module, which is updatable since Android 12 (API level 31).
66    // TODO(rsavitski): is this still necessary with the MTS tests split off into
67    // their own target?
68    min_sdk_version: "31",
69    defaults: [
70        "perfetto_defaults",
71    ],
72}
73
74filegroup {
75    name: "perfetto_device_preparer_sh",
76    srcs: ["perfetto_device_preparer.sh"],
77    path: ".",
78}
79