Home
last modified time | relevance | path

Searched refs:uc (Results 1 – 25 of 26) sorted by relevance

12

/tools/asuite/atest/tools/
Datest_tools_unittest.py29 import unittest_constants as uc namespace
33 SEARCH_ROOT = uc.TEST_DATA_DIR
34 PRUNEPATH = uc.TEST_CONFIG_DATA_DIR
41 @mock.patch('constants.LOCATE_CACHE', uc.LOCATE_CACHE)
42 @mock.patch('tools.atest_tools.SEARCH_TOP', uc.TEST_DATA_DIR)
48 mock_testable_mod.return_value = {uc.MODULE_NAME, uc.MODULE2_NAME}
51 atest_tools.run_updatedb(SEARCH_ROOT, uc.LOCATE_CACHE,
54 locate_cmd1 = [LOCATE, '-d', uc.LOCATE_CACHE, '/a.xml']
63 locate_cmd2 = [LOCATE, '-d', uc.LOCATE_CACHE, 'module-info.json']
67 atest_tools.index_targets(uc.LOCATE_CACHE,
[all …]
/tools/tradefederation/core/atest/tools/
Datest_tools_unittest.py30 import unittest_constants as uc namespace
32 SEARCH_ROOT = uc.TEST_DATA_DIR
33 PRUNEPATH = uc.TEST_CONFIG_DATA_DIR
40 @mock.patch('constants.LOCATE_CACHE', uc.LOCATE_CACHE)
41 @mock.patch('tools.atest_tools.SEARCH_TOP', uc.TEST_DATA_DIR)
47 mock_testable_mod.return_value = {uc.MODULE_NAME, uc.MODULE2_NAME}
50 atest_tools.run_updatedb(SEARCH_ROOT, uc.LOCATE_CACHE,
53 locate_cmd1 = [LOCATE, '-d', uc.LOCATE_CACHE, '/a.xml']
61 locate_cmd2 = [LOCATE, '-d', uc.LOCATE_CACHE, 'module-info.json']
65 atest_tools.index_targets(uc.LOCATE_CACHE,
[all …]
/tools/tradefederation/core/atest/test_finders/
Dmodule_finder_unittest.py28 import unittest_constants as uc namespace
35 MODULE_CLASS = '%s:%s' % (uc.MODULE_NAME, uc.CLASS_NAME)
36 MODULE_PACKAGE = '%s:%s' % (uc.MODULE_NAME, uc.PACKAGE)
37 CC_MODULE_CLASS = '%s:%s' % (uc.CC_MODULE_NAME, uc.CC_CLASS_NAME)
42 KERNEL_CONFIG_FILE = os.path.join(uc.TEST_DATA_DIR, KERNEL_TEST_CONFIG)
49 uc.CLASS_BUILD_TARGETS, KERNEL_MODULE_CLASS_DATA)
51 uc.MODULE_NAME,
53 uc.MODULE_BUILD_TARGETS,
54 data={constants.TI_FILTER: frozenset([uc.FLAT_METHOD_FILTER]),
55 constants.TI_REL_CONFIG: uc.CONFIG_FILE})
[all …]
Dtf_integration_finder_unittest.py25 import unittest_constants as uc namespace
33 INT_NAME_CLASS = uc.INT_NAME + ':' + uc.FULL_CLASS_NAME
34 INT_NAME_METHOD = INT_NAME_CLASS + '#' + uc.METHOD_NAME
35 GTF_INT_CONFIG = os.path.join(uc.GTF_INT_DIR, uc.GTF_INT_NAME + '.xml')
37 uc.INT_NAME,
40 data={constants.TI_FILTER: frozenset([uc.CLASS_FILTER]),
41 constants.TI_REL_CONFIG: uc.INT_CONFIG})
43 uc.INT_NAME,
46 data={constants.TI_FILTER: frozenset([uc.METHOD_FILTER]),
47 constants.TI_REL_CONFIG: uc.INT_CONFIG})
[all …]
Dtest_finder_utils_unittest.py27 import unittest_constants as uc namespace
35 INT_DIR1 = os.path.join(uc.TEST_DATA_DIR, 'integration_dir_testing/int_dir1')
36 INT_DIR2 = os.path.join(uc.TEST_DATA_DIR, 'integration_dir_testing/int_dir2')
38 FIND_TWO = uc.ROOT + 'other/dir/test.java\n' + uc.FIND_ONE
63 VTS_PLAN_TARGETS = {os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-staging-default.xml'),
64 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-aa.xml'),
65 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-bb.xml'),
66 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-cc.xml'),
67 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-dd.xml')}
125 paths = [os.path.join(uc.ROOT, CLASS_DIR, uc.CLASS_NAME + '.java')]
[all …]
Dsuite_plan_finder_unittest.py23 import unittest_constants as uc namespace
38 self.suite_plan_finder.suite_plan_dirs = [os.path.join(uc.ROOT, uc.CTS_INT_DIR)]
39 self.suite_plan_finder.root_dir = uc.ROOT
58 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_plan+'.xml')
67 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_plan+'.xml')
76 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, 'cts-common.xml')
81 path = os.path.join(uc.ROOT, 'cts-common.xml')
116 _search.return_value = [os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_name + '.xml')]
151 path = os.path.join(uc.CTS_INT_DIR, suite_int_name + '.xml')
152 _find.return_value = uc.CTS_INT_DIR
[all …]
Dcache_finder_unittest.py25 import unittest_constants as uc namespace
42 test_cache_root = os.path.join(uc.TEST_DATA_DIR, 'cache_root')
/tools/asuite/atest/test_finders/
Dmodule_finder_unittest.py30 import unittest_constants as uc namespace
38 MODULE_CLASS = '%s:%s' % (uc.MODULE_NAME, uc.CLASS_NAME)
39 MODULE_PACKAGE = '%s:%s' % (uc.MODULE_NAME, uc.PACKAGE)
40 CC_MODULE_CLASS = '%s:%s' % (uc.CC_MODULE_NAME, uc.CC_CLASS_NAME)
45 KERNEL_CONFIG_FILE = os.path.join(uc.TEST_DATA_DIR, KERNEL_TEST_CONFIG)
52 uc.CLASS_BUILD_TARGETS, KERNEL_MODULE_CLASS_DATA)
54 uc.MODULE_NAME,
56 uc.MODULE_BUILD_TARGETS,
57 data={constants.TI_FILTER: frozenset([uc.FLAT_METHOD_FILTER]),
58 constants.TI_REL_CONFIG: uc.CONFIG_FILE})
[all …]
Dtf_integration_finder_unittest.py27 import unittest_constants as uc namespace
36 INT_NAME_CLASS = uc.INT_NAME + ':' + uc.FULL_CLASS_NAME
37 INT_NAME_METHOD = INT_NAME_CLASS + '#' + uc.METHOD_NAME
38 GTF_INT_CONFIG = os.path.join(uc.GTF_INT_DIR, uc.GTF_INT_NAME + '.xml')
40 uc.INT_NAME,
43 data={constants.TI_FILTER: frozenset([uc.CLASS_FILTER]),
44 constants.TI_REL_CONFIG: uc.INT_CONFIG})
46 uc.INT_NAME,
49 data={constants.TI_FILTER: frozenset([uc.METHOD_FILTER]),
50 constants.TI_REL_CONFIG: uc.INT_CONFIG})
[all …]
Dtest_finder_utils_unittest.py29 import unittest_constants as uc namespace
38 INT_DIR1 = os.path.join(uc.TEST_DATA_DIR, 'integration_dir_testing/int_dir1')
39 INT_DIR2 = os.path.join(uc.TEST_DATA_DIR, 'integration_dir_testing/int_dir2')
41 FIND_TWO = uc.ROOT + 'other/dir/test.java\n' + uc.FIND_ONE
66 VTS_PLAN_TARGETS = {os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-staging-default.xml'),
67 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-aa.xml'),
68 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-bb.xml'),
69 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-cc.xml'),
70 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-dd.xml')}
128 paths = [os.path.join(uc.ROOT, CLASS_DIR, uc.CLASS_NAME + '.java')]
[all …]
Dsuite_plan_finder_unittest.py26 import unittest_constants as uc namespace
42 self.suite_plan_finder.suite_plan_dirs = [os.path.join(uc.ROOT, uc.CTS_INT_DIR)]
43 self.suite_plan_finder.root_dir = uc.ROOT
62 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_plan+'.xml')
71 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_plan+'.xml')
80 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, 'cts-common.xml')
85 path = os.path.join(uc.ROOT, 'cts-common.xml')
120 _search.return_value = [os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_name + '.xml')]
155 path = os.path.join(uc.CTS_INT_DIR, suite_int_name + '.xml')
156 _find.return_value = uc.CTS_INT_DIR
[all …]
Dcache_finder_unittest.py27 import unittest_constants as uc namespace
45 test_cache_root = os.path.join(uc.TEST_DATA_DIR, 'cache_root')
/tools/asuite/atest/
Dcli_translator_unittest.py35 import unittest_constants as uc namespace
44 TEST_MAPPING_TOP_DIR = os.path.join(uc.TEST_DATA_DIR, 'test_mapping')
65 if test_name == uc.MODULE_NAME:
66 test_infos.add(uc.MODULE_INFO)
67 if test_name == uc.CLASS_NAME:
68 test_infos.add(uc.CLASS_INFO)
95 reload(uc)
107 find_method_return_module_info = lambda x, y: uc.MODULE_INFOS
109 find_method_return_module_class_info = (lambda x, test: uc.MODULE_INFOS
110 if test == uc.MODULE_NAME
[all …]
Dtest_mapping_unittest.py26 import unittest_constants as uc namespace
34 detail = test_mapping.TestDetail(uc.TEST_MAPPING_TEST)
35 self.assertEqual(uc.TEST_MAPPING_TEST['name'], detail.name)
41 detail = test_mapping.TestDetail(uc.TEST_MAPPING_TEST_WITH_OPTION)
42 self.assertEqual(uc.TEST_MAPPING_TEST_WITH_OPTION['name'], detail.name)
43 self.assertEqual(uc.TEST_MAPPING_TEST_WITH_OPTION_STR, str(detail))
48 test_mapping.TestDetail(uc.TEST_MAPPING_TEST_WITH_BAD_OPTION)
55 test_mapping.TestDetail(uc.TEST_MAPPING_TEST_WITH_BAD_HOST_VALUE)
Dunittest_utils.py22 import unittest_constants as uc namespace
87 if value == '/%s/%s' % (uc.CC_MODULE_DIR, constants.MODULE_CONFIG):
89 if value == '/%s/%s' % (uc.MODULE_DIR, constants.MODULE_CONFIG):
99 if value.endswith(uc.INT_NAME + '.xml'):
101 if value.endswith(uc.GTF_INT_NAME + '.xml'):
108 return os.path.join(uc.ROOT, path)
Dmodule_info_unittest.py29 import unittest_constants as uc namespace
31 JSON_FILE_PATH = os.path.join(uc.TEST_DATA_DIR, uc.JSON_FILE)
197 uc.DEFAULT_INSTALL_PATH}
214 info = {constants.MODULE_PATH:[uc.TEST_DATA_DIR]}
224 info2 = {constants.MODULE_PATH:[uc.TEST_CONFIG_DATA_DIR],
225 constants.MODULE_TEST_CONFIG:[os.path.join(uc.TEST_CONFIG_DATA_DIR, "a.xml")]}
Dbug_detector_unittest.py30 import unittest_constants as uc namespace
48 self.history_file = os.path.join(uc.TEST_DATA_DIR, 'bug_detector.json')
51 self.history_file2 = os.path.join(uc.TEST_DATA_DIR, 'bug_detector2.json')
/tools/tradefederation/core/atest/
Dcli_translator_unittest.py30 import unittest_constants as uc namespace
43 TEST_MAPPING_TOP_DIR = os.path.join(uc.TEST_DATA_DIR, 'test_mapping')
64 if test_name == uc.MODULE_NAME:
65 test_infos.add(uc.MODULE_INFO)
66 if test_name == uc.CLASS_NAME:
67 test_infos.add(uc.CLASS_INFO)
94 reload(uc)
106 find_method_return_module_info = lambda x, y: uc.MODULE_INFOS
108 find_method_return_module_class_info = (lambda x, test: uc.MODULE_INFOS
109 if test == uc.MODULE_NAME
[all …]
Dtest_mapping_unittest.py23 import unittest_constants as uc namespace
31 detail = test_mapping.TestDetail(uc.TEST_MAPPING_TEST)
32 self.assertEqual(uc.TEST_MAPPING_TEST['name'], detail.name)
38 detail = test_mapping.TestDetail(uc.TEST_MAPPING_TEST_WITH_OPTION)
39 self.assertEqual(uc.TEST_MAPPING_TEST_WITH_OPTION['name'], detail.name)
40 self.assertEqual(uc.TEST_MAPPING_TEST_WITH_OPTION_STR, str(detail))
45 test_mapping.TestDetail(uc.TEST_MAPPING_TEST_WITH_BAD_OPTION)
52 test_mapping.TestDetail(uc.TEST_MAPPING_TEST_WITH_BAD_HOST_VALUE)
Dunittest_utils.py22 import unittest_constants as uc namespace
83 if value == '/%s/%s' % (uc.CC_MODULE_DIR, constants.MODULE_CONFIG):
85 if value == '/%s/%s' % (uc.MODULE_DIR, constants.MODULE_CONFIG):
95 if value.endswith(uc.INT_NAME + '.xml'):
97 if value.endswith(uc.GTF_INT_NAME + '.xml'):
104 return os.path.join(uc.ROOT, path)
Dmodule_info_unittest.py25 import unittest_constants as uc namespace
27 JSON_FILE_PATH = os.path.join(uc.TEST_DATA_DIR, uc.JSON_FILE)
192 uc.DEFAULT_INSTALL_PATH}
208 info = {constants.MODULE_PATH:[uc.TEST_DATA_DIR]}
218 info2 = {constants.MODULE_PATH:[uc.TEST_CONFIG_DATA_DIR],
219 constants.MODULE_TEST_CONFIG:[os.path.join(uc.TEST_CONFIG_DATA_DIR, "a.xml")]}
Dbug_detector_unittest.py27 import unittest_constants as uc namespace
45 self.history_file = os.path.join(uc.TEST_DATA_DIR, 'bug_detector.json')
48 self.history_file2 = os.path.join(uc.TEST_DATA_DIR, 'bug_detector2.json')
/tools/tradefederation/core/atest/test_runners/
Datest_tf_test_runner_unittest.py28 import unittest_constants as uc namespace
57 METHOD2_FILTER = test_info.TestFilter(uc.FULL_CLASS_NAME, frozenset([uc.METHOD2_NAME]))
62 frozenset([uc.METHOD_NAME, uc.METHOD2_NAME]))
63 MODULE2_INFO = test_info.TestInfo(uc.MODULE2_NAME,
66 data={constants.TI_REL_CONFIG: uc.CONFIG2_FILE,
69 CLASS1_INFO = test_info.TestInfo(uc.MODULE_NAME,
72 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE,
73 constants.TI_FILTER: frozenset([uc.CLASS_FILTER])})
75 CLASS2_INFO = test_info.TestInfo(uc.MODULE_NAME,
78 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE,
[all …]
/tools/asuite/atest/test_runners/
Datest_tf_test_runner_unittest.py31 import unittest_constants as uc namespace
56 METHOD2_FILTER = test_info.TestFilter(uc.FULL_CLASS_NAME, frozenset([uc.METHOD2_NAME]))
61 frozenset([uc.METHOD_NAME, uc.METHOD2_NAME]))
62 MODULE2_INFO = test_info.TestInfo(uc.MODULE2_NAME,
65 data={constants.TI_REL_CONFIG: uc.CONFIG2_FILE,
68 CLASS1_INFO = test_info.TestInfo(uc.MODULE_NAME,
71 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE,
72 constants.TI_FILTER: frozenset([uc.CLASS_FILTER])})
74 CLASS2_INFO = test_info.TestInfo(uc.MODULE_NAME,
77 data={constants.TI_REL_CONFIG: uc.CONFIG_FILE,
[all …]
/tools/repohooks/tools/
Dcpplint.py4286 for uc in unicodedata.normalize('NFC', line):
4287 if unicodedata.east_asian_width(uc) in ('W', 'F'):
4289 elif not unicodedata.combining(uc):

12