From f838ddaca22232717fa95f892c1338e53b72cd74 Mon Sep 17 00:00:00 2001 From: Martin Oberhuber < martin.oberhuber@windriver.com> Date: Wed, 13 Feb 2008 18:03:44 +0000 Subject: [PATCH] Add terminal test suites for automatic execution --- .../internal/terminal/emulator/AllTests.java | 36 +++++++++++++++ .../tm/internal/terminal/model/AllTests.java | 45 +++++++++++++++++++ .../eclipse/tm/terminal/model/AllTests.java | 37 +++++++++++++++ .../tm/terminal/test/AutomatedTests.java | 42 +++++++++++++++++ .../org.eclipse.tm.terminal.test/test.xml | 2 +- 5 files changed, 161 insertions(+), 1 deletion(-) create mode 100644 terminal/org.eclipse.tm.terminal.test/src/org/eclipse/tm/internal/terminal/emulator/AllTests.java create mode 100644 terminal/org.eclipse.tm.terminal.test/src/org/eclipse/tm/internal/terminal/model/AllTests.java create mode 100644 terminal/org.eclipse.tm.terminal.test/src/org/eclipse/tm/terminal/model/AllTests.java create mode 100644 terminal/org.eclipse.tm.terminal.test/src/org/eclipse/tm/terminal/test/AutomatedTests.java diff --git a/terminal/org.eclipse.tm.terminal.test/src/org/eclipse/tm/internal/terminal/emulator/AllTests.java b/terminal/org.eclipse.tm.terminal.test/src/org/eclipse/tm/internal/terminal/emulator/AllTests.java new file mode 100644 index 00000000000..9817ae96883 --- /dev/null +++ b/terminal/org.eclipse.tm.terminal.test/src/org/eclipse/tm/internal/terminal/emulator/AllTests.java @@ -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; + } + +} diff --git a/terminal/org.eclipse.tm.terminal.test/src/org/eclipse/tm/internal/terminal/model/AllTests.java b/terminal/org.eclipse.tm.terminal.test/src/org/eclipse/tm/internal/terminal/model/AllTests.java new file mode 100644 index 00000000000..f0101879f56 --- /dev/null +++ b/terminal/org.eclipse.tm.terminal.test/src/org/eclipse/tm/internal/terminal/model/AllTests.java @@ -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; + } + +} diff --git a/terminal/org.eclipse.tm.terminal.test/src/org/eclipse/tm/terminal/model/AllTests.java b/terminal/org.eclipse.tm.terminal.test/src/org/eclipse/tm/terminal/model/AllTests.java new file mode 100644 index 00000000000..257c92a3a35 --- /dev/null +++ b/terminal/org.eclipse.tm.terminal.test/src/org/eclipse/tm/terminal/model/AllTests.java @@ -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; + } + +} diff --git a/terminal/org.eclipse.tm.terminal.test/src/org/eclipse/tm/terminal/test/AutomatedTests.java b/terminal/org.eclipse.tm.terminal.test/src/org/eclipse/tm/terminal/test/AutomatedTests.java new file mode 100644 index 00000000000..5b8ca6bb91a --- /dev/null +++ b/terminal/org.eclipse.tm.terminal.test/src/org/eclipse/tm/terminal/test/AutomatedTests.java @@ -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; + } +} diff --git a/terminal/org.eclipse.tm.terminal.test/test.xml b/terminal/org.eclipse.tm.terminal.test/test.xml index e3c4e783329..bbb99275925 100644 --- a/terminal/org.eclipse.tm.terminal.test/test.xml +++ b/terminal/org.eclipse.tm.terminal.test/test.xml @@ -32,7 +32,7 @@ Needs to be updated and tested for org.eclipse.tm.terminal - +