AI 143819: am: CL 143765 Rename tests.xml to test_defs.xml
Original author: brettchabot Merged from: //branches/cupcake/... Automated import of CL 143819
This commit is contained in:
committed by
The Android Open Source Project
parent
361030c1d8
commit
2d85c0eb06
@@ -10,7 +10,7 @@ LOCAL_PATH := $(call my-dir)
|
|||||||
########################
|
########################
|
||||||
include $(CLEAR_VARS)
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
LOCAL_MODULE := tests.xml
|
LOCAL_MODULE := test_defs.xml
|
||||||
LOCAL_MODULE_TAGS := tests
|
LOCAL_MODULE_TAGS := tests
|
||||||
LOCAL_MODULE_CLASS := ETC
|
LOCAL_MODULE_CLASS := ETC
|
||||||
LOCAL_MODULE_PATH := $(local_target_dir)
|
LOCAL_MODULE_PATH := $(local_target_dir)
|
||||||
|
|||||||
@@ -41,12 +41,12 @@ class TestRunner(object):
|
|||||||
|
|
||||||
# file path to android core platform tests, relative to android build root
|
# file path to android core platform tests, relative to android build root
|
||||||
# TODO move these test data files to another directory
|
# TODO move these test data files to another directory
|
||||||
_CORE_TEST_PATH = os.path.join("development", "testrunner", "tests.xml")
|
_CORE_TEST_PATH = os.path.join("development", "testrunner", "test_defs.xml")
|
||||||
|
|
||||||
# vendor glob file path patterns to tests, relative to android
|
# vendor glob file path patterns to tests, relative to android
|
||||||
# build root
|
# build root
|
||||||
_VENDOR_TEST_PATH = os.path.join("vendor", "*", "tests", "testinfo",
|
_VENDOR_TEST_PATH = os.path.join("vendor", "*", "tests", "testinfo",
|
||||||
"tests.xml")
|
"test_defs.xml")
|
||||||
|
|
||||||
_RUNTEST_USAGE = (
|
_RUNTEST_USAGE = (
|
||||||
"usage: runtest.py [options] short-test-name[s]\n\n"
|
"usage: runtest.py [options] short-test-name[s]\n\n"
|
||||||
@@ -61,7 +61,7 @@ class TestRunner(object):
|
|||||||
"""Processes command-line options."""
|
"""Processes command-line options."""
|
||||||
# TODO error messages on once-only or mutually-exclusive options.
|
# TODO error messages on once-only or mutually-exclusive options.
|
||||||
user_test_default = os.path.join(os.environ.get("HOME"), ".android",
|
user_test_default = os.path.join(os.environ.get("HOME"), ".android",
|
||||||
"tests.xml")
|
"test_defs.xml")
|
||||||
|
|
||||||
parser = optparse.OptionParser(usage=self._RUNTEST_USAGE)
|
parser = optparse.OptionParser(usage=self._RUNTEST_USAGE)
|
||||||
|
|
||||||
@@ -153,7 +153,7 @@ class TestRunner(object):
|
|||||||
try:
|
try:
|
||||||
known_tests = test_defs.TestDefinitions()
|
known_tests = test_defs.TestDefinitions()
|
||||||
known_tests.Parse(core_test_path)
|
known_tests.Parse(core_test_path)
|
||||||
# read all <android root>/vendor/*/tests/testinfo/tests.xml paths
|
# read all <android root>/vendor/*/tests/testinfo/test_defs.xml paths
|
||||||
vendor_tests_pattern = os.path.join(self._root_path,
|
vendor_tests_pattern = os.path.join(self._root_path,
|
||||||
self._VENDOR_TEST_PATH)
|
self._VENDOR_TEST_PATH)
|
||||||
test_file_paths = glob.glob(vendor_tests_pattern)
|
test_file_paths = glob.glob(vendor_tests_pattern)
|
||||||
|
|||||||
@@ -187,6 +187,21 @@ These attributes map to the following commands:
|
|||||||
runner=".MediaFrameworkUnitTestRunner"
|
runner=".MediaFrameworkUnitTestRunner"
|
||||||
coverage_target="framework" />
|
coverage_target="framework" />
|
||||||
|
|
||||||
|
<test name="musicplayer"
|
||||||
|
build_path="packages/apps/Music"
|
||||||
|
package="com.android.music.tests"
|
||||||
|
runner=".MusicPlayerFunctionalTestRunner"
|
||||||
|
coverage_target="Music"
|
||||||
|
continuous="true" />
|
||||||
|
|
||||||
|
<!-- obsolete?
|
||||||
|
<test name="mediaprov"
|
||||||
|
build_path="tests/MediaProvider"
|
||||||
|
package="com.android.mediaprovidertests"
|
||||||
|
runner=".MediaProviderTestsInstrumentation"
|
||||||
|
coverage_target="MediaProvider" />
|
||||||
|
-->
|
||||||
|
|
||||||
<test name="mms"
|
<test name="mms"
|
||||||
build_path="packages/apps/Mms"
|
build_path="packages/apps/Mms"
|
||||||
package="com.android.mms.tests"
|
package="com.android.mms.tests"
|
||||||
@@ -199,4 +214,13 @@ These attributes map to the following commands:
|
|||||||
runner="com.android.mms.SmsLaunchPerformance"
|
runner="com.android.mms.SmsLaunchPerformance"
|
||||||
coverage_target="Mms" />
|
coverage_target="Mms" />
|
||||||
|
|
||||||
|
|
||||||
|
<!-- obsolete?
|
||||||
|
<test name="ringtone"
|
||||||
|
build_path="tests/RingtoneSettings"
|
||||||
|
package="com.android.ringtonesettingstests"
|
||||||
|
runner=".RingtoneSettingsInstrumentationTestRunner"
|
||||||
|
coverage_target="Settings" />
|
||||||
|
-->
|
||||||
|
|
||||||
</test-definitions>
|
</test-definitions>
|
||||||
Reference in New Issue
Block a user