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

Unified Diff: tests/standalone/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 | « tests/corelib/test_config.dart ('k') | tools/testing/dart/test_options.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/test_config.dart
diff --git a/tests/standalone/test_config.dart b/tests/standalone/test_config.dart
index c09e01aed7a8d513b433abc13ad88b18c756c6f2..e1d700cadab6abc0e6d80e851a699afb66f71399 100644
--- a/tests/standalone/test_config.dart
+++ b/tests/standalone/test_config.dart
@@ -46,6 +46,14 @@ class StandaloneTestSuite {
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 | « tests/corelib/test_config.dart ('k') | tools/testing/dart/test_options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698