Home
last modified time | relevance | path

Searched refs:TestInfo (Results 1 – 25 of 54) sorted by relevance

123

/tools/tradefederation/core/src/com/android/tradefed/util/testmapping/
DTestMapping.java68 private Map<String, Set<TestInfo>> mTestCollection = null;
112 Set<TestInfo> testsForGroup = new HashSet<>(); in TestMapping()
126 TestInfo test = in TestMapping()
127 new TestInfo( in TestMapping()
194 public Set<TestInfo> getTests( in getTests()
196 Set<TestInfo> tests = new HashSet<TestInfo>(); in getTests()
198 for (TestInfo test : mTestCollection.getOrDefault(testGroup, new HashSet<>())) { in getTests()
236 private static Set<TestInfo> mergeTests(Set<TestInfo> tests) { in mergeTests()
237 Map<String, List<TestInfo>> testsGroupedbyNameAndHost = in mergeTests()
241 TestInfo::getNameAndHostOnly, Collectors.toList())); in mergeTests()
[all …]
DTestInfo.java30 public class TestInfo { class
43 public TestInfo(String name, String source, boolean hostOnly) { in TestInfo() method in TestInfo
47 public TestInfo(String name, String source, boolean hostOnly, Set<String> keywords) { in TestInfo() method in TestInfo
101 public void merge(TestInfo test) { in merge()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/testmapping/
DTestMappingTest.java69 Set<TestInfo> tests = in testparseTestMapping()
74 for (TestInfo test : tests) { in testparseTestMapping()
83 for (TestInfo test : tests) { in testparseTestMapping()
97 for (TestInfo test : tests) { in testparseTestMapping()
111 for (TestInfo test : tests) { in testparseTestMapping()
133 Set<TestInfo> tests = in testparseTestMapping_BadJson()
169 Set<TestInfo> tests = TestMapping.getTests(mockBuildInfo, "presubmit", false, null); in testGetTests()
175 for (TestInfo test : tests) { in testGetTests()
221 Set<TestInfo> tests = in testGetTests_matchKeywords()
324 TestInfo test1 = new TestInfo("test1", "folder1", false); in testMergeFailByName()
[all …]
DTestInfoTest.java37 TestInfo info = new TestInfo("test1", "folder1", false, keywords); in testAddOption()
/tools/asuite/atest/
Dunittest_constants.py65 MODULE_INFO = test_info.TestInfo(MODULE_NAME,
69 MODULE_INFO2 = test_info.TestInfo(MODULE2_NAME,
91 CLASS_INFO = test_info.TestInfo(MODULE_NAME,
100 CLASS_INFO2 = test_info.TestInfo(MODULE2_NAME,
106 PACKAGE_INFO = test_info.TestInfo(MODULE_NAME,
110 PATH_INFO = test_info.TestInfo(MODULE_NAME,
114 EMPTY_PATH_INFO = test_info.TestInfo(MODULE_NAME,
123 METHOD_INFO = test_info.TestInfo(
132 INT_INFO = test_info.TestInfo(INT_NAME,
137 GTF_INT_INFO = test_info.TestInfo(
[all …]
Dtest_runner_handler_unittest.py42 MODULE_INFO_A = test_info.TestInfo(MODULE_NAME_A, FAKE_TR_NAME_A, set())
43 MODULE_INFO_A_AGAIN = test_info.TestInfo(MODULE_NAME_A_AGAIN, FAKE_TR_NAME_A,
45 MODULE_INFO_B = test_info.TestInfo(MODULE_NAME_B, FAKE_TR_NAME_B, set())
46 MODULE_INFO_B_AGAIN = test_info.TestInfo(MODULE_NAME_B_AGAIN, FAKE_TR_NAME_B,
48 BAD_TESTINFO = test_info.TestInfo('bad_name', MISSING_TR_NAME, set())
Datest_unittest.py173 t_info = test_info.TestInfo(test_name, 'mock_runner', build_targets)
226 no_install_test_info = test_info.TestInfo(
229 host_test_info = test_info.TestInfo(
232 device_test_info = test_info.TestInfo(
235 both_test_info = test_info.TestInfo(
/tools/tradefederation/core/atest/
Dunittest_constants.py62 MODULE_INFO = test_info.TestInfo(MODULE_NAME,
66 MODULE_INFO2 = test_info.TestInfo(MODULE2_NAME,
88 CLASS_INFO = test_info.TestInfo(MODULE_NAME,
97 CLASS_INFO2 = test_info.TestInfo(MODULE2_NAME,
103 PACKAGE_INFO = test_info.TestInfo(MODULE_NAME,
107 PATH_INFO = test_info.TestInfo(MODULE_NAME,
111 EMPTY_PATH_INFO = test_info.TestInfo(MODULE_NAME,
120 METHOD_INFO = test_info.TestInfo(
129 INT_INFO = test_info.TestInfo(INT_NAME,
134 GTF_INT_INFO = test_info.TestInfo(
[all …]
Dtest_runner_handler_unittest.py39 MODULE_INFO_A = test_info.TestInfo(MODULE_NAME_A, FAKE_TR_NAME_A, set())
40 MODULE_INFO_A_AGAIN = test_info.TestInfo(MODULE_NAME_A_AGAIN, FAKE_TR_NAME_A,
42 MODULE_INFO_B = test_info.TestInfo(MODULE_NAME_B, FAKE_TR_NAME_B, set())
43 MODULE_INFO_B_AGAIN = test_info.TestInfo(MODULE_NAME_B_AGAIN, FAKE_TR_NAME_B,
45 BAD_TESTINFO = test_info.TestInfo('bad_name', MISSING_TR_NAME, set())
Datest_unittest.py173 t_info = test_info.TestInfo(test_name, 'mock_runner', build_targets)
226 no_install_test_info = test_info.TestInfo(
229 host_test_info = test_info.TestInfo(
232 device_test_info = test_info.TestInfo(
235 both_test_info = test_info.TestInfo(
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DTestMappingSuiteRunner.java24 import com.android.tradefed.util.testmapping.TestInfo;
111 Set<TestInfo> testInfosToRun = new HashSet<>(); in loadTests()
156 for (TestInfo testInfo : testInfosToRun) { in loadTests()
175 Set<TestInfo> testInfos = getTestInfos(testInfosToRun, moduleName); in loadTests()
197 List<IRemoteTest> createIndividualTests(Set<TestInfo> testInfos, String configPath, IAbi abi) { in createIndividualTests()
208 for (TestInfo testInfo : testInfos) { in createIndividualTests()
238 List<String> getTestSources(Set<TestInfo> testInfos) { in getTestSources()
240 for (TestInfo testInfo : testInfos) { in getTestSources()
252 void parseOptions(TestInfo testInfo) { in parseOptions()
300 Set<TestInfo> dedupTestInfos(Set<TestInfo> testInfos) { in dedupTestInfos()
[all …]
/tools/tradefederation/contrib/src/com/android/media/tests/
DCameraLatencyTest.java77 private List<TestInfo> mTestCases = new ArrayList<>();
87 static class TestInfo { class in CameraLatencyTest
105 TestInfo t = new TestInfo(); in testInfoSetup()
129 t = new TestInfo(); in testInfoSetup()
149 for (TestInfo test : mTestCases) { in run()
158 private void executeTest(TestInfo test, ITestInvocationListener listener) in executeTest()
198 private void logOutputFile(TestInfo test, ITestInvocationListener listener) in logOutputFile()
229 private void parseOutputFile(TestInfo test, InputStream dataStream, in parseOutputFile()
272 void reportMetrics(ITestInvocationListener listener, TestInfo test, in reportMetrics()
296 private TestInfo mTestInfo = null;
[all …]
DCameraStressTest.java81 private List<TestInfo> mTestCases = new ArrayList<>();
90 static class TestInfo { class in CameraStressTest
135 TestInfo t = new TestInfo(); in testInfoSetup()
156 t = new TestInfo(); in testInfoSetup()
165 t = new TestInfo(); in testInfoSetup()
178 for (TestInfo test : mTestCases) { in run()
187 private void executeTest(TestInfo test, ITestInvocationListener listener) in executeTest()
233 private void logOutputFiles(TestInfo test, ITestInvocationListener listener) in logOutputFiles()
264 private void parseOutputFile(TestInfo test, InputStream dataStream, in parseOutputFile()
352 void reportMetrics(ITestInvocationListener listener, TestInfo test, in reportMetrics()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/presubmit/
DTestMappingsValidation.java33 import com.android.tradefed.util.testmapping.TestInfo;
99 private Map<String, Set<TestInfo>> allTests = null;
145 for (TestInfo testInfo : allTests.get(testGroup)) { in testValidTestMappingForParameterizedMainlineModules()
226 for (TestInfo testInfo : allTests.get(testGroup)) { in testTestSuiteSetting()
273 for (TestInfo test : getTestInfos(moduleName, testGroup)) { in validateFilterOption()
275 Map<Filters, Set<TestInfo>> filterTestInfos = new HashMap<>(); in validateFilterOption()
310 String filterOption, Map<Filters, Set<TestInfo>> filterTestInfos) { in getDetailedErrors()
312 Set<Map.Entry<Filters, Set<TestInfo>>> entries = filterTestInfos.entrySet(); in getDetailedErrors()
313 for (Map.Entry<Filters, Set<TestInfo>> entry : entries) { in getDetailedErrors()
314 Set<TestInfo> testInfos = entry.getValue(); in getDetailedErrors()
[all …]
/tools/asuite/atest/test_finders/
Dsuite_plan_finder_unittest.py63 want_info = test_info.TestInfo(test_name=suite_plan,
72 want_info = test_info.TestInfo(test_name=suite_plan,
106 want_info = test_info.TestInfo(test_name=suite_name,
122 want_info = test_info.TestInfo(test_name=suite_name,
158 want_info = test_info.TestInfo(test_name=suite_int_name,
169 want_info = test_info.TestInfo(test_name=suite_int_name,
180 want_info = test_info.TestInfo(test_name=suite_int_name,
Dsuite_plan_finder.py91 return test_info.TestInfo(
145 test_infos.append(test_info.TestInfo(
Dexample_finder.py34 return test_info.TestInfo(test_name=test,
/tools/tradefederation/core/atest/test_finders/
Dsuite_plan_finder_unittest.py59 want_info = test_info.TestInfo(test_name=suite_plan,
68 want_info = test_info.TestInfo(test_name=suite_plan,
102 want_info = test_info.TestInfo(test_name=suite_name,
118 want_info = test_info.TestInfo(test_name=suite_name,
154 want_info = test_info.TestInfo(test_name=suite_int_name,
165 want_info = test_info.TestInfo(test_name=suite_int_name,
176 want_info = test_info.TestInfo(test_name=suite_int_name,
Dsuite_plan_finder.py90 return test_info.TestInfo(
144 test_infos.append(test_info.TestInfo(
Dexample_finder.py35 return test_info.TestInfo(test_name=test,
/tools/tradefederation/contrib/src/com/android/wireless/tests/
DWifiStressTest.java76 private List<TestInfo> mTestList = null;
78 private static class TestInfo { class in WifiStressTest
152 TestInfo t = new TestInfo(); in setupTests()
166 t = new TestInfo(); in setupTests()
253 for (TestInfo testCase : mTestList) { in run()
277 private void logOutputFile(TestInfo test, ITestInvocationListener listener) in logOutputFile()
302 private void parseOutputFile(TestInfo test, File dataFile, ITestInvocationListener listener) { in parseOutputFile()
/tools/tradefederation/core/atest/test_runners/
Datest_tf_test_runner_unittest.py63 MODULE2_INFO = test_info.TestInfo(uc.MODULE2_NAME,
69 CLASS1_INFO = test_info.TestInfo(uc.MODULE_NAME,
75 CLASS2_INFO = test_info.TestInfo(uc.MODULE_NAME,
81 CLASS3_INFO = test_info.TestInfo(uc.MODULE_NAME,
88 CLASS4_INFO = test_info.TestInfo(uc.MODULE_NAME,
94 CLASS1_CLASS2_MODULE_INFO = test_info.TestInfo(
99 FLAT_CLASS_INFO = test_info.TestInfo(
105 FLAT2_CLASS_INFO = test_info.TestInfo(
113 CLASS2_METHOD_INFO = test_info.TestInfo(
121 METHOD_AND_CLASS2_METHOD = test_info.TestInfo(
[all …]
/tools/asuite/atest/test_runners/
Datest_tf_test_runner_unittest.py62 MODULE2_INFO = test_info.TestInfo(uc.MODULE2_NAME,
68 CLASS1_INFO = test_info.TestInfo(uc.MODULE_NAME,
74 CLASS2_INFO = test_info.TestInfo(uc.MODULE_NAME,
80 CLASS3_INFO = test_info.TestInfo(uc.MODULE_NAME,
87 CLASS4_INFO = test_info.TestInfo(uc.MODULE_NAME,
93 CLASS1_CLASS2_MODULE_INFO = test_info.TestInfo(
98 FLAT_CLASS_INFO = test_info.TestInfo(
104 FLAT2_CLASS_INFO = test_info.TestInfo(
112 CLASS2_METHOD_INFO = test_info.TestInfo(
120 METHOD_AND_CLASS2_METHOD = test_info.TestInfo(
[all …]
Dsuite_plan_test_runner_unittest.py51 t_info = test_info.TestInfo(suite_name,
84 t_info = test_info.TestInfo(suite_name,
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DTestMappingSuiteRunnerTest.java42 import com.android.tradefed.util.testmapping.TestInfo;
677 Set<TestInfo> testInfos = new HashSet<>(); in testGetTestInfos()
692 Set<TestInfo> testInfos = new HashSet<>(); in testDedupTestInfos()
697 TestInfo anotherInfo = new TestInfo("test", "folder3", false); in testDedupTestInfos()
709 Set<TestInfo> testInfos = new HashSet<>(); in testGetTestSources()
722 TestInfo info = createTestInfo("test", "path"); in testParseOptions()
739 Set<TestInfo> testInfos = new HashSet<>(); in testCreateIndividualTestsWithDifferentTestInfos()
762 Set<TestInfo> testInfos = new HashSet<>(); in testCreateIndividualTestsWithDifferentTestOptions()
764 TestInfo info = new TestInfo("test", "path", false); in testCreateIndividualTestsWithDifferentTestOptions()
902 Set<TestInfo> testInfos = new HashSet<>(); in testCreateIndividualTestsWithSameTestInfos()
[all …]

123