| package { |
| default_applicable_licenses: ["Android-Apache-2.0"], |
| } |
| |
| java_defaults { |
| name: "MicrodroidHostTestCases.default", |
| srcs: ["java/**/*.java"], |
| libs: [ |
| "androidx.annotation_annotation", |
| "tradefed", |
| ], |
| static_libs: [ |
| "MicrodroidHostTestHelper", |
| "compatibility-host-util", |
| "cts-statsd-atom-host-test-utils", |
| "microdroid_payload_metadata", |
| ], |
| per_testcase_directory: true, |
| // java_test_host doesn't have data_native_libs but jni_libs can be used to put |
| // native modules under ./lib directory. |
| // This works because host tools have rpath (../lib and ./lib). |
| jni_libs: [ |
| "libbase", |
| "libc++", |
| "libcrypto_utils", |
| "libcrypto", |
| "libext4_utils", |
| "libfdt", |
| "liblog", |
| "liblp", |
| "libsparse", |
| "libz", |
| ], |
| } |
| |
| DEVICE_DATA = [ |
| ":MicrodroidTestApp", |
| ":MicrodroidTestAppUpdated", |
| ":microdroid_general_sepolicy.conf", |
| ":test.com.android.virt.pem", |
| ":test2.com.android.virt.pem", |
| ] |
| |
| BINS = [ |
| "sepolicy-analyze", |
| // For re-sign test |
| "avbtool", |
| "img2simg", |
| "initrd_bootconfig", |
| "lpmake", |
| "lpunpack", |
| "lz4", |
| "sign_virt_apex", |
| "simg2img", |
| "dtc", |
| ] |
| |
| java_test_host { |
| name: "MicrodroidHostTestCases", |
| defaults: ["MicrodroidHostTestCases.default"], |
| test_config_template: "AndroidTestTemplate.xml", |
| auto_gen_config: true, |
| test_suites: [ |
| "general-tests", |
| "pts", |
| ], |
| device_common_data: DEVICE_DATA, |
| data_native_bins: BINS, |
| } |
| |
| java_test_host { |
| name: "MicrodroidHostTestCases.CTS", |
| defaults: ["MicrodroidHostTestCases.default"], |
| test_config_template: "AndroidTestTemplate.xml", |
| test_suites: ["cts"], |
| auto_gen_config: true, |
| test_options: { |
| tradefed_options: [ |
| { |
| name: "include-annotation", |
| value: "com.android.compatibility.common.util.CddTest", |
| }, |
| { |
| name: "test-suite-tag", |
| value: "cts", |
| }, |
| ], |
| }, |
| device_common_data: DEVICE_DATA, |
| data_native_bins: BINS, |
| } |
| |
| java_test_host { |
| name: "MicrodroidHostTestCases.VTS", |
| defaults: ["MicrodroidHostTestCases.default"], |
| test_config_template: "AndroidTestTemplate.xml", |
| test_suites: ["vts"], |
| auto_gen_config: true, |
| test_options: { |
| tradefed_options: [ |
| { |
| name: "include-annotation", |
| value: "com.android.compatibility.common.util.VsrTest", |
| }, |
| { |
| name: "test-suite-tag", |
| value: "vts", |
| }, |
| ], |
| }, |
| device_common_data: DEVICE_DATA, |
| data_native_bins: BINS, |
| } |
| |
| java_test_host { |
| name: "MicrodroidHostTestCases.GTS", |
| defaults: ["MicrodroidHostTestCases.default"], |
| test_config_template: "AndroidTestTemplate.xml", |
| test_suites: ["gts"], |
| auto_gen_config: true, |
| test_options: { |
| tradefed_options: [ |
| { |
| name: "include-annotation", |
| value: "com.android.compatibility.common.util.GmsTest", |
| }, |
| { |
| name: "test-suite-tag", |
| value: "gts", |
| }, |
| ], |
| }, |
| device_common_data: DEVICE_DATA, |
| data_native_bins: BINS, |
| } |