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

Side by Side Diff: tests/co19/test_config.dart

Issue 9320038: Move test.dart's check for missing test directories from co19 to general framework. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | tools/testing/dart/test_suite.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library("co19_test_config"); 5 #library("co19_test_config");
6 6
7 #import("dart:io");
8 #import("../../tools/testing/dart/test_suite.dart"); 7 #import("../../tools/testing/dart/test_suite.dart");
9 8
10 class Co19TestSuite extends StandardTestSuite { 9 class Co19TestSuite extends StandardTestSuite {
11 RegExp _testRegExp = const RegExp(@"t[0-9]{2}.dart$"); 10 RegExp _testRegExp = const RegExp(@"t[0-9]{2}.dart$");
12 11
13 Co19TestSuite(Map configuration) 12 Co19TestSuite(Map configuration)
14 : super(configuration, 13 : super(configuration,
15 "co19", 14 "co19",
16 "tests/co19/src", 15 "tests/co19/src",
17 ["tests/co19/co19-compiler.status", 16 ["tests/co19/co19-compiler.status",
18 "tests/co19/co19-runtime.status", 17 "tests/co19/co19-runtime.status",
19 "tests/co19/co19-frog.status"]); 18 "tests/co19/co19-frog.status"]);
20 19
21 // A Dart checkout may omit the check out of the co19 tests.
22 void forEachTest(Function onTest, Map testCache, String globalTempDir(),
23 [Function onDone = null]) {
24 Directory testDirectory =
25 new Directory(TestUtils.dartDir() + '/tests/co19/src');
26 if (testDirectory.existsSync()) {
27 super.forEachTest(onTest, testCache, globalTempDir, onDone);
28 } else {
29 if (onDone != null) onDone();
30 }
31 }
32
33 bool isTestFile(String filename) => _testRegExp.hasMatch(filename); 20 bool isTestFile(String filename) => _testRegExp.hasMatch(filename);
34 bool listRecursively() => true; 21 bool listRecursively() => true;
35 bool complexStatusMatching() => true; 22 bool complexStatusMatching() => true;
36 } 23 }
OLDNEW
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | tools/testing/dart/test_suite.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698