• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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        "tradefed",
14    ],
15    static_libs: [
16        "VirtualizationTestHelper",
17    ],
18    per_testcase_directory: true,
19    data: [
20        ":MicrodroidTestApp",
21        ":microdroid_general_sepolicy.conf",
22        ":test.com.android.virt.pem",
23        ":test2.com.android.virt.pem",
24    ],
25    data_native_bins: [
26        "sepolicy-analyze",
27        // For re-sign test
28        "avbtool",
29        "img2simg",
30        "lpmake",
31        "lpunpack",
32        "mk_payload",
33        "sign_virt_apex",
34        "simg2img",
35    ],
36    // java_test_host doesn't have data_native_libs but jni_libs can be used to put
37    // native modules under ./lib directory.
38    // This works because host tools have rpath (../lib and ./lib).
39    jni_libs: [
40        "libbase",
41        "libc++",
42        "libcrypto_utils",
43        "libcrypto",
44        "libext4_utils",
45        "liblog",
46        "liblp",
47        "libsparse",
48        "libz",
49    ],
50}
51