From 552d0e24ef79f04b2807a8ce305b1451337f1e20 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Genevi=C3=A8ve=20Bastien?= Date: Thu, 1 Sep 2016 16:26:44 -0400 Subject: [PATCH] releng: Add a test suite for all SWTbot perf tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit These tests can be run with JUL enabled to get data for UI responsiveness. Change-Id: I87cf69155262089dfe017db5ad4980951308224e Signed-off-by: Geneviève Bastien Reviewed-on: https://git.eclipse.org/r/80262 Reviewed-by: Hudson CI Reviewed-by: Marc-André Laperle Tested-by: Marc-André Laperle --- .../META-INF/MANIFEST.MF | 3 +- .../META-INF/MANIFEST.MF | 3 +- .../swtbot/RunAllSWTBotPerfTests.java | 31 +++++++++++++++++++ 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 releng/org.eclipse.tracecompass.alltests/src/org/eclipse/tracecompass/alltests/swtbot/RunAllSWTBotPerfTests.java diff --git a/lttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/META-INF/MANIFEST.MF b/lttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/META-INF/MANIFEST.MF index ea4af579c9..e08641342a 100644 --- a/lttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/META-INF/MANIFEST.MF +++ b/lttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/META-INF/MANIFEST.MF @@ -7,7 +7,8 @@ Bundle-Localization: plugin Bundle-SymbolicName: org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests;singleton:=true Bundle-ActivationPolicy: lazy Bundle-RequiredExecutionEnvironment: JavaSE-1.8 -Export-Package: org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests +Export-Package: org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests, + org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests.perf Require-Bundle: org.apache.log4j, org.eclipse.core.resources, org.eclipse.core.runtime, diff --git a/lttng/org.eclipse.tracecompass.lttng2.ust.ui.swtbot.tests/META-INF/MANIFEST.MF b/lttng/org.eclipse.tracecompass.lttng2.ust.ui.swtbot.tests/META-INF/MANIFEST.MF index 612153f85b..f805da5b40 100644 --- a/lttng/org.eclipse.tracecompass.lttng2.ust.ui.swtbot.tests/META-INF/MANIFEST.MF +++ b/lttng/org.eclipse.tracecompass.lttng2.ust.ui.swtbot.tests/META-INF/MANIFEST.MF @@ -27,6 +27,7 @@ Require-Bundle: org.apache.log4j, org.eclipse.tracecompass.lttng2.ust.ui, org.swtchart, org.eclipse.tracecompass.tmf.ui.tests -Export-Package: org.eclipse.tracecompass.lttng2.ust.ui.swtbot.tests +Export-Package: org.eclipse.tracecompass.lttng2.ust.ui.swtbot.tests, + org.eclipse.tracecompass.lttng2.ust.ui.swtbot.tests.perf Import-Package: com.google.common.collect, org.eclipse.tracecompass.testtraces.ctf;version="1.1.1" diff --git a/releng/org.eclipse.tracecompass.alltests/src/org/eclipse/tracecompass/alltests/swtbot/RunAllSWTBotPerfTests.java b/releng/org.eclipse.tracecompass.alltests/src/org/eclipse/tracecompass/alltests/swtbot/RunAllSWTBotPerfTests.java new file mode 100644 index 0000000000..83435f4ec4 --- /dev/null +++ b/releng/org.eclipse.tracecompass.alltests/src/org/eclipse/tracecompass/alltests/swtbot/RunAllSWTBotPerfTests.java @@ -0,0 +1,31 @@ +/******************************************************************************* + * Copyright (c) 2016 École Polytechnique de Montréal + * + * 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 + *******************************************************************************/ + +package org.eclipse.tracecompass.alltests.swtbot; + +import org.junit.runner.RunWith; +import org.junit.runners.Suite; + +/** + * Master test suite for all Trace Compass SWTBot performance tests. + * + * Note that the SWTBot tests need to be executed in a non-UI thread which is + * why they are separated in a different test suite. + * + * Also, these tests typically test the performance of the UI and one might want + * to enable JUL logging while running these. + */ +@RunWith(Suite.class) +@Suite.SuiteClasses({ + org.eclipse.tracecompass.lttng2.ust.ui.swtbot.tests.perf.LttngUstResponseBenchmark.class, + org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests.perf.LttngUiResponseBenchmark.class +}) +public class RunAllSWTBotPerfTests { + +} -- 2.34.1