• 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 "system_tools_hidl_license"
5    // to get the below license kinds:
6    //   SPDX-license-identifier-Apache-2.0
7    default_applicable_licenses: ["system_tools_hidl_license"],
8}
9
10python_test_host {
11    name: "hidl_test_java",
12    main: "hidl_test_java.py",
13    srcs: ["hidl_test_java.py"],
14    test_config: "hidl_test_java.xml",
15    target_required: [
16        "hidl_test_java_native",
17        "hidl_test_java_java",
18    ],
19    test_suites: [
20        "general-tests",
21        "vts",
22    ],
23    test_options: {
24        unit_test: false,
25    },
26}
27
28cc_test {
29    name: "hidl_test_java_native",
30    tidy_timeout_srcs: ["hidl_test_java_native.cpp"],
31    srcs: ["hidl_test_java_native.cpp"],
32
33    cflags: [
34        "-Wall",
35        "-Werror",
36    ],
37
38    // Allow dlsym'ing self for statically linked passthrough implementations
39    ldflags: ["-rdynamic"],
40
41    shared_libs: [
42        "libbase",
43        "libcutils",
44        "libhidlbase",
45        "libhidlmemory",
46        "liblog",
47        "libutils",
48    ],
49
50    static_libs: [
51        "android.hardware.tests.baz@1.0",
52        "android.hardware.tests.expression@1.0",
53        "android.hardware.tests.inheritance@1.0",
54        "android.hardware.tests.memory@2.0",
55        "android.hardware.tests.safeunion@1.0",
56        "android.hidl.allocator@1.0",
57    ],
58
59    // impls should never be static, these are used only for testing purposes
60    // and test portability since this test pairs with specific hal
61    // implementations
62    whole_static_libs: [
63        "android.hardware.tests.baz@1.0-impl",
64        "android.hardware.tests.safeunion@1.0-impl",
65    ],
66
67    compile_multilib: "both",
68    multilib: {
69        lib32: {
70            suffix: "32",
71        },
72        lib64: {
73            suffix: "64",
74        },
75    },
76    test_suites: [
77        "general-tests",
78        "vts",
79    ],
80    auto_gen_config: false,
81}
82
83java_test {
84    name: "hidl_test_java_java",
85    srcs: ["**/*.java"],
86
87    static_libs: [
88        "android.hidl.manager-V1.0-java",
89        "android.hardware.tests.baz-V1.0-java",
90        "android.hardware.tests.expression-V1.0-java",
91        "android.hardware.tests.inheritance-V1.0-java",
92        "android.hardware.tests.memory-V2.0-java",
93        "android.hardware.tests.safeunion-V1.0-java",
94    ],
95    test_suites: [
96        "general-tests",
97        "vts",
98    ],
99    auto_gen_config: false,
100}
101