diff options
| author | Brian Muramatsu <btmura@google.com> | 2012-03-08 11:50:17 -0800 |
|---|---|---|
| committer | Brian Muramatsu <btmura@google.com> | 2012-03-08 11:50:17 -0800 |
| commit | 83f4573b4a7cf4b673dbd897c73dd4c1a474392b (patch) | |
| tree | 056b2ef2f002bd3f5fbc8f638d916e74f4af6b50 /testrunner | |
| parent | 45678a32d4f077bf675e8fa1852426ca0e0ac292 (diff) | |
| download | android_development-83f4573b4a7cf4b673dbd897c73dd4c1a474392b.tar.gz android_development-83f4573b4a7cf4b673dbd897c73dd4c1a474392b.tar.bz2 android_development-83f4573b4a7cf4b673dbd897c73dd4c1a474392b.zip | |
Fixes for runtest
- No need to include cts/CtsBuild.mk, because that is included by the
core build system.
- Include the tradefed-prebuilt.jar on the classpath when running
host side tests.
- Update some of test_defs that have changed. Remove suites that
have been deleted.
Change-Id: Ie2845db7f209ad4ccb881d2ad47b9415c9f518a4
Diffstat (limited to 'testrunner')
| -rwxr-xr-x | testrunner/runtest.py | 2 | ||||
| -rw-r--r-- | testrunner/test_defs.xml | 40 | ||||
| -rw-r--r-- | testrunner/test_defs/host_test.py | 3 |
3 files changed, 4 insertions, 41 deletions
diff --git a/testrunner/runtest.py b/testrunner/runtest.py index 5730928ea..df7f66ab1 100755 --- a/testrunner/runtest.py +++ b/testrunner/runtest.py @@ -234,8 +234,6 @@ class TestRunner(object): self._DoFullBuild(tests) target_set = [] - if self._IsCtsTests(tests): - target_set.append("cts/CtsBuild.mk") extra_args_set = [] for test_suite in tests: diff --git a/testrunner/test_defs.xml b/testrunner/test_defs.xml index ed1934e88..4de369b12 100644 --- a/testrunner/test_defs.xml +++ b/testrunner/test_defs.xml @@ -258,12 +258,6 @@ See test_defs.xsd for more information. package="android.tests.sigtest.tests" suite="cts" /> -<test name="cts-apidemos" - build_path="cts/tests/ApiDemosReferenceTest" - package="android.apidemos.cts" - coverage_target="ApiDemos" - suite="cts" /> - <test name="cts-app" build_path="cts/tests/tests/app" package="com.android.cts.app" @@ -324,7 +318,7 @@ See test_defs.xsd for more information. <test name="cts-net" build_path="cts/tests/tests/net" package="com.android.cts.net" - runner="android.test.InstrumentationCtsTestRunner" + runner="android.test.InstrumentationTestRunner" coverage_target="framework" suite="cts" /> @@ -335,36 +329,6 @@ See test_defs.xsd for more information. coverage_target="framework" suite="cts" /> -<test name="cts-perf1" - build_path="cts/tests/tests/performance" - package="com.android.cts.performance" - runner="android.test.InstrumentationCtsTestRunner" - suite="cts" /> - -<test name="cts-perf2" - build_path="cts/tests/tests/performance2" - package="com.android.cts.performance2" - runner="android.test.InstrumentationCtsTestRunner" - suite="cts" /> - -<test name="cts-perf3" - build_path="cts/tests/tests/performance3" - package="com.android.cts.performance3" - runner="android.test.InstrumentationCtsTestRunner" - suite="cts" /> - -<test name="cts-perf4" - build_path="cts/tests/tests/performance4" - package="com.android.cts.performance4" - runner="android.test.InstrumentationCtsTestRunner" - suite="cts" /> - -<test name="cts-perf5" - build_path="cts/tests/tests/performance5" - package="com.android.cts.performance5" - runner="android.test.InstrumentationCtsTestRunner" - suite="cts" /> - <test name="cts-provider" build_path="cts/tests/tests/provider" package="com.android.cts.provider" @@ -572,7 +536,7 @@ See test_defs.xsd for more information. <!-- host java tests --> <test-host name="cts-appsecurity" - build_path="cts/tests/appsecurity-tests" + build_path="cts/hostsidetests/appsecurity" class="com.android.cts.appsecurity.AppSecurityTests" jar_name="CtsAppSecurityTests.jar" suite="cts" /> diff --git a/testrunner/test_defs/host_test.py b/testrunner/test_defs/host_test.py index 273042ab5..ca65c2a94 100644 --- a/testrunner/test_defs/host_test.py +++ b/testrunner/test_defs/host_test.py @@ -32,7 +32,8 @@ class HostTestSuite(test_suite.AbstractTestSuite): _JUNIT_JAR_NAME = "junit.jar" _HOSTTESTLIB_NAME = "hosttestlib.jar" _DDMLIB_NAME = "ddmlib-prebuilt.jar" - _lib_names = [_JUNIT_JAR_NAME, _HOSTTESTLIB_NAME, _DDMLIB_NAME] + _TRADEFED_NAME = "tradefed-prebuilt.jar" + _lib_names = [_JUNIT_JAR_NAME, _HOSTTESTLIB_NAME, _DDMLIB_NAME, _TRADEFED_NAME] _JUNIT_BUILD_PATH = os.path.join("external", "junit") _HOSTTESTLIB_BUILD_PATH = os.path.join("development", "tools", "hosttestlib") |
