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
This commit is contained in:
Brian Muramatsu
2012-03-08 11:50:17 -08:00
parent 45678a32d4
commit 83f4573b4a
3 changed files with 4 additions and 41 deletions

View File

@@ -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:

View File

@@ -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" />

View File

@@ -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")