Merge commit 'korg/donut'
This commit is contained in:
commit
98dce16df0
8 changed files with 157 additions and 39 deletions
|
@ -343,6 +343,7 @@ subdirs += \
|
||||||
development/tools/ninepatch \
|
development/tools/ninepatch \
|
||||||
development/tools/sdkstats \
|
development/tools/sdkstats \
|
||||||
development/tools/sdkmanager \
|
development/tools/sdkmanager \
|
||||||
|
development/tools/mkstubs \
|
||||||
frameworks/base \
|
frameworks/base \
|
||||||
frameworks/base/tools/layoutlib \
|
frameworks/base/tools/layoutlib \
|
||||||
external/googleclient \
|
external/googleclient \
|
||||||
|
|
|
@ -25,6 +25,28 @@ else
|
||||||
endif
|
endif
|
||||||
CTS_HOST_JAR := $(HOST_OUT_JAVA_LIBRARIES)/cts.jar
|
CTS_HOST_JAR := $(HOST_OUT_JAVA_LIBRARIES)/cts.jar
|
||||||
|
|
||||||
|
CTS_CORE_CASE_LIST := android.core.tests.annotation \
|
||||||
|
android.core.tests.archive \
|
||||||
|
android.core.tests.concurrent \
|
||||||
|
android.core.tests.crypto \
|
||||||
|
android.core.tests.dom \
|
||||||
|
android.core.tests.logging \
|
||||||
|
android.core.tests.luni \
|
||||||
|
android.core.tests.luni.io \
|
||||||
|
android.core.tests.luni.lang \
|
||||||
|
android.core.tests.luni.net \
|
||||||
|
android.core.tests.luni.util \
|
||||||
|
android.core.tests.math \
|
||||||
|
android.core.tests.nio \
|
||||||
|
android.core.tests.nio_char \
|
||||||
|
android.core.tests.prefs \
|
||||||
|
android.core.tests.regex \
|
||||||
|
android.core.tests.security \
|
||||||
|
android.core.tests.sql \
|
||||||
|
android.core.tests.text \
|
||||||
|
android.core.tests.xml \
|
||||||
|
android.core.tests.xnet
|
||||||
|
|
||||||
CTS_CASE_LIST := \
|
CTS_CASE_LIST := \
|
||||||
DeviceInfoCollector \
|
DeviceInfoCollector \
|
||||||
CtsTestStubs \
|
CtsTestStubs \
|
||||||
|
@ -43,7 +65,7 @@ CTS_CASE_LIST := \
|
||||||
CtsWidgetTestCases \
|
CtsWidgetTestCases \
|
||||||
CtsNetTestCases \
|
CtsNetTestCases \
|
||||||
SignatureTest \
|
SignatureTest \
|
||||||
android.core.tests
|
$(CTS_CORE_CASE_LIST)
|
||||||
|
|
||||||
DEFAULT_TEST_PLAN := $(PRIVATE_DIR)/resource/plans
|
DEFAULT_TEST_PLAN := $(PRIVATE_DIR)/resource/plans
|
||||||
|
|
||||||
|
@ -67,36 +89,99 @@ $(cts_dir)/all_cts_files_stamp: $(CTS_CASE_LIST) | $(ACP)
|
||||||
$(hide) $(ACP) -fp $(cts_tools_src_dir)/utils/startcts $(PRIVATE_DIR)/tools/
|
$(hide) $(ACP) -fp $(cts_tools_src_dir)/utils/startcts $(PRIVATE_DIR)/tools/
|
||||||
$(hide) touch $@
|
$(hide) touch $@
|
||||||
|
|
||||||
# Generate the test plan for the core-tests
|
# Generate the test descriptions for the core-tests
|
||||||
CORE_TEST_PLAN := $(cts_dir)/$(cts_name)/repository/testcases/android.core.tests
|
|
||||||
|
define generate-core-test-description
|
||||||
|
@echo "Generate core-test description ("$(notdir $(1))")"
|
||||||
|
$(hide) java $(PRIVATE_JAVAOPTS) \
|
||||||
|
-classpath $(PRIVATE_CLASSPATH) \
|
||||||
|
$(PRIVATE_PARAMS) CollectAllTests $(1) \
|
||||||
|
$(2) $(3)
|
||||||
|
endef
|
||||||
|
|
||||||
CORE_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,core,,COMMON)
|
CORE_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,core,,COMMON)
|
||||||
TESTS_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,core-tests,,COMMON)
|
TESTS_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,core-tests,,COMMON)
|
||||||
|
|
||||||
GEN_CLASSPATH := $(CORE_INTERMEDIATES)/classes.jar:$(TESTS_INTERMEDIATES)/classes.jar:$(CORE_INTERMEDIATES)/javalib.jar:$(TESTS_INTERMEDIATES)/javalib.jar:$(HOST_OUT_JAVA_LIBRARIES)/descGen.jar:$(HOST_JDK_TOOLS_JAR)
|
GEN_CLASSPATH := $(CORE_INTERMEDIATES)/classes.jar:$(TESTS_INTERMEDIATES)/classes.jar:$(CORE_INTERMEDIATES)/javalib.jar:$(TESTS_INTERMEDIATES)/javalib.jar:$(HOST_OUT_JAVA_LIBRARIES)/descGen.jar:$(HOST_JDK_TOOLS_JAR)
|
||||||
|
|
||||||
$(CORE_TEST_PLAN): PRIVATE_CLASSPATH:=$(GEN_CLASSPATH)
|
$(cts_dir)/all_cts_core_files_stamp: PRIVATE_CLASSPATH:=$(GEN_CLASSPATH)
|
||||||
$(CORE_TEST_PLAN): PRIVATE_JAVAOPTS:=-Xmx256M
|
$(cts_dir)/all_cts_core_files_stamp: PRIVATE_JAVAOPTS:=-Xmx256M
|
||||||
$(CORE_TEST_PLAN): PRIVATE_PARAMS:=-Dcts.useSuppliedTestResult=true
|
$(cts_dir)/all_cts_core_files_stamp: PRIVATE_PARAMS:=-Dcts.useSuppliedTestResult=true
|
||||||
$(CORE_TEST_PLAN): PRIVATE_PARAMS+=-Dcts.useEnhancedJunit=true
|
$(cts_dir)/all_cts_core_files_stamp: PRIVATE_PARAMS+=-Dcts.useEnhancedJunit=true
|
||||||
$(CORE_TEST_PLAN): PRIVATE_CUSTOM_TOOL := java $(PRIVATE_JAVAOPTS) \
|
|
||||||
-classpath $(PRIVATE_CLASSPATH) \
|
|
||||||
$(PRIVATE_PARAMS) CollectAllTests $(CORE_TEST_PLAN) \
|
|
||||||
cts/tests/core/AndroidManifest.xml tests.AllTests
|
|
||||||
# Why does this depend on javalib.jar instead of classes.jar? Because
|
# Why does this depend on javalib.jar instead of classes.jar? Because
|
||||||
# even though the tool will operate on the classes.jar files, the
|
# even though the tool will operate on the classes.jar files, the
|
||||||
# build system requires that dependencies use javalib.jar. If
|
# build system requires that dependencies use javalib.jar. If
|
||||||
# javalib.jar is up-to-date, then classes.jar is as well. Depending
|
# javalib.jar is up-to-date, then classes.jar is as well. Depending
|
||||||
# on classes.jar will build the files incorrectly.
|
# on classes.jar will build the files incorrectly.
|
||||||
$(CORE_TEST_PLAN): android.core.tests $(HOST_OUT_JAVA_LIBRARIES)/descGen.jar $(CORE_INTERMEDIATES)/javalib.jar $(TESTS_INTERMEDIATES)/javalib.jar $(cts_dir)/all_cts_files_stamp
|
$(cts_dir)/all_cts_core_files_stamp: $(CTS_CORE_CASE_LIST) $(HOST_OUT_JAVA_LIBRARIES)/descGen.jar $(CORE_INTERMEDIATES)/javalib.jar $(TESTS_INTERMEDIATES)/javalib.jar | $(ACP)
|
||||||
@echo "Generate the CTS test plan: $@"
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.annotation,\
|
||||||
@echo $(PRIVATE_CUSTOM_TOOL)
|
cts/tests/core/annotation/AndroidManifest.xml,\
|
||||||
$(transform-generated-source)
|
tests.annotation.AllTests)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.archive,\
|
||||||
|
cts/tests/core/archive/AndroidManifest.xml,\
|
||||||
|
tests.archive.AllTests)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.concurrent,\
|
||||||
|
cts/tests/core/concurrent/AndroidManifest.xml,\
|
||||||
|
tests.concurrent.AllTests)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.crypto,\
|
||||||
|
cts/tests/core/crypto/AndroidManifest.xml,\
|
||||||
|
tests.crypto.AllTests)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.dom,\
|
||||||
|
cts/tests/core/dom/AndroidManifest.xml,\
|
||||||
|
tests.dom.AllTests)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.logging,\
|
||||||
|
cts/tests/core/logging/AndroidManifest.xml,\
|
||||||
|
tests.logging.AllTests)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.luni,\
|
||||||
|
cts/tests/core/luni/AndroidManifest.xml,\
|
||||||
|
tests.luni.AllTests)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.luni.io,\
|
||||||
|
cts/tests/core/luni-io/AndroidManifest.xml,\
|
||||||
|
tests.luni.AllTestsIo)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.luni.lang,\
|
||||||
|
cts/tests/core/luni-lang/AndroidManifest.xml,\
|
||||||
|
tests.luni.AllTestsLang)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.luni.net,\
|
||||||
|
cts/tests/core/luni-net/AndroidManifest.xml,\
|
||||||
|
tests.luni.AllTestsNet)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.luni.util,\
|
||||||
|
cts/tests/core/luni-util/AndroidManifest.xml,\
|
||||||
|
tests.luni.AllTestsUtil)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.math,\
|
||||||
|
cts/tests/core/math/AndroidManifest.xml,\
|
||||||
|
tests.math.AllTests)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.nio,\
|
||||||
|
cts/tests/core/nio/AndroidManifest.xml,\
|
||||||
|
tests.nio.AllTests)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.nio_char,\
|
||||||
|
cts/tests/core/nio_char/AndroidManifest.xml,\
|
||||||
|
tests.nio_char.AllTests)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.prefs,\
|
||||||
|
cts/tests/core/prefs/AndroidManifest.xml,\
|
||||||
|
tests.prefs.AllTests)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.regex,\
|
||||||
|
cts/tests/core/regex/AndroidManifest.xml,\
|
||||||
|
tests.regex.AllTests)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.security,\
|
||||||
|
cts/tests/core/security/AndroidManifest.xml,\
|
||||||
|
tests.security.AllTests)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.sql,\
|
||||||
|
cts/tests/core/sql/AndroidManifest.xml,\
|
||||||
|
tests.sql.AllTests)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.text,\
|
||||||
|
cts/tests/core/text/AndroidManifest.xml,\
|
||||||
|
tests.text.AllTests)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.xml,\
|
||||||
|
cts/tests/core/xml/AndroidManifest.xml,\
|
||||||
|
tests.xml.AllTests)
|
||||||
|
$(call generate-core-test-description,$(cts_dir)/$(cts_name)/repository/testcases/android.core.tests.xnet,\
|
||||||
|
cts/tests/core/xnet/AndroidManifest.xml,\
|
||||||
|
tests.xnet.AllTests)
|
||||||
|
$(hide) touch $@
|
||||||
|
|
||||||
|
|
||||||
# ----- Generate the test plan for the vm-tests -----
|
# ----- Generate the test descriptions for the vm-tests -----
|
||||||
#
|
#
|
||||||
CORE_VM_TEST_PLAN := $(cts_dir)/$(cts_name)/repository/testcases/android.core.vm-tests
|
CORE_VM_TEST_DESC := $(cts_dir)/$(cts_name)/repository/testcases/android.core.vm-tests
|
||||||
|
|
||||||
VMTESTS_INTERMEDIATES :=$(call intermediates-dir-for,EXECUTABLES,vm-tests,1,)
|
VMTESTS_INTERMEDIATES :=$(call intermediates-dir-for,EXECUTABLES,vm-tests,1,)
|
||||||
# core tests only needed to get hold of junit-framework-classes
|
# core tests only needed to get hold of junit-framework-classes
|
||||||
|
@ -105,23 +190,19 @@ CORE_INTERMEDIATES :=$(call intermediates-dir-for,JAVA_LIBRARIES,core,,COMMON)
|
||||||
|
|
||||||
GEN_CLASSPATH := $(CORE_INTERMEDIATES)/classes.jar:$(TESTS_INTERMEDIATES)/classes.jar:$(VMTESTS_INTERMEDIATES)/android.core.vm-tests.jar:$(HOST_OUT_JAVA_LIBRARIES)/descGen.jar:$(HOST_JDK_TOOLS_JAR)
|
GEN_CLASSPATH := $(CORE_INTERMEDIATES)/classes.jar:$(TESTS_INTERMEDIATES)/classes.jar:$(VMTESTS_INTERMEDIATES)/android.core.vm-tests.jar:$(HOST_OUT_JAVA_LIBRARIES)/descGen.jar:$(HOST_JDK_TOOLS_JAR)
|
||||||
|
|
||||||
$(CORE_VM_TEST_PLAN): PRIVATE_CLASSPATH:=$(GEN_CLASSPATH)
|
$(CORE_VM_TEST_DESC): PRIVATE_CLASSPATH:=$(GEN_CLASSPATH)
|
||||||
$(CORE_VM_TEST_PLAN): PRIVATE_PARAMS:=-Dcts.useSuppliedTestResult=true
|
$(CORE_VM_TEST_DESC): PRIVATE_PARAMS:=-Dcts.useSuppliedTestResult=true
|
||||||
$(CORE_VM_TEST_PLAN): PRIVATE_PARAMS+=-Dcts.useEnhancedJunit=true
|
$(CORE_VM_TEST_DESC): PRIVATE_PARAMS+=-Dcts.useEnhancedJunit=true
|
||||||
$(CORE_VM_TEST_PLAN): PRIVATE_JAVAOPTS:=-Xmx256M
|
$(CORE_VM_TEST_DESC): PRIVATE_JAVAOPTS:=-Xmx256M
|
||||||
$(CORE_VM_TEST_PLAN): PRIVATE_CUSTOM_TOOL := java $(PRIVATE_JAVAOPTS) \
|
|
||||||
-classpath $(PRIVATE_CLASSPATH) \
|
|
||||||
$(PRIVATE_PARAMS) CollectAllTests $(CORE_VM_TEST_PLAN) \
|
|
||||||
cts/tests/vm-tests/AndroidManifest.xml dot.junit.AllJunitHostTests cts/tools/vm-tests/Android.mk
|
|
||||||
# Please see big comment above on why this line depends on javalib.jar instead of classes.jar
|
# Please see big comment above on why this line depends on javalib.jar instead of classes.jar
|
||||||
$(CORE_VM_TEST_PLAN): vm-tests $(HOST_OUT_JAVA_LIBRARIES)/descGen.jar $(CORE_INTERMEDIATES)/javalib.jar $(VMTESTS_INTERMEDIATES)/android.core.vm-tests.jar $(TESTS_INTERMEDIATES)/javalib.jar $(cts_dir)/all_cts_files_stamp | $(ACP)
|
$(CORE_VM_TEST_DESC): vm-tests $(HOST_OUT_JAVA_LIBRARIES)/descGen.jar $(CORE_INTERMEDIATES)/javalib.jar $(VMTESTS_INTERMEDIATES)/android.core.vm-tests.jar $(TESTS_INTERMEDIATES)/javalib.jar $(cts_dir)/all_cts_files_stamp | $(ACP)
|
||||||
@echo "Generate the CTS vm-test plan: $@"
|
$(call generate-core-test-description,$(CORE_VM_TEST_DESC),\
|
||||||
@echo $(PRIVATE_CUSTOM_TOOL)
|
cts/tests/vm-tests/AndroidManifest.xml,\
|
||||||
$(transform-generated-source)
|
dot.junit.AllJunitHostTests, cts/tools/vm-tests/Android.mk)
|
||||||
$(ACP) -fv $(VMTESTS_INTERMEDIATES)/android.core.vm-tests.jar $(PRIVATE_DIR)/repository/testcases/android.core.vm-tests.jar
|
$(ACP) -fv $(VMTESTS_INTERMEDIATES)/android.core.vm-tests.jar $(PRIVATE_DIR)/repository/testcases/android.core.vm-tests.jar
|
||||||
|
|
||||||
# Generate the default test plan for User.
|
# Generate the default test plan for User.
|
||||||
$(DEFAULT_TEST_PLAN): $(cts_dir)/all_cts_files_stamp $(cts_tools_src_dir)/utils/genDefaultTestPlan.sh $(CORE_VM_TEST_PLAN) $(CORE_TEST_PLAN)
|
$(DEFAULT_TEST_PLAN): $(cts_dir)/all_cts_files_stamp $(cts_dir)/all_cts_core_files_stamp $(cts_tools_src_dir)/utils/genDefaultTestPlan.sh $(CORE_VM_TEST_DESC)
|
||||||
$(hide) bash $(cts_tools_src_dir)/utils/genDefaultTestPlan.sh cts/tests/tests/ \
|
$(hide) bash $(cts_tools_src_dir)/utils/genDefaultTestPlan.sh cts/tests/tests/ \
|
||||||
$(PRIVATE_DIR) $(TMP_DIR) $(TOP) $(TARGET_COMMON_OUT_ROOT) $(OUT_DIR)
|
$(PRIVATE_DIR) $(TMP_DIR) $(TOP) $(TARGET_COMMON_OUT_ROOT) $(OUT_DIR)
|
||||||
|
|
||||||
|
@ -134,7 +215,7 @@ $(INTERNAL_CTS_TARGET): PRIVATE_NAME := $(cts_name)
|
||||||
$(INTERNAL_CTS_TARGET): PRIVATE_CTS_DIR := $(cts_dir)
|
$(INTERNAL_CTS_TARGET): PRIVATE_CTS_DIR := $(cts_dir)
|
||||||
$(INTERNAL_CTS_TARGET): PRIVATE_DIR := $(cts_dir)/$(cts_name)
|
$(INTERNAL_CTS_TARGET): PRIVATE_DIR := $(cts_dir)/$(cts_name)
|
||||||
$(INTERNAL_CTS_TARGET): TMP_DIR := $(cts_dir)/temp
|
$(INTERNAL_CTS_TARGET): TMP_DIR := $(cts_dir)/temp
|
||||||
$(INTERNAL_CTS_TARGET): $(cts_dir)/all_cts_files_stamp $(DEFAULT_TEST_PLAN) $(CORE_TEST_PLAN) $(CORE_VM_TEST_PLAN)
|
$(INTERNAL_CTS_TARGET): $(cts_dir)/all_cts_files_stamp $(DEFAULT_TEST_PLAN) $(CORE_VM_TEST_DESC)
|
||||||
@echo "Package CTS: $@"
|
@echo "Package CTS: $@"
|
||||||
$(hide) cd $(dir $@) && zip -rq $(notdir $@) $(PRIVATE_NAME)
|
$(hide) cd $(dir $@) && zip -rq $(notdir $@) $(PRIVATE_NAME)
|
||||||
|
|
||||||
|
|
|
@ -817,7 +817,7 @@ function tracedmdump()
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
local prebuiltdir=$(getprebuilt)
|
local prebuiltdir=$(getprebuilt)
|
||||||
local KERNEL=$T/prebuilt/android-arm/vmlinux-qemu
|
local KERNEL=$T/prebuilt/android-arm/kernel/vmlinux-qemu
|
||||||
|
|
||||||
local TRACE=$1
|
local TRACE=$1
|
||||||
if [ ! "$TRACE" ] ; then
|
if [ ! "$TRACE" ] ; then
|
||||||
|
@ -825,6 +825,11 @@ function tracedmdump()
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ ! -r "$KERNEL" ] ; then
|
||||||
|
echo "Error: cannot find kernel: '$KERNEL'"
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
local BASETRACE=$(basename $TRACE)
|
local BASETRACE=$(basename $TRACE)
|
||||||
if [ "$BASETRACE" = "$TRACE" ] ; then
|
if [ "$BASETRACE" = "$TRACE" ] ; then
|
||||||
TRACE=$ANDROID_PRODUCT_OUT/traces/$TRACE
|
TRACE=$ANDROID_PRODUCT_OUT/traces/$TRACE
|
||||||
|
|
9
target/product/generic_with_google.mk
Executable file → Normal file
9
target/product/generic_with_google.mk
Executable file → Normal file
|
@ -5,7 +5,14 @@
|
||||||
|
|
||||||
PRODUCT_PACKAGES := \
|
PRODUCT_PACKAGES := \
|
||||||
GoogleContactsProvider \
|
GoogleContactsProvider \
|
||||||
GoogleSubscribedFeedsProvider
|
GoogleSubscribedFeedsProvider \
|
||||||
|
com.google.android.gtalkservice \
|
||||||
|
com.google.android.maps
|
||||||
|
|
||||||
|
PRODUCT_COPY_FILES := \
|
||||||
|
vendor/google/frameworks/maps/com.google.android.maps.xml:system/etc/permissions/com.google.android.maps.xml \
|
||||||
|
vendor/google/apps/GTalkService/com.google.android.gtalkservice.xml:system/etc/permissions/com.google.android.gtalkservice.xml
|
||||||
|
|
||||||
|
|
||||||
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic.mk)
|
$(call inherit-product, $(SRC_TARGET_DIR)/product/generic.mk)
|
||||||
|
|
||||||
|
|
16
tools/check_builds.sh
Executable file → Normal file
16
tools/check_builds.sh
Executable file → Normal file
|
@ -40,6 +40,7 @@ function do_builds
|
||||||
while [ -n "$1" ]
|
while [ -n "$1" ]
|
||||||
do
|
do
|
||||||
rm -rf $TEST_BUILD_DIR/$PREFIX-$1
|
rm -rf $TEST_BUILD_DIR/$PREFIX-$1
|
||||||
|
make PRODUCT-$(echo $1 | sed "s/-.*//" )-installclean
|
||||||
make -j6 PRODUCT-$1 dist DIST_DIR=$TEST_BUILD_DIR/$PREFIX-$1
|
make -j6 PRODUCT-$1 dist DIST_DIR=$TEST_BUILD_DIR/$PREFIX-$1
|
||||||
if [ $? -ne 0 ] ; then
|
if [ $? -ne 0 ] ; then
|
||||||
echo FAILED
|
echo FAILED
|
||||||
|
@ -74,3 +75,18 @@ function check_builds
|
||||||
compare_builds "$@"
|
compare_builds "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function diff_builds
|
||||||
|
{
|
||||||
|
local inputs=
|
||||||
|
while [ -n "$1" ]
|
||||||
|
do
|
||||||
|
diff $TEST_BUILD_DIR/golden-$1/installed-files.txt $TEST_BUILD_DIR/dist-$1/installed-files.txt &> /dev/null
|
||||||
|
if [ $? != 0 ]; then
|
||||||
|
echo =========== $1 ===========
|
||||||
|
diff $TEST_BUILD_DIR/golden-$1/installed-files.txt $TEST_BUILD_DIR/dist-$1/installed-files.txt
|
||||||
|
fi
|
||||||
|
shift
|
||||||
|
done
|
||||||
|
build/tools/compare_fileslist.py $inputs > $TEST_BUILD_DIR/sizes.html
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -1016,7 +1016,11 @@ body .ui-resizable-autohide .ui-resizable-handle { display: none; } /* use 'body
|
||||||
}
|
}
|
||||||
|
|
||||||
#headerLeft {
|
#headerLeft {
|
||||||
margin:0;
|
padding:0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#headerLeft .guide {
|
||||||
|
display:none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#headerRight {
|
#headerRight {
|
||||||
|
|
|
@ -26,7 +26,7 @@ if:reference ?>
|
||||||
/if ?>
|
/if ?>
|
||||||
<noscript>
|
<noscript>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
body{overflow:auto;}
|
html,body{overflow:auto;}
|
||||||
#body-content{position:relative; top:0;}
|
#body-content{position:relative; top:0;}
|
||||||
#doc-content{overflow:visible;border-left:3px solid #666;}
|
#doc-content{overflow:visible;border-left:3px solid #666;}
|
||||||
#side-nav{padding:0;}
|
#side-nav{padding:0;}
|
||||||
|
|
|
@ -26,8 +26,10 @@ Usage: sign_target_files_apks [flags] input_target_files output_target_files
|
||||||
|
|
||||||
-e (--extra_apks) <name,name,...=key>
|
-e (--extra_apks) <name,name,...=key>
|
||||||
Add extra APK name/key pairs as though they appeared in
|
Add extra APK name/key pairs as though they appeared in
|
||||||
apkcerts.zip. Option may be repeated to give multiple extra
|
apkcerts.txt (so mappings specified by -k and -d are applied).
|
||||||
packages.
|
Keys specified in -e override any value for that app contained
|
||||||
|
in the apkcerts.txt file. Option may be repeated to give
|
||||||
|
multiple extra packages.
|
||||||
|
|
||||||
-k (--key_mapping) <src_key=dest_key>
|
-k (--key_mapping) <src_key=dest_key>
|
||||||
Add a mapping from the key name as specified in apkcerts.txt (the
|
Add a mapping from the key name as specified in apkcerts.txt (the
|
||||||
|
@ -68,7 +70,7 @@ OPTIONS.key_map = {}
|
||||||
|
|
||||||
|
|
||||||
def GetApkCerts(tf_zip):
|
def GetApkCerts(tf_zip):
|
||||||
certmap = OPTIONS.extra_apks.copy()
|
certmap = {}
|
||||||
for line in tf_zip.read("META/apkcerts.txt").split("\n"):
|
for line in tf_zip.read("META/apkcerts.txt").split("\n"):
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
if not line: continue
|
if not line: continue
|
||||||
|
@ -77,6 +79,8 @@ def GetApkCerts(tf_zip):
|
||||||
if not m:
|
if not m:
|
||||||
raise SigningError("failed to parse line from apkcerts.txt:\n" + line)
|
raise SigningError("failed to parse line from apkcerts.txt:\n" + line)
|
||||||
certmap[m.group(1)] = OPTIONS.key_map.get(m.group(2), m.group(2))
|
certmap[m.group(1)] = OPTIONS.key_map.get(m.group(2), m.group(2))
|
||||||
|
for apk, cert in OPTIONS.extra_apks.iteritems():
|
||||||
|
certmap[apk] = OPTIONS.key_map.get(cert, cert)
|
||||||
return certmap
|
return certmap
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue