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:
@@ -234,8 +234,6 @@ class TestRunner(object):
|
|||||||
self._DoFullBuild(tests)
|
self._DoFullBuild(tests)
|
||||||
|
|
||||||
target_set = []
|
target_set = []
|
||||||
if self._IsCtsTests(tests):
|
|
||||||
target_set.append("cts/CtsBuild.mk")
|
|
||||||
|
|
||||||
extra_args_set = []
|
extra_args_set = []
|
||||||
for test_suite in tests:
|
for test_suite in tests:
|
||||||
|
|||||||
@@ -258,12 +258,6 @@ See test_defs.xsd for more information.
|
|||||||
package="android.tests.sigtest.tests"
|
package="android.tests.sigtest.tests"
|
||||||
suite="cts" />
|
suite="cts" />
|
||||||
|
|
||||||
<test name="cts-apidemos"
|
|
||||||
build_path="cts/tests/ApiDemosReferenceTest"
|
|
||||||
package="android.apidemos.cts"
|
|
||||||
coverage_target="ApiDemos"
|
|
||||||
suite="cts" />
|
|
||||||
|
|
||||||
<test name="cts-app"
|
<test name="cts-app"
|
||||||
build_path="cts/tests/tests/app"
|
build_path="cts/tests/tests/app"
|
||||||
package="com.android.cts.app"
|
package="com.android.cts.app"
|
||||||
@@ -324,7 +318,7 @@ See test_defs.xsd for more information.
|
|||||||
<test name="cts-net"
|
<test name="cts-net"
|
||||||
build_path="cts/tests/tests/net"
|
build_path="cts/tests/tests/net"
|
||||||
package="com.android.cts.net"
|
package="com.android.cts.net"
|
||||||
runner="android.test.InstrumentationCtsTestRunner"
|
runner="android.test.InstrumentationTestRunner"
|
||||||
coverage_target="framework"
|
coverage_target="framework"
|
||||||
suite="cts" />
|
suite="cts" />
|
||||||
|
|
||||||
@@ -335,36 +329,6 @@ See test_defs.xsd for more information.
|
|||||||
coverage_target="framework"
|
coverage_target="framework"
|
||||||
suite="cts" />
|
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"
|
<test name="cts-provider"
|
||||||
build_path="cts/tests/tests/provider"
|
build_path="cts/tests/tests/provider"
|
||||||
package="com.android.cts.provider"
|
package="com.android.cts.provider"
|
||||||
@@ -572,7 +536,7 @@ See test_defs.xsd for more information.
|
|||||||
|
|
||||||
<!-- host java tests -->
|
<!-- host java tests -->
|
||||||
<test-host name="cts-appsecurity"
|
<test-host name="cts-appsecurity"
|
||||||
build_path="cts/tests/appsecurity-tests"
|
build_path="cts/hostsidetests/appsecurity"
|
||||||
class="com.android.cts.appsecurity.AppSecurityTests"
|
class="com.android.cts.appsecurity.AppSecurityTests"
|
||||||
jar_name="CtsAppSecurityTests.jar"
|
jar_name="CtsAppSecurityTests.jar"
|
||||||
suite="cts" />
|
suite="cts" />
|
||||||
|
|||||||
@@ -32,7 +32,8 @@ class HostTestSuite(test_suite.AbstractTestSuite):
|
|||||||
_JUNIT_JAR_NAME = "junit.jar"
|
_JUNIT_JAR_NAME = "junit.jar"
|
||||||
_HOSTTESTLIB_NAME = "hosttestlib.jar"
|
_HOSTTESTLIB_NAME = "hosttestlib.jar"
|
||||||
_DDMLIB_NAME = "ddmlib-prebuilt.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")
|
_JUNIT_BUILD_PATH = os.path.join("external", "junit")
|
||||||
_HOSTTESTLIB_BUILD_PATH = os.path.join("development", "tools", "hosttestlib")
|
_HOSTTESTLIB_BUILD_PATH = os.path.join("development", "tools", "hosttestlib")
|
||||||
|
|||||||
Reference in New Issue
Block a user