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

Unified Diff: compiler/javatests/com/google/dart/compiler/TestAll.java

Issue 12328102: Update dartc tests and services_test plugins to run from the buildbot_test plugin. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: compiler/javatests/com/google/dart/compiler/TestAll.java
===================================================================
--- compiler/javatests/com/google/dart/compiler/TestAll.java (revision 0)
+++ compiler/javatests/com/google/dart/compiler/TestAll.java (revision 0)
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) 2013, the Dart project authors.
+ *
+ * Licensed under the Eclipse Public License v1.0 (the "License"); you may not use this file except
+ * in compliance with the License. You may obtain a copy of the License at
+ *
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Unless required by applicable law or agreed to in writing, software distributed under the License
+ * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
+ * or implied. See the License for the specific language governing permissions and limitations under
+ * the License.
+ */
+
+package com.google.dart.compiler;
+
+import com.google.dart.compiler.ast.AstTests;
+import com.google.dart.compiler.common.CommonTests;
+import com.google.dart.compiler.end2end.End2EndTests;
+import com.google.dart.compiler.parser.ParserTests;
+import com.google.dart.compiler.resolver.ResolverTests;
+import com.google.dart.compiler.util.UtilTests;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+public class TestAll {
+
+ public static Test suite() {
+ initSdk();
+
+ TestSuite suite = new TestSuite("Tests in " + TestAll.class.getPackage().getName());
+
+ suite.addTest(CompilerTests.suite());
+ suite.addTest(AstTests.suite());
+ suite.addTest(CommonTests.suite());
+ suite.addTest(End2EndTests.suite());
+ suite.addTest(ParserTests.suite());
+ suite.addTest(ResolverTests.suite());
+ //suite.addTest(TypeTests.suite());
+ suite.addTest(UtilTests.suite());
+
+ return suite;
+ }
+
+ private static final String DART_SDK_PROPERTY_NAME = "com.google.dart.sdk";
+ private static final String DART_SDK_ENV_VARIABLE = "DART_SDK";
+
+ private static void initSdk() {
+ String sdkProperty = System.getProperty(DART_SDK_PROPERTY_NAME);
+
+ if (sdkProperty == null) {
+ sdkProperty = System.getenv(DART_SDK_ENV_VARIABLE);
+
+ if (sdkProperty != null) {
+ System.setProperty(DART_SDK_PROPERTY_NAME, sdkProperty);
+ }
+ }
+ }
+
+}

Powered by Google App Engine
This is Rietveld 408576698