Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: tests/corelib/test_config.dart

Issue 8566001: Implement test selection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/standalone/test_config.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/test_config.dart
diff --git a/tests/corelib/test_config.dart b/tests/corelib/test_config.dart
index 019ded9e3ebc2f60c3da5b14872f70993a6c8fff..f6839fc400500af5a1ab3c07758c9b77ecfd6c02 100644
--- a/tests/corelib/test_config.dart
+++ b/tests/corelib/test_config.dart
@@ -46,6 +46,14 @@ class CorelibTestSuite {
void processFile(String filename) {
if (!filename.endsWith("Test.dart")) return;
+ // If patterns are given only list the files that match one of the
+ // patterns.
+ var patterns = configuration['patterns'];
+ if (!patterns.isEmpty() &&
+ !patterns.some((re) => re.hasMatch(filename))) {
+ return;
+ }
+
int start = filename.lastIndexOf(pathSeparator);
String testName = filename.substring(start + 1, filename.length - 5);
Set<String> expectations = testExpectationsMap.expectations(testName);
« no previous file with comments | « no previous file | tests/standalone/test_config.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698