lttng: Rename LttngUiResponseTest to benchmark (it's not a test)
authorMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Fri, 23 Sep 2016 20:44:13 +0000 (16:44 -0400)
committerMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
Fri, 23 Sep 2016 22:12:17 +0000 (18:12 -0400)
Otherwise, it runs during tests and closes all the views.

Change-Id: Ifa3942e68a4cdd3aad03a7a23da6b83a88db831c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/81837
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Reviewed-by: Hudson CI
lttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/perf/org/eclipse/tracecompass/lttng2/kernel/ui/swtbot/tests/perf/LttngUiResponseBenchmark.java [new file with mode: 0644]
lttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/perf/org/eclipse/tracecompass/lttng2/kernel/ui/swtbot/tests/perf/LttngUiResponseTest.java [deleted file]

diff --git a/lttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/perf/org/eclipse/tracecompass/lttng2/kernel/ui/swtbot/tests/perf/LttngUiResponseBenchmark.java b/lttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/perf/org/eclipse/tracecompass/lttng2/kernel/ui/swtbot/tests/perf/LttngUiResponseBenchmark.java
new file mode 100644 (file)
index 0000000..b96fc94
--- /dev/null
@@ -0,0 +1,78 @@
+/*******************************************************************************
+ * 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.lttng2.kernel.ui.swtbot.tests.perf;
+
+import java.io.IOException;
+import java.util.EnumSet;
+
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
+import org.eclipse.tracecompass.analysis.os.linux.ui.swtbot.tests.perf.views.UiResponseTest;
+import org.eclipse.tracecompass.internal.lttng2.kernel.ui.views.PerspectiveFactory;
+import org.eclipse.tracecompass.testtraces.ctf.CtfTestTrace;
+import org.eclipse.tracecompass.tmf.ui.swtbot.tests.shared.SWTBotUtils;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+/**
+ * Test the responsiveness of Control Flow View and Resources View for different
+ * traces and scenarios. Ideally, when running this test, JUL logging should be
+ * enabled using a logger.properties file. LTTng JUL handler is advised since it
+ * works better with multi-threaded applications than other log handlers
+ *
+ * @author Geneviève Bastien
+ */
+@RunWith(SWTBotJunit4ClassRunner.class)
+public class LttngUiResponseBenchmark extends UiResponseTest {
+
+    private static final String TRACE_TYPE = "org.eclipse.linuxtools.lttng2.kernel.tracetype";
+
+    @Override
+    protected void prepareWorkspace() {
+        /* Switch to kernel perspective */
+        SWTBotUtils.switchToPerspective(PerspectiveFactory.ID);
+    }
+
+    /**
+     * Test with the django trace
+     *
+     * @throws SecurityException
+     *             If a security manager is present and any the wrong class is
+     *             loaded or the class loader is not the same as its ancestor's
+     *             loader.
+     * @throws IllegalArgumentException
+     *             the object is not the correct class type
+     * @throws IOException
+     *             Exceptions with the trace file
+     */
+    @Test
+    public void testWithDjango() throws SecurityException, IllegalArgumentException, IOException {
+        runTestWithTrace(FileLocator.toFileURL(CtfTestTrace.DJANGO_CLIENT.getTraceURL()).getPath(), TRACE_TYPE, EnumSet.allOf(OsLinuxViews.class));
+    }
+
+    /**
+     * Test with the many-threads trace
+     *
+     * @throws SecurityException
+     *             If a security manager is present and any the wrong class is
+     *             loaded or the class loader is not the same as its ancestor's
+     *             loader.
+     * @throws IllegalArgumentException
+     *             the object is not the correct class type
+     * @throws IOException
+     *             Exceptions with the trace file
+     *
+     */
+    @Test
+    public void testWithManyThreads() throws SecurityException, IllegalArgumentException, IOException {
+        runTestWithTrace(FileLocator.toFileURL(CtfTestTrace.MANY_THREADS.getTraceURL()).getPath(), TRACE_TYPE, EnumSet.of(OsLinuxViews.CONTROL_FLOW, OsLinuxViews.RESOURCES, OsLinuxViews.CPU_USAGE, OsLinuxViews.DISK_IO_ACTIVITY));
+    }
+
+}
diff --git a/lttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/perf/org/eclipse/tracecompass/lttng2/kernel/ui/swtbot/tests/perf/LttngUiResponseTest.java b/lttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/perf/org/eclipse/tracecompass/lttng2/kernel/ui/swtbot/tests/perf/LttngUiResponseTest.java
deleted file mode 100644 (file)
index a67341a..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-/*******************************************************************************
- * 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.lttng2.kernel.ui.swtbot.tests.perf;
-
-import java.io.IOException;
-import java.util.EnumSet;
-
-import org.eclipse.core.runtime.FileLocator;
-import org.eclipse.swtbot.swt.finder.junit.SWTBotJunit4ClassRunner;
-import org.eclipse.tracecompass.analysis.os.linux.ui.swtbot.tests.perf.views.UiResponseTest;
-import org.eclipse.tracecompass.internal.lttng2.kernel.ui.views.PerspectiveFactory;
-import org.eclipse.tracecompass.testtraces.ctf.CtfTestTrace;
-import org.eclipse.tracecompass.tmf.ui.swtbot.tests.shared.SWTBotUtils;
-import org.junit.Test;
-import org.junit.runner.RunWith;
-
-/**
- * Test the responsiveness of Control Flow View and Resources View for different
- * traces and scenarios. Ideally, when running this test, JUL logging should be
- * enabled using a logger.properties file. LTTng JUL handler is advised since it
- * works better with multi-threaded applications than other log handlers
- *
- * @author Geneviève Bastien
- */
-@RunWith(SWTBotJunit4ClassRunner.class)
-public class LttngUiResponseTest extends UiResponseTest {
-
-    private static final String TRACE_TYPE = "org.eclipse.linuxtools.lttng2.kernel.tracetype";
-
-    @Override
-    protected void prepareWorkspace() {
-        /* Switch to kernel perspective */
-        SWTBotUtils.switchToPerspective(PerspectiveFactory.ID);
-    }
-
-    /**
-     * Test with the django trace
-     *
-     * @throws SecurityException
-     *             If a security manager is present and any the wrong class is
-     *             loaded or the class loader is not the same as its ancestor's
-     *             loader.
-     * @throws IllegalArgumentException
-     *             the object is not the correct class type
-     * @throws IOException
-     *             Exceptions with the trace file
-     */
-    @Test
-    public void testWithDjango() throws SecurityException, IllegalArgumentException, IOException {
-        runTestWithTrace(FileLocator.toFileURL(CtfTestTrace.DJANGO_CLIENT.getTraceURL()).getPath(), TRACE_TYPE, EnumSet.allOf(OsLinuxViews.class));
-    }
-
-    /**
-     * Test with the many-threads trace
-     *
-     * @throws SecurityException
-     *             If a security manager is present and any the wrong class is
-     *             loaded or the class loader is not the same as its ancestor's
-     *             loader.
-     * @throws IllegalArgumentException
-     *             the object is not the correct class type
-     * @throws IOException
-     *             Exceptions with the trace file
-     *
-     */
-    @Test
-    public void testWithManyThreads() throws SecurityException, IllegalArgumentException, IOException {
-        runTestWithTrace(FileLocator.toFileURL(CtfTestTrace.MANY_THREADS.getTraceURL()).getPath(), TRACE_TYPE, EnumSet.of(OsLinuxViews.CONTROL_FLOW, OsLinuxViews.RESOURCES, OsLinuxViews.CPU_USAGE, OsLinuxViews.DISK_IO_ACTIVITY));
-    }
-
-}
This page took 0.027546 seconds and 5 git commands to generate.