Index: samples/tests/dartc/test_config.dart |
diff --git a/samples/tests/dartc/test_config.dart b/samples/tests/dartc/test_config.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a9b575ecb80e5bd3b70bc6a9cea96f198dd8acc5 |
--- /dev/null |
+++ b/samples/tests/dartc/test_config.dart |
@@ -0,0 +1,51 @@ |
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+#library("client_dartc_test_config"); |
+ |
+#import("../../../tools/testing/dart/test_suite.dart"); |
+ |
+class SamplesDartcTestSuite extends DartcCompilationTestSuite { |
+ SamplesDartcTestSuite(Map configuration) |
+ : super(configuration, |
+ 'dartc', |
+ 'samples', |
+ [ 'actors', |
+ 'belay', |
+ 'calculator', |
+ 'chat', |
+ 'clock', |
+ 'dartcombat', |
+ 'hi', |
+ 'isolate', |
+ 'isolate_html', |
+ 'leap', |
+ 'logo', |
+ 'markdown', |
+ 'matrix', |
+ 'pond', |
+ 'proxy', |
+ 'sample_extension', |
+ 'slider', |
+ 'spirodraw', |
+ 'sunflower', |
+ 'swarm', |
+ 'tests', |
+ 'third_party', |
+ 'time', |
+ 'total', |
+ 'ui_lib', |
+ ], |
+ ['samples/tests/dartc/dartc.status']); |
+ |
+ bool isTestFile(String filename) { |
+ if (!filename.endsWith(".dart")) return false; |
+ // Using readOptionsFromFile here causes the file to be read twice, |
+ // because readOptionsFromFile is called again in the superclass. |
+ // Avoid this in new code. |
+ return readOptionsFromFile(filename)["containsLeadingHash"]; |
+ } |
+ |
+ bool listRecursively() => true; |
+} |