diff options
author | Curtis D'Entremont | 2006-11-22 17:15:27 +0000 |
---|---|---|
committer | Curtis D'Entremont | 2006-11-22 17:15:27 +0000 |
commit | c1b1f4c4d6190570987ba7566aa177fce589c57a (patch) | |
tree | 871d3e906b656ac71fc15a354ecb69f00487dbf3 /org.eclipse.ua.tests | |
parent | fb6c264f3e9419d4780635b4f0004596699db52e (diff) | |
download | eclipse.platform.ua-c1b1f4c4d6190570987ba7566aa177fce589c57a.tar.gz eclipse.platform.ua-c1b1f4c4d6190570987ba7566aa177fce589c57a.tar.xz eclipse.platform.ua-c1b1f4c4d6190570987ba7566aa177fce589c57a.zip |
added UA performance tests
Diffstat (limited to 'org.eclipse.ua.tests')
11 files changed, 512 insertions, 48 deletions
diff --git a/org.eclipse.ua.tests/META-INF/MANIFEST.MF b/org.eclipse.ua.tests/META-INF/MANIFEST.MF index a84b09bb6..dac1d0d45 100644 --- a/org.eclipse.ua.tests/META-INF/MANIFEST.MF +++ b/org.eclipse.ua.tests/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: User Assistance Test Bundle-SymbolicName: org.eclipse.ua.tests;singleton:=true -Bundle-Version: 3.2.100.qualifier +Bundle-Version: 3.3.0.qualifier Bundle-Activator: org.eclipse.ua.tests.plugin.UserAssistanceTestPlugin Bundle-Localization: plugin Require-Bundle: org.apache.lucene;bundle-version="[1.4.3,1.5.0)", @@ -14,6 +14,7 @@ Require-Bundle: org.apache.lucene;bundle-version="[1.4.3,1.5.0)", org.eclipse.help.base, org.eclipse.help.ui, org.eclipse.help.webapp, + org.eclipse.test.performance, org.eclipse.tomcat, org.eclipse.ui, org.eclipse.ui.cheatsheets, diff --git a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/AllPerformanceTests.java b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/AllPerformanceTests.java new file mode 100644 index 000000000..327a8acc8 --- /dev/null +++ b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/AllPerformanceTests.java @@ -0,0 +1,40 @@ +/******************************************************************************* + * Copyright (c) 2006 IBM Corporation 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: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.ua.tests; + +import junit.framework.Test; +import junit.framework.TestSuite; + +import org.eclipse.ua.tests.cheatsheet.performance.AllCheatSheetPerformanceTests; +import org.eclipse.ua.tests.help.performance.AllHelpPerformanceTests; +import org.eclipse.ua.tests.intro.performance.AllIntroPerformanceTests; + +/* + * Tests all user assistance performance (automated). + */ +public class AllPerformanceTests extends TestSuite { + + /* + * Returns the entire performance test suite. + */ + public static Test suite() { + return new AllPerformanceTests(); + } + + /* + * Constructs a new test suite. + */ + public AllPerformanceTests() { + addTest(AllHelpPerformanceTests.suite()); + addTest(AllIntroPerformanceTests.suite()); + addTest(AllCheatSheetPerformanceTests.suite()); + } +} diff --git a/org.eclipse.ua.tests/cheatsheet/org/eclipse/ua/tests/cheatsheet/performance/AllCheatSheetPerformanceTests.java b/org.eclipse.ua.tests/cheatsheet/org/eclipse/ua/tests/cheatsheet/performance/AllCheatSheetPerformanceTests.java new file mode 100644 index 000000000..015139857 --- /dev/null +++ b/org.eclipse.ua.tests/cheatsheet/org/eclipse/ua/tests/cheatsheet/performance/AllCheatSheetPerformanceTests.java @@ -0,0 +1,34 @@ +/******************************************************************************* + * Copyright (c) 2006 IBM Corporation 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: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.ua.tests.cheatsheet.performance; + +import junit.framework.Test; +import junit.framework.TestSuite; + +/* + * Tests help performance (automated). + */ +public class AllCheatSheetPerformanceTests extends TestSuite { + + /* + * Returns the entire test suite. + */ + public static Test suite() { + return new AllCheatSheetPerformanceTests(); + } + + /* + * Constructs a new performance test suite. + */ + public AllCheatSheetPerformanceTests() { + addTest(OpenCheatSheetTest.suite()); + } +} diff --git a/org.eclipse.ua.tests/cheatsheet/org/eclipse/ua/tests/cheatsheet/performance/OpenCheatSheetTest.java b/org.eclipse.ua.tests/cheatsheet/org/eclipse/ua/tests/cheatsheet/performance/OpenCheatSheetTest.java new file mode 100644 index 000000000..0cfe0d9a0 --- /dev/null +++ b/org.eclipse.ua.tests/cheatsheet/org/eclipse/ua/tests/cheatsheet/performance/OpenCheatSheetTest.java @@ -0,0 +1,79 @@ +/******************************************************************************* + * Copyright (c) 2006 IBM Corporation 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: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.ua.tests.cheatsheet.performance; + +import junit.framework.Test; +import junit.framework.TestSuite; + +import org.eclipse.swt.widgets.Display; +import org.eclipse.test.performance.Dimension; +import org.eclipse.test.performance.PerformanceTestCase; +import org.eclipse.ua.tests.intro.performance.OpenIntroTest; +import org.eclipse.ui.IViewPart; +import org.eclipse.ui.IWorkbenchPage; +import org.eclipse.ui.PlatformUI; +import org.eclipse.ui.cheatsheets.OpenCheatSheetAction; +import org.eclipse.ui.internal.cheatsheets.ICheatSheetResource; + +public class OpenCheatSheetTest extends PerformanceTestCase { + + /* + * Returns an instance of this Test. + */ + public static Test suite() { + return new TestSuite(OpenCheatSheetTest.class); + } + + protected void setUp() throws Exception { + super.setUp(); + OpenIntroTest.closeIntro(); + } + + public void testOpenCheatSheet() throws Exception { + tagAsSummary("Open cheat sheet", Dimension.ELAPSED_PROCESS); + + // warm-up + for (int i=0;i<3;++i) { + closeCheatSheet(); + openCheatSheet(); + } + + // run the tests + for (int i=0;i<50;++i) { + closeCheatSheet(); + startMeasuring(); + openCheatSheet(); + stopMeasuring(); + } + + commitMeasurements(); + assertPerformance(); + } + + private void openCheatSheet() throws Exception { + OpenCheatSheetAction action = new OpenCheatSheetAction("org.eclipse.ua.tests.cheatsheet.performance"); + action.run(); + flush(); + } + + private void closeCheatSheet() throws Exception { + IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage(); + IViewPart view = page.findView(ICheatSheetResource.CHEAT_SHEET_VIEW_ID); + page.hideView(view); + flush(); + } + + private static void flush() { + Display display = Display.getCurrent(); + while (display.readAndDispatch()) { + } + } +} diff --git a/org.eclipse.ua.tests/data/cheatsheet/performance/HelloWorld.xml b/org.eclipse.ua.tests/data/cheatsheet/performance/HelloWorld.xml new file mode 100644 index 000000000..745d6bf31 --- /dev/null +++ b/org.eclipse.ua.tests/data/cheatsheet/performance/HelloWorld.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<cheatsheet title="Performance Test Cheat Sheet"> + <intro href="/org.eclipse.platform.doc.user/reference/ref-cheatsheets.htm"> + <description> + This cheat sheet shows you how to create the famous "Hello World" application and try it out. You will create a Java project and a Java class that will print "Hello world!" in the console when run.<br/> +<br/> +If you need help at any step, click the (?) to the right. Let's get started! + </description> + </intro> + <item title="Open the Java perspective" dialog="false" skip="false" href="/org.eclipse.platform.doc.user/concepts/concepts-4.htm"> + <description> + If you're not already in the Java perspective, in the main menu select <b>Window</b> > <b>Open Perspective</b> > <b>Java</b> or click on the "Click to Perform" link below. + </description> + <command serialization="org.eclipse.ui.perspectives.showPerspective(org.eclipse.ui.perspectives.showPerspective.perspectiveId=org.eclipse.jdt.ui.JavaPerspective)" confirm="true"> + </command> + </item> + <item title="Create a Java project" dialog="true" skip="false" href="/org.eclipse.jdt.doc.user/concepts/concepts-3.htm"> + <description> + Before creating a class, we need a project to put it in. In the main toolbar, click on the <b>New Java Project</b> button, or click on the link below. Enter <b>HelloWorld</b> for the project name, then click <b>Finish</b>. + </description> + <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.jdt.ui.wizards.JavaProjectWizard)" confirm="true"> + </command> + </item> + <item title="Create your HelloWorld class" dialog="true" skip="false" href="/org.eclipse.jdt.doc.user/gettingStarted/qs-9.htm"> + <description> + The next step is to create a new class. In the main toolbar again, click on the <b>New Java Class</b> button (or the link below). If not already specified, select <b>HelloWorld/src</b> as the source folder. Enter <b>HelloWorld</b> for the class name, select the checkbox to create the <b>main()</b> method, then click <b>Finish</b>.<br/> +<br/> +The Java editor will automatically open showing your new class. + </description> + <command serialization="org.eclipse.ui.newWizard(newWizardId=org.eclipse.jdt.ui.wizards.NewClassCreationWizard)" confirm="true"> + </command> + </item> + <item title="Add a print statement" dialog="false" skip="false" href="/org.eclipse.jdt.doc.user/concepts/concepts-7.htm"> + <description> + Now that you have your HelloWorld class, in the <b>main()</b> method, add the following statement:<br/> +<br/> +System.out.println("Hello world!");<br/> +<br/> +Then <b>save</b> your changes; the class will automatically compile upon saving. + </description> + </item> + <item title="Run your Java application" dialog="false" skip="false" href="/org.eclipse.jdt.doc.user/gettingStarted/qs-12.htm"> + <description> + To <b>run</b> your application, right-click on your class in the Package Explorer and select <b>Run As</b> > <b>Java Application</b>. The <b>Console</b> view should appear at the bottom and display the "Hello, world!" output.<br/> +<br/> +Congratulations! You have successfully created a Hello World +application! + </description> + </item> +</cheatsheet> diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/performance/AllHelpPerformanceTests.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/performance/AllHelpPerformanceTests.java new file mode 100644 index 000000000..918aa164b --- /dev/null +++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/performance/AllHelpPerformanceTests.java @@ -0,0 +1,34 @@ +/******************************************************************************* + * Copyright (c) 2006 IBM Corporation 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: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.ua.tests.help.performance; + +import junit.framework.Test; +import junit.framework.TestSuite; + +/* + * Tests help performance (automated). + */ +public class AllHelpPerformanceTests extends TestSuite { + + /* + * Returns the entire test suite. + */ + public static Test suite() { + return new AllHelpPerformanceTests(); + } + + /* + * Constructs a new performance test suite. + */ + public AllHelpPerformanceTests() { + addTest(OpenHelpTest.suite()); + } +} diff --git a/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/performance/OpenHelpTest.java b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/performance/OpenHelpTest.java new file mode 100644 index 000000000..68856e0a0 --- /dev/null +++ b/org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/performance/OpenHelpTest.java @@ -0,0 +1,90 @@ +/******************************************************************************* + * Copyright (c) 2006 IBM Corporation 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: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.ua.tests.help.performance; + +import junit.framework.Test; +import junit.framework.TestSuite; + +import org.eclipse.help.internal.appserver.WebappManager; +import org.eclipse.help.internal.base.BaseHelpSystem; +import org.eclipse.swt.SWT; +import org.eclipse.swt.browser.Browser; +import org.eclipse.swt.browser.LocationAdapter; +import org.eclipse.swt.browser.LocationEvent; +import org.eclipse.swt.layout.FillLayout; +import org.eclipse.swt.widgets.Display; +import org.eclipse.swt.widgets.Shell; +import org.eclipse.test.performance.Dimension; +import org.eclipse.test.performance.PerformanceTestCase; +import org.eclipse.ui.PlatformUI; + +public class OpenHelpTest extends PerformanceTestCase { + + /* + * Returns an instance of this Test. + */ + public static Test suite() { + return new TestSuite(OpenHelpTest.class); + } + + public void testOpenHelp() throws Exception { + tagAsSummary("Open help", Dimension.ELAPSED_PROCESS); + + // warm-up + for (int i=0;i<3;++i) { + openHelp(); + } + + // run the tests + for (int i=0;i<20;++i) { + startMeasuring(); + openHelp(); + stopMeasuring(); + } + + commitMeasurements(); + assertPerformance(); + } + + private static void openHelp() throws Exception { + // start the webapp + BaseHelpSystem.ensureWebappRunning(); + + // open a browser + Shell parent = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); + Shell shell = new Shell(parent); + shell.setLayout(new FillLayout()); + shell.setSize(parent.getSize()); + Browser browser = new Browser(shell, SWT.NONE); + shell.open(); + + // open help url + final boolean[] done = new boolean[] { false }; + final String url = "http://" + WebappManager.getHost() + ":" + WebappManager.getPort() + "/help/index.jsp"; + browser.addLocationListener(new LocationAdapter() { + public void changed(LocationEvent event) { + if (url.equals(event.location)) { + done[0] = true; + } + } + }); + browser.setUrl(url); + + // wait until the browser finishes loading + Display display = Display.getDefault(); + while (!done[0]) { + if (!display.readAndDispatch()) { + display.sleep(); + } + } + shell.dispose(); + } +} diff --git a/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance/AllIntroPerformanceTests.java b/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance/AllIntroPerformanceTests.java new file mode 100644 index 000000000..d0b42064c --- /dev/null +++ b/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance/AllIntroPerformanceTests.java @@ -0,0 +1,34 @@ +/******************************************************************************* + * Copyright (c) 2006 IBM Corporation 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: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.ua.tests.intro.performance; + +import junit.framework.Test; +import junit.framework.TestSuite; + +/* + * Tests help performance (automated). + */ +public class AllIntroPerformanceTests extends TestSuite { + + /* + * Returns the entire test suite. + */ + public static Test suite() { + return new AllIntroPerformanceTests(); + } + + /* + * Constructs a new performance test suite. + */ + public AllIntroPerformanceTests() { + addTest(OpenIntroTest.suite()); + } +} diff --git a/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance/OpenIntroTest.java b/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance/OpenIntroTest.java new file mode 100644 index 000000000..d9c2f1a72 --- /dev/null +++ b/org.eclipse.ua.tests/intro/org/eclipse/ua/tests/intro/performance/OpenIntroTest.java @@ -0,0 +1,75 @@ +/******************************************************************************* + * Copyright (c) 2006 IBM Corporation 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: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.ua.tests.intro.performance; + +import junit.framework.Test; +import junit.framework.TestSuite; + +import org.eclipse.swt.widgets.Display; +import org.eclipse.test.performance.Dimension; +import org.eclipse.test.performance.PerformanceTestCase; +import org.eclipse.ui.IWorkbench; +import org.eclipse.ui.PlatformUI; +import org.eclipse.ui.intro.IIntroManager; +import org.eclipse.ui.intro.IIntroPart; + +public class OpenIntroTest extends PerformanceTestCase { + + /* + * Returns an instance of this Test. + */ + public static Test suite() { + return new TestSuite(OpenIntroTest.class); + } + + public void testOpenIntro() throws Exception { + tagAsSummary("Open welcome", Dimension.ELAPSED_PROCESS); + + // warm-up + for (int i=0;i<3;++i) { + closeIntro(); + openIntro(); + } + + // run the tests + for (int i=0;i<20;++i) { + closeIntro(); + startMeasuring(); + openIntro(); + stopMeasuring(); + } + + commitMeasurements(); + assertPerformance(); + } + + public static void closeIntro() throws Exception { + IIntroManager manager = PlatformUI.getWorkbench().getIntroManager(); + IIntroPart part = manager.getIntro(); + if (part != null) { + manager.closeIntro(part); + } + flush(); + } + + private static void openIntro() throws Exception { + IWorkbench workbench = PlatformUI.getWorkbench(); + IIntroManager manager = workbench.getIntroManager(); + manager.showIntro(workbench.getActiveWorkbenchWindow(), false); + flush(); + } + + private static void flush() { + Display display = Display.getCurrent(); + while (display.readAndDispatch()) { + } + } +} diff --git a/org.eclipse.ua.tests/plugin.xml b/org.eclipse.ua.tests/plugin.xml index 9b9d17205..dcbd411dc 100644 --- a/org.eclipse.ua.tests/plugin.xml +++ b/org.eclipse.ua.tests/plugin.xml @@ -124,6 +124,16 @@ contentFile="data/cheatsheet/search/CompositeSearchTest.xml" id="org.eclipse.ua.tests.composite.searchTest" name="Composite cheat sheet search test"/> + <cheatsheet + category="org.eclipse.ua.tests.cheatsheet.cheatSheetsTestCat" + composite="false" + contentFile="data/cheatsheet/performance/HelloWorld.xml" + id="org.eclipse.ua.tests.cheatsheet.performance" + name="Performance Test Cheat Sheet"> + <description> + This cheat sheet is used to measure cheat sheet view performance. + </description> + </cheatsheet> </extension> <!-- diff --git a/org.eclipse.ua.tests/test.xml b/org.eclipse.ua.tests/test.xml index 9d25efa9a..99518c280 100644 --- a/org.eclipse.ua.tests/test.xml +++ b/org.eclipse.ua.tests/test.xml @@ -1,51 +1,68 @@ <?xml version="1.0"?> <project name="testsuite" default="run" basedir="."> - <!-- The property ${eclipse-home} should be passed into this script --> - <!-- Set a meaningful default value for when it is not. --> - <property name="eclipse-home" value="${basedir}/../.."/> - - <!-- sets the properties eclipse-home, and library-file --> - <property name="plugin-name" value="org.eclipse.ua.tests"/> - <property name="library-file" - value="${eclipse-home}/plugins/org.eclipse.test/library.xml"/> - - <!-- This target holds all initialization code that needs to be done for --> - <!-- all tests that are to be run. Initialization for individual tests --> - <!-- should be done within the body of the suite target. --> - <target name="init"> - <tstamp/> - <delete> - <fileset dir="${eclipse-home}" includes="org*.xml"/> - </delete> - </target> - - <!-- This target defines the tests that need to be run. --> - <target name="suite"> - <property name="session-folder" - value="${eclipse-home}/ui_session_sniff_folder"/> - <delete dir="${session-folder}" quiet="true"/> - <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}"> - <property name="data-dir" value="${session-folder}"/> - <property name="plugin-name" value="${plugin-name}"/> - <property name="classname" - value="org.eclipse.ua.tests.AllTests"/> - </ant> - </target> - - <!-- This target holds code to cleanup the testing environment after --> - <!-- after all of the tests have been run. You can use this target to --> - <!-- delete temporary files that have been created. --> - <target name="cleanup"> - </target> - - <!-- This target runs the test suite. Any actions that need to happen --> - <!-- after all the tests have been run should go here. --> - <target name="run" depends="init,suite,cleanup"> - <ant target="collect" antfile="${library-file}" dir="${eclipse-home}"> - <property name="includes" value="org*.xml"/> - <property name="output-file" value="${plugin-name}.xml"/> - </ant> - </target> - + <!-- The property ${eclipse-home} should be passed into this script --> + <!-- Set a meaningful default value for when it is not. --> + <property name="eclipse-home" value="${basedir}/../.."/> + + <!-- sets the properties eclipse-home, and library-file --> + <property name="plugin-name" value="org.eclipse.ua.tests"/> + <property name="library-file" value="${eclipse-home}/plugins/org.eclipse.test/library.xml"/> + + <!-- This target holds all initialization code that needs to be done for --> + <!-- all tests that are to be run. Initialization for individual tests --> + <!-- should be done within the body of the suite target. --> + <target name="init"> + <tstamp/> + <delete> + <fileset dir="${eclipse-home}" includes="org*.xml"/> + </delete> + </target> + + <!-- This target defines the tests that need to be run. --> + <target name="suite"> + <property name="session-folder" value="${eclipse-home}/ui_session_sniff_folder"/> + <delete dir="${session-folder}" quiet="true"/> + <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}"> + <property name="data-dir" value="${session-folder}"/> + <property name="plugin-name" value="${plugin-name}"/> + <property name="classname" value="org.eclipse.ua.tests.AllTests"/> + </ant> + </target> + + <!-- This target holds code to cleanup the testing environment after --> + <!-- after all of the tests have been run. You can use this target to --> + <!-- delete temporary files that have been created. --> + <target name="cleanup"> + </target> + + <!-- This target runs the test suite. Any actions that need to happen --> + <!-- after all the tests have been run should go here. --> + <target name="run" depends="init,suite,cleanup"> + <ant target="collect" antfile="${library-file}" dir="${eclipse-home}"> + <property name="includes" value="org*.xml"/> + <property name="output-file" value="${plugin-name}.xml"/> + </ant> + </target> + + <!-- This target defines the performance tests that need to be run. --> + <target name="performance-suite"> + <property name="your-performance-folder" value="${eclipse-home}/ua_performance_folder"/> + <delete dir="${your-performance-folder}" quiet="true"/> + <ant target="ui-test" antfile="${library-file}" dir="${eclipse-home}"> + <property name="data-dir" value="${your-performance-folder}"/> + <property name="plugin-name" value="${plugin-name}"/> + <property name="classname" value="org.eclipse.ua.tests.AllPerformanceTests"/> + </ant> + </target> + + <!-- This target runs the performance test suite. Any actions that need to happen --> + <!-- after all the tests have been run should go here. --> + <target name="performance" depends="init,performance-suite,cleanup"> + <ant target="collect" antfile="${library-file}" dir="${eclipse-home}"> + <property name="includes" value="org*.xml"/> + <property name="output-file" value="${plugin-name}.xml"/> + </ant> + </target> + </project> |