package { default_applicable_licenses: ["Android-Apache-2.0"], } android_test { name: "MicrodroidTestApp", test_suites: [ "cts", "general-tests", ], srcs: ["src/java/**/*.java"], static_libs: [ "androidx.test.runner", "androidx.test.ext.junit", "cbor-java", "com.android.microdroid.testservice-java", "truth-prebuilt", ], libs: ["android.system.virtualmachine"], jni_libs: ["MicrodroidTestNativeLib"], platform_apis: true, use_embedded_native_libs: true, // We only support 64-bit ABI, but CTS demands all APKs to be multi-ABI. compile_multilib: "both", } // TODO(jiyong): make this a binary, not a shared library cc_library_shared { name: "MicrodroidTestNativeLib", srcs: ["src/native/testbinary.cpp"], shared_libs: [ "android.security.dice-ndk", "android.system.virtualmachineservice-ndk", "com.android.microdroid.testservice-ndk", "libbase", "libbinder_ndk", "libbinder_rpc_unstable", "MicrodroidTestNativeLibSub", ], static_libs: [ "libfsverity_digests_proto_cc", "liblog", "libprotobuf-cpp-lite-ndk", ], } cc_library_shared { name: "MicrodroidTestNativeLibSub", srcs: ["src/native/testlib.cpp"], }