OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 StatusFileParserTest; | 5 library StatusFileParserTest; |
6 | 6 |
7 import "package:expect/expect.dart"; | 7 import "package:expect/expect.dart"; |
8 import "dart:io"; | 8 import "dart:io"; |
9 import "../../../tools/testing/dart/status_file_parser.dart"; | 9 import "../../../tools/testing/dart/status_file_parser.dart"; |
10 | 10 |
11 | 11 |
12 void main() { | 12 void main() { |
13 TestReadStatusFile("client/tests/dartc/dartc.status"); | |
14 TestReadStatusFile("compiler/tests/dartc/dartc.status"); | |
15 TestReadStatusFile("frog/tests/frog/frog.status"); | |
16 TestReadStatusFile("runtime/tests/vm/vm.status"); | 13 TestReadStatusFile("runtime/tests/vm/vm.status"); |
17 TestReadStatusFile("samples/tests/samples/samples.status"); | 14 TestReadStatusFile("samples/tests/samples/samples.status"); |
18 TestReadStatusFile("tests/co19/co19-compiler.status"); | 15 TestReadStatusFile("tests/co19/co19-compiler.status"); |
19 TestReadStatusFile("tests/co19/co19-runtime.status"); | 16 TestReadStatusFile("tests/co19/co19-runtime.status"); |
20 TestReadStatusFile("tests/corelib/corelib.status"); | 17 TestReadStatusFile("tests/corelib/corelib.status"); |
21 TestReadStatusFile("tests/dom/dom.status"); | 18 TestReadStatusFile("tests/dom/dom.status"); |
22 TestReadStatusFile("tests/html/html.status"); | 19 TestReadStatusFile("tests/html/html.status"); |
23 TestReadStatusFile("tests/isolate/isolate.status"); | 20 TestReadStatusFile("tests/isolate/isolate.status"); |
24 TestReadStatusFile("tests/json/json.status"); | 21 TestReadStatusFile("tests/json/json.status"); |
25 TestReadStatusFile("tests/language/language.status"); | 22 TestReadStatusFile("tests/language/language.status"); |
(...skipping 10 matching lines...) Expand all Loading... |
36 | 33 |
37 void TestReadStatusFile(String filePath) { | 34 void TestReadStatusFile(String filePath) { |
38 File file = new File(fixedFilePath(filePath)); | 35 File file = new File(fixedFilePath(filePath)); |
39 if (file.existsSync()) { | 36 if (file.existsSync()) { |
40 List<Section> sections = new List<Section>(); | 37 List<Section> sections = new List<Section>(); |
41 ReadConfigurationInto(file.path, sections, () { | 38 ReadConfigurationInto(file.path, sections, () { |
42 Expect.isTrue(sections.length > 0); | 39 Expect.isTrue(sections.length > 0); |
43 }); | 40 }); |
44 } | 41 } |
45 } | 42 } |
OLD | NEW |