| /******************************************************************************* |
| * Copyright (c) 2000, 2004 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Common Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/cpl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.jdt.core.tests.eval; |
| |
| import java.util.ArrayList; |
| |
| import org.eclipse.jdt.core.tests.util.AbstractCompilerTest; |
| |
| import junit.framework.Test; |
| import junit.framework.TestSuite; |
| /** |
| * Run all tests defined in this package. |
| */ |
| public class TestAll extends EvaluationTest { |
| public TestAll(String name) { |
| super(name); |
| } |
| public static Test suite() { |
| if (System.getProperty("os.name").indexOf("Linux") == -1) {//$NON-NLS-1$//$NON-NLS-2$ |
| ArrayList testClasses = new ArrayList(); |
| testClasses.add(SanityTestEvaluationContext.class); |
| testClasses.add(SanityTestEvaluationResult.class); |
| testClasses.add(VariableTest.class); |
| testClasses.add(CodeSnippetTest.class); |
| testClasses.add(NegativeCodeSnippetTest.class); |
| testClasses.add(NegativeVariableTest.class); |
| testClasses.add(DebugEvaluationTest.class); |
| |
| return AbstractCompilerTest.suite(TestAll.class.getName(), DebugEvaluationSetup.class, testClasses); |
| } |
| // Disable evaluation tests on Linux |
| return new TestSuite(TestAll.class.getName()); |
| } |
| } |