diff options
author | Brian Muramatsu <btmura@android.com> | 2010-09-02 12:36:59 -0700 |
---|---|---|
committer | Brian Muramatsu <btmura@android.com> | 2010-10-05 13:44:33 -0700 |
commit | 45a971d961426cfecc0b2a73a3060a554eda8a59 (patch) | |
tree | 46a936b21c81f164fc8afb6ed2420d8fec19103d | |
parent | 817a8ac99392228f894d18ea40b0fb4c1b6ca8fe (diff) | |
download | build-45a971d961426cfecc0b2a73a3060a554eda8a59.zip build-45a971d961426cfecc0b2a73a3060a554eda8a59.tar.gz build-45a971d961426cfecc0b2a73a3060a554eda8a59.tar.bz2 |
Support Additional CTS Host Jars
Include another optional Makefile from the CTS project that
specifies additional JARs that the CTS host may need. This
will make it easier to create modules in the CTS project
that can be built for the host and device and shared between
the host and test cases.
The first such library will include annotations like
"RequiresFeature" and "SupportsProfile" that will be needed
to support multiple device profiles in CTS.
Another planned libraries could include defining the CTS
version number in a central spot and sharing code used to
probe for certain properties like the OpenGL version and
other system properties.
Can be checked in after this other change without causing
breakage: https://review.source.android.com/#change,16740
Change-Id: I3c488247b66522dc86277ab43198c34f790e0618
-rw-r--r-- | core/tasks/cts.mk | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/core/tasks/cts.mk b/core/tasks/cts.mk index 1568494..bcec5ab 100644 --- a/core/tasks/cts.mk +++ b/core/tasks/cts.mk @@ -57,7 +57,8 @@ DEFAULT_TEST_PLAN := $(PRIVATE_DIR)/resource/plans $(cts_dir)/all_cts_files_stamp: PRIVATE_JUNIT_HOST_JAR := $(junit_host_jar) -$(cts_dir)/all_cts_files_stamp: $(CTS_CASE_LIST) $(junit_host_jar) $(HOSTTESTLIB_JAR) $(ACP) +-include cts/CtsHostLibraryList.mk +$(cts_dir)/all_cts_files_stamp: $(CTS_CASE_LIST) $(junit_host_jar) $(HOSTTESTLIB_JAR) $(CTS_HOST_LIBRARY_JARS) $(ACP) # Make necessary directory for CTS @rm -rf $(PRIVATE_CTS_DIR) @mkdir -p $(TMP_DIR) @@ -65,13 +66,8 @@ $(cts_dir)/all_cts_files_stamp: $(CTS_CASE_LIST) $(junit_host_jar) $(HOSTTESTLIB @mkdir -p $(PRIVATE_DIR)/tools @mkdir -p $(PRIVATE_DIR)/repository/testcases @mkdir -p $(PRIVATE_DIR)/repository/plans -# Copy executable to CTS directory - $(hide) $(ACP) -fp $(CTS_HOST_JAR) $(PRIVATE_DIR)/tools - $(hide) $(ACP) -fp $(CTS_EXECUTABLE_PATH) $(PRIVATE_DIR)/tools -# Copy junit jar - $(hide) $(ACP) -fp $(PRIVATE_JUNIT_HOST_JAR) $(PRIVATE_DIR)/tools -# Copy hosttestlib jar - $(hide) $(ACP) -fp $(HOSTTESTLIB_JAR) $(PRIVATE_DIR)/tools +# Copy executable and JARs to CTS directory + $(hide) $(ACP) -fp $(CTS_HOST_JAR) $(CTS_EXECUTABLE_PATH) $(PRIVATE_JUNIT_HOST_JAR) $(HOSTTESTLIB_JAR) $(CTS_HOST_LIBRARY_JARS) $(PRIVATE_DIR)/tools # Change mode of the executables $(hide) chmod ug+rwX $(PRIVATE_DIR)/tools/$(notdir $(CTS_EXECUTABLE_PATH)) $(foreach apk,$(CTS_CASE_LIST), \ |