summaryrefslogtreecommitdiffstats
path: root/build/test_package.mk
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2012-03-07 19:13:05 -0800
committerSvetoslav Ganov <svetoslavganov@google.com>2012-03-12 17:36:49 -0700
commitb803f80f0fa6680dd8fe7606e7d9b6a908ddaaf4 (patch)
tree78755106dc8f376e955dd0d59b6202bf5bcf4257 /build/test_package.mk
parentd95ad171495887f9012d3fb75cf78341f4d4db59 (diff)
downloadplatform_cts-b803f80f0fa6680dd8fe7606e7d9b6a908ddaaf4.tar.gz
platform_cts-b803f80f0fa6680dd8fe7606e7d9b6a908ddaaf4.tar.bz2
platform_cts-b803f80f0fa6680dd8fe7606e7d9b6a908ddaaf4.zip
Automated accessibility CTS tests and added more tests.
1. Added test runners for the two accessibility sets of tests to the cts-tradefed test types. While these runners are specific to the accessibility tests, the CTS maintainers are fine adding specific tests to the CTS tradefed library since there is already such a precedent and it is not common for someone to need adding custom runners. 2. Modified the build rule for a CTS package to take as an argument a runner class name. This enabled the package to specify which runner to invoke the tests in it. 3. Added tests for the accessibility API to maximize CTS test coverage. Currently not tested are interfaces and callbacks invoked by the system. 5. The accessibility tests can be used as an example for writing tests that require modification of the secure settings or generally require execution of shell commands from the host before and after running the tests. bug:5946699 Change-Id: I3b68bff4fed846b374a88a2abe812801bd6f2c8f
Diffstat (limited to 'build/test_package.mk')
-rw-r--r--build/test_package.mk8
1 files changed, 6 insertions, 2 deletions
diff --git a/build/test_package.mk b/build/test_package.mk
index 1cf4eccc56b..e8d812bd1de 100644
--- a/build/test_package.mk
+++ b/build/test_package.mk
@@ -34,12 +34,16 @@ $(cts_package_xml): PRIVATE_INSTRUMENTATION := $(LOCAL_INSTRUMENTATION_FOR)
$(cts_package_xml): PRIVATE_PACKAGE := $(LOCAL_PACKAGE_NAME)
$(cts_package_xml): PRIVATE_TEST_PACKAGE := android.$(notdir $(LOCAL_PATH))
$(cts_package_xml): PRIVATE_MANIFEST := $(LOCAL_PATH)/AndroidManifest.xml
+$(cts_package_xml): PRIVATE_TEST_TYPE := $(if $(LOCAL_CTS_TEST_RUNNER),$(LOCAL_CTS_TEST_RUNNER),'')
$(cts_package_xml): $(call intermediates-dir-for,APPS,$(LOCAL_PACKAGE_NAME))/package.apk $(CTS_EXPECTATIONS) $(CTS_JAVA_TEST_SCANNER_DOCLET) $(CTS_JAVA_TEST_SCANNER) $(CTS_XML_GENERATOR)
$(hide) echo Generating test description for java package $(PRIVATE_PACKAGE)
$(hide) mkdir -p $(CTS_TESTCASES_OUT)
- $(hide) $(CTS_JAVA_TEST_SCANNER) -s $(PRIVATE_PATH) \
+ $(hide) $(CTS_JAVA_TEST_SCANNER) \
+ -s $(PRIVATE_PATH) \
-d $(CTS_JAVA_TEST_SCANNER_DOCLET) | \
- $(CTS_XML_GENERATOR) -m $(PRIVATE_MANIFEST) \
+ $(CTS_XML_GENERATOR) \
+ -t $(PRIVATE_TEST_TYPE) \
+ -m $(PRIVATE_MANIFEST) \
-i "$(PRIVATE_INSTRUMENTATION)" \
-n $(PRIVATE_PACKAGE) \
-p $(PRIVATE_TEST_PACKAGE) \