Revert "Revert "Include core library jars in runtime apex.""
This reverts commit 8828ddf011dbc453982bbb8a51494bc626efb8e7.
Reason for revert: Sailfish size issues fixed.
Change-Id: I03e22af485918fb41e41eed86b2a7b13f2462128
diff --git a/build/apex/runtests.sh b/build/apex/runtests.sh
index 4c0e772..83c42bc 100755
--- a/build/apex/runtests.sh
+++ b/build/apex/runtests.sh
@@ -144,6 +144,10 @@
|| fail_check "Cannot find library '$1' in mounted image"
}
+function check_java_library {
+ [[ -x "$mount_point/javalib/$1" ]] || fail_check "Cannot find java library '$1' in mounted image"
+}
+
# Check contents of APEX payload located in `$mount_point`.
function check_release_contents {
# Check that the mounted image contains an APEX manifest.
@@ -189,6 +193,15 @@
# ...
#
# ?
+
+ # TODO: Enable for host
+ if [ $1 != "com.android.runtime.host" ]; then
+ check_java_library core-oj.jar
+ check_java_library core-libart.jar
+ check_java_library okhttp.jar
+ check_java_library bouncycastle.jar
+ check_java_library apache-xml.jar
+ fi
}
# Check debug contents of APEX payload located in `$mount_point`.
@@ -286,7 +299,7 @@
# Run tests on APEX package.
say "Checking APEX package $apex_module"
-check_release_contents
+check_release_contents "$apex_module"
# Clean up.
trap - EXIT
@@ -319,7 +332,7 @@
# Run tests on APEX package.
say "Checking APEX package $apex_module"
-check_release_contents
+check_release_contents "$apex_module"
check_debug_contents
# Check for files pulled in from debug target-only oatdump.
check_binary oatdump
@@ -390,7 +403,7 @@
# Run tests on APEX package.
say "Checking APEX package $apex_module"
-check_release_contents
+check_release_contents "$apex_module"
check_debug_contents
# Clean up.