1package {
2    default_applicable_licenses: ["Android-Apache-2.0"],
3}
4
5java_test_host {
6    name: "MicrodroidHostTestCases",
7    srcs: ["java/**/*.java"],
8    test_suites: [
9        "cts",
10        "general-tests",
11    ],
12    libs: [
13        "androidx.annotation_annotation",
14        "tradefed",
15    ],
16    static_libs: [
17        "MicrodroidHostTestHelper",
18        "compatibility-host-util",
19        "cts-host-utils",
20        "cts-statsd-atom-host-test-utils",
21        "microdroid_payload_metadata",
22    ],
23    per_testcase_directory: true,
24    data: [
25        ":MicrodroidTestApp",
26        ":MicrodroidTestAppUpdated",
27        ":microdroid_general_sepolicy.conf",
28        ":test.com.android.virt.pem",
29        ":test2.com.android.virt.pem",
30    ],
31    data_native_bins: [
32        "sepolicy-analyze",
33        // For re-sign test
34        "avbtool",
35        "img2simg",
36        "initrd_bootconfig",
37        "lpmake",
38        "lpunpack",
39        "lz4",
40        "sign_virt_apex",
41        "simg2img",
42    ],
43    // java_test_host doesn't have data_native_libs but jni_libs can be used to put
44    // native modules under ./lib directory.
45    // This works because host tools have rpath (../lib and ./lib).
46    jni_libs: [
47        "libbase",
48        "libc++",
49        "libcrypto_utils",
50        "libcrypto",
51        "libext4_utils",
52        "liblog",
53        "liblp",
54        "libsparse",
55        "libz",
56    ],
57}
58