1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-05 08:05:24 +02:00

Add terminal test suites for automatic execution

This commit is contained in:
Martin Oberhuber 2008-02-13 18:03:44 +00:00
parent ff1ad7c1ef
commit f838ddaca2
5 changed files with 161 additions and 1 deletions

View file

@ -0,0 +1,36 @@
/*******************************************************************************
* Copyright (c) 2008 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Martin Oberhuber (Wind River) - initial API and implementation
*******************************************************************************/
package org.eclipse.tm.internal.terminal.emulator;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Terminal emulator test cases.
* Runs in emulator package to allow access to default visible items.
*/
public class AllTests extends TestCase {
public AllTests() {
super(null);
}
public AllTests(String name) {
super(name);
}
public static Test suite() {
TestSuite suite = new TestSuite(AllTests.class.getName());
suite.addTestSuite(VT100EmulatorBackendTest.class);
return suite;
}
}

View file

@ -0,0 +1,45 @@
/*******************************************************************************
* Copyright (c) 2008 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Martin Oberhuber (Wind River) - initial API and implementation
*******************************************************************************/
package org.eclipse.tm.internal.terminal.model;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Internal Terminal Model test cases.
* Runs in internal model package to allow access to default visible items.
*/
public class AllTests extends TestCase {
public AllTests() {
super(null);
}
public AllTests(String name) {
super(name);
}
public static Test suite() {
TestSuite suite = new TestSuite(AllTests.class.getName());
suite.addTestSuite(SnapshotChangesTest.class);
suite.addTestSuite(SynchronizedTerminalTextDataTest.class);
suite.addTestSuite(TerminalTextDataFastScrollTest.class);
suite.addTestSuite(TerminalTextDataFastScrollTestMaxHeigth.class);
suite.addTestSuite(TerminalTextDataPerformanceTest.class);
suite.addTestSuite(TerminalTextDataSnapshotTest.class);
suite.addTestSuite(TerminalTextDataSnapshotWindowTest.class);
suite.addTestSuite(TerminalTextDataStoreTest.class);
suite.addTestSuite(TerminalTextDataTest.class);
suite.addTestSuite(TerminalTextDataWindowTest.class);
return suite;
}
}

View file

@ -0,0 +1,37 @@
/*******************************************************************************
* Copyright (c) 2008 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Martin Oberhuber (Wind River) - initial API and implementation
*******************************************************************************/
package org.eclipse.tm.terminal.model;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Public Terminal Model test cases.
* Runs in internal model package to allow access to default visible items.
*/
public class AllTests extends TestCase {
public AllTests() {
super(null);
}
public AllTests(String name) {
super(name);
}
public static Test suite() {
TestSuite suite = new TestSuite(AllTests.class.getName());
suite.addTestSuite(StyleColorTest.class);
suite.addTestSuite(StyleTest.class);
return suite;
}
}

View file

@ -0,0 +1,42 @@
/*******************************************************************************
* Copyright (c) 2008 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Martin Oberhuber (Wind River) - initial API and implementation
*******************************************************************************/
package org.eclipse.tm.terminal.test;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Master test suite to run all terminal unit tests.
*/
public class AutomatedTests extends TestCase {
public static final String PI_TERMINAL_TESTS = "org.eclipse.tm.terminal.test"; //$NON-NLS-1$
public AutomatedTests() {
super(null);
}
public AutomatedTests(String name) {
super(name);
}
/**
* Call each AllTests class from each of the test packages.
*/
public static Test suite() {
TestSuite suite = new TestSuite(AutomatedTests.class.getName());
suite.addTest(org.eclipse.tm.internal.terminal.emulator.AllTests.suite());
suite.addTest(org.eclipse.tm.internal.terminal.model.AllTests.suite());
suite.addTest(org.eclipse.tm.terminal.model.AllTests.suite());
return suite;
}
}

View file

@ -32,7 +32,7 @@ Needs to be updated and tested for org.eclipse.tm.terminal
<ant target="core-test" antfile="${library-file}" dir="${eclipse-home}">
<property name="data-dir" value="${location}"/>
<property name="plugin-name" value="${plugin-name}"/>
<property name="classname" value="org.eclipse.tm.terminal.test.RSECombinedTestSuite"/>
<property name="classname" value="org.eclipse.tm.terminal.test.AutomatedTests"/>
<property name="extraVMargs" value="-ea"/>
</ant>