android_packages_modules_Vi.../tests/hostside/Android.bp

79 lines
2.0 KiB
Plaintext

package {
default_applicable_licenses: ["Android-Apache-2.0"],
}
genrule_defaults {
name: "test_avf_debug_policy_overlay",
tools: ["dtc"],
cmd: "$(location dtc) -I dts -O dtb $(in) -o $(out)",
}
genrule {
name: "test_avf_debug_policy_with_ramdump",
defaults: ["test_avf_debug_policy_overlay"],
srcs: ["assets/avf_debug_policy_with_ramdump.dts"],
out: ["avf_debug_policy_with_ramdump.dtbo"],
}
genrule {
name: "test_avf_debug_policy_without_ramdump",
defaults: ["test_avf_debug_policy_overlay"],
srcs: ["assets/avf_debug_policy_without_ramdump.dts"],
out: ["avf_debug_policy_without_ramdump.dtbo"],
}
java_test_host {
name: "MicrodroidHostTestCases",
srcs: ["java/**/*.java"],
test_suites: [
"cts",
"general-tests",
],
libs: [
"androidx.annotation_annotation",
"tradefed",
],
static_libs: [
"MicrodroidHostTestHelper",
"compatibility-host-util",
"cts-statsd-atom-host-test-utils",
],
per_testcase_directory: true,
data: [
":MicrodroidTestApp",
":microdroid_general_sepolicy.conf",
":test.com.android.virt.pem",
":test2.com.android.virt.pem",
":pvmfw_test",
":test_avf_debug_policy_with_ramdump",
":test_avf_debug_policy_without_ramdump",
"assets/bcc.dat",
],
data_native_bins: [
"sepolicy-analyze",
// For re-sign test
"avbtool",
"img2simg",
"initrd_bootconfig",
"lpmake",
"lpunpack",
"mk_payload",
"sign_virt_apex",
"simg2img",
],
// 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",
"liblog",
"liblp",
"libsparse",
"libz",
],
}