1package { 2 default_applicable_licenses: ["Android-Apache-2.0"], 3} 4 5genrule_defaults { 6 name: "test_avf_debug_policy_overlay", 7 tools: ["dtc"], 8 cmd: "$(location dtc) -I dts -O dtb $(in) -o $(out)", 9} 10 11genrule { 12 name: "test_avf_debug_policy_with_adb", 13 defaults: ["test_avf_debug_policy_overlay"], 14 srcs: ["assets/avf_debug_policy_with_adb.dts"], 15 out: ["avf_debug_policy_with_adb.dtbo"], 16} 17 18genrule { 19 name: "test_avf_debug_policy_without_adb", 20 defaults: ["test_avf_debug_policy_overlay"], 21 srcs: ["assets/avf_debug_policy_without_adb.dts"], 22 out: ["avf_debug_policy_without_adb.dtbo"], 23} 24 25java_test_host { 26 name: "MicrodroidHostTestCases", 27 srcs: ["java/**/*.java"], 28 test_suites: [ 29 "cts", 30 "general-tests", 31 ], 32 libs: [ 33 "androidx.annotation_annotation", 34 "tradefed", 35 ], 36 static_libs: [ 37 "MicrodroidHostTestHelper", 38 "compatibility-host-util", 39 "cts-statsd-atom-host-test-utils", 40 "microdroid_payload_metadata", 41 "MicrodroidTestPreparer", // Workaround for sandboxed test environment to install this 42 ], 43 per_testcase_directory: true, 44 data: [ 45 ":MicrodroidTestApp", 46 ":microdroid_general_sepolicy.conf", 47 ":test.com.android.virt.pem", 48 ":test2.com.android.virt.pem", 49 ":pvmfw_test", 50 ":test_avf_debug_policy_with_adb", 51 ":test_avf_debug_policy_without_adb", 52 "assets/bcc.dat", 53 ], 54 data_native_bins: [ 55 "sepolicy-analyze", 56 // For re-sign test 57 "avbtool", 58 "img2simg", 59 "initrd_bootconfig", 60 "lpmake", 61 "lpunpack", 62 "sign_virt_apex", 63 "simg2img", 64 ], 65 // java_test_host doesn't have data_native_libs but jni_libs can be used to put 66 // native modules under ./lib directory. 67 // This works because host tools have rpath (../lib and ./lib). 68 jni_libs: [ 69 "libbase", 70 "libc++", 71 "libcrypto_utils", 72 "libcrypto", 73 "libext4_utils", 74 "liblog", 75 "liblp", 76 "libsparse", 77 "libz", 78 ], 79 required: ["MicrodroidTestPreparer"], 80} 81