| OLD | NEW |
| 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("StatusFileParserTest"); | 5 #library("StatusFileParserTest"); |
| 6 | 6 |
| 7 #import("dart:io"); |
| 7 #import("../../../tools/testing/dart/status_file_parser.dart"); | 8 #import("../../../tools/testing/dart/status_file_parser.dart"); |
| 8 | 9 |
| 9 | 10 |
| 10 void main() { | 11 void main() { |
| 11 TestReadStatusFile("tests/co19/co19-compiler.status"); | 12 TestReadStatusFile("tests/co19/co19-compiler.status"); |
| 12 TestReadStatusFile("tests/co19/co19-runtime.status"); | 13 TestReadStatusFile("tests/co19/co19-runtime.status"); |
| 13 TestReadStatusFile("tests/corelib/corelib.status"); | 14 TestReadStatusFile("tests/corelib/corelib.status"); |
| 14 TestReadStatusFile("tests/isolate/isolate.status"); | 15 TestReadStatusFile("tests/isolate/isolate.status"); |
| 15 TestReadStatusFile("tests/language/language.status"); | 16 TestReadStatusFile("tests/language/language.status"); |
| 16 TestReadStatusFile("tests/standalone/standalone.status"); | 17 TestReadStatusFile("tests/standalone/standalone.status"); |
| 17 TestReadStatusFile("tests/stub-generator/stub-generator.status"); | 18 TestReadStatusFile("tests/stub-generator/stub-generator.status"); |
| 18 TestReadStatusFile("samples/tests/samples/samples.status"); | 19 TestReadStatusFile("samples/tests/samples/samples.status"); |
| 19 TestReadStatusFile("runtime/tests/vm/vm.status"); | 20 TestReadStatusFile("runtime/tests/vm/vm.status"); |
| 20 TestReadStatusFile("frog/tests/frog/frog.status"); | 21 TestReadStatusFile("frog/tests/frog/frog.status"); |
| 21 TestReadStatusFile("compiler/tests/dartc/dartc.status"); | 22 TestReadStatusFile("compiler/tests/dartc/dartc.status"); |
| 22 TestReadStatusFile("client/tests/client/client.status"); | 23 TestReadStatusFile("client/tests/client/client.status"); |
| 23 TestReadStatusFile("client/tests/dartc/dartc.status"); | 24 TestReadStatusFile("client/tests/dartc/dartc.status"); |
| 24 } | 25 } |
| 25 | 26 |
| 26 | 27 |
| 27 void TestReadStatusFile(String filePath) { | 28 void TestReadStatusFile(String filePath) { |
| 28 File file = new File(getFilename(filePath)); | 29 File file = new File(getFilename(filePath)); |
| 29 if (file.existsSync()) { | 30 if (file.existsSync()) { |
| 30 List<Section> sections = new List<Section>(); | 31 List<Section> sections = new List<Section>(); |
| 31 ReadConfigurationInto(filePath, sections, () { | 32 ReadConfigurationInto(filePath, sections, () { |
| 32 Expect.isTrue(sections.length > 0); | 33 Expect.isTrue(sections.length > 0); |
| 33 }); | 34 }); |
| 34 } | 35 } |
| 35 } | 36 } |
| OLD | NEW |