1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5java_defaults { 6 name: "MicrodroidHostTestCases.default", 7 srcs: ["java/**/*.java"], 8 libs: [ 9 "androidx.annotation_annotation", 10 "tradefed", 11 ], 12 static_libs: [ 13 "MicrodroidHostTestHelper", 14 "compatibility-host-util", 15 "cts-statsd-atom-host-test-utils", 16 "microdroid_payload_metadata", 17 ], 18 per_testcase_directory: true, 19 // java_test_host doesn't have data_native_libs but jni_libs can be used to put 20 // native modules under ./lib directory. 21 // This works because host tools have rpath (../lib and ./lib). 22 jni_libs: [ 23 "libbase", 24 "libc++", 25 "libcrypto_utils", 26 "libcrypto", 27 "libext4_utils", 28 "libfdt", 29 "liblog", 30 "liblp", 31 "libsparse", 32 "libz", 33 ], 34} 35 36DEVICE_DATA = [ 37 ":MicrodroidTestApp", 38 ":MicrodroidTestAppUpdated", 39 ":microdroid_general_sepolicy.conf", 40 ":test.com.android.virt.pem", 41 ":test2.com.android.virt.pem", 42] 43 44BINS = [ 45 "sepolicy-analyze", 46 // For re-sign test 47 "avbtool", 48 "img2simg", 49 "initrd_bootconfig", 50 "lpmake", 51 "lpunpack", 52 "lz4", 53 "sign_virt_apex", 54 "simg2img", 55 "dtc", 56] 57 58java_test_host { 59 name: "MicrodroidHostTestCases", 60 defaults: ["MicrodroidHostTestCases.default"], 61 test_config_template: "AndroidTestTemplate.xml", 62 auto_gen_config: true, 63 test_suites: [ 64 "general-tests", 65 "pts", 66 ], 67 device_common_data: DEVICE_DATA, 68 data_native_bins: BINS, 69} 70 71java_test_host { 72 name: "MicrodroidHostTestCases.CTS", 73 defaults: ["MicrodroidHostTestCases.default"], 74 test_config_template: "AndroidTestTemplate.xml", 75 test_suites: ["cts"], 76 auto_gen_config: true, 77 test_options: { 78 tradefed_options: [ 79 { 80 name: "include-annotation", 81 value: "com.android.compatibility.common.util.CddTest", 82 }, 83 { 84 name: "test-suite-tag", 85 value: "cts", 86 }, 87 ], 88 }, 89 device_common_data: DEVICE_DATA, 90 data_native_bins: BINS, 91} 92 93java_test_host { 94 name: "MicrodroidHostTestCases.VTS", 95 defaults: ["MicrodroidHostTestCases.default"], 96 test_config_template: "AndroidTestTemplate.xml", 97 test_suites: ["vts"], 98 auto_gen_config: true, 99 test_options: { 100 tradefed_options: [ 101 { 102 name: "include-annotation", 103 value: "com.android.compatibility.common.util.VsrTest", 104 }, 105 { 106 name: "test-suite-tag", 107 value: "vts", 108 }, 109 ], 110 }, 111 device_common_data: DEVICE_DATA, 112 data_native_bins: BINS, 113} 114 115java_test_host { 116 name: "MicrodroidHostTestCases.GTS", 117 defaults: ["MicrodroidHostTestCases.default"], 118 test_config_template: "AndroidTestTemplate.xml", 119 test_suites: ["gts"], 120 auto_gen_config: true, 121 test_options: { 122 tradefed_options: [ 123 { 124 name: "include-annotation", 125 value: "com.android.compatibility.common.util.GmsTest", 126 }, 127 { 128 name: "test-suite-tag", 129 value: "gts", 130 }, 131 ], 132 }, 133 device_common_data: DEVICE_DATA, 134 data_native_bins: BINS, 135} 136