Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Ferrazzutti2014-05-26 16:57:51 -0400
committerJeff Johnston2014-07-17 16:22:08 -0400
commitfc7aeae136a930e0a69043eae629aadffc2e3b58 (patch)
tree8e06560240210ebc1f01af976781fddf273f851c /systemtap/org.eclipse.linuxtools.systemtap.ui.tests
parent551c6f297f6e77087ddcb5d599a236275f4118ba (diff)
downloadorg.eclipse.linuxtools-fc7aeae136a930e0a69043eae629aadffc2e3b58.tar.gz
org.eclipse.linuxtools-fc7aeae136a930e0a69043eae629aadffc2e3b58.tar.xz
org.eclipse.linuxtools-fc7aeae136a930e0a69043eae629aadffc2e3b58.zip
Systemtap: Remove reliance on stap from UI tests.
Also make changes where appropriate to allow dummy data to be to be read into the Function & Probe views, so that testing of their contents is possible without needing stap to populate them. Change-Id: I054227235e44c8584c79951d44148edb8a615373 Signed-off-by: Andrew Ferrazzutti <aferrazz@redhat.com> Reviewed-on: https://git.eclipse.org/r/27312 Tested-by: Hudson CI Reviewed-by: Jeff Johnston <jjohnstn@redhat.com> Tested-by: Jeff Johnston <jjohnstn@redhat.com>
Diffstat (limited to 'systemtap/org.eclipse.linuxtools.systemtap.ui.tests')
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.tests/.classpath7
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.tests/.gitignore5
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.tests/.project17
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.tests/.settings/org.eclipse.jdt.core.prefs99
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.tests/ChangeLog16
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.tests/META-INF/MANIFEST.MF15
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.tests/about.html28
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.tests/build.properties9
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.tests/plugin.properties13
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.tests/pom.xml25
-rw-r--r--systemtap/org.eclipse.linuxtools.systemtap.ui.tests/src/org/eclipse/linuxtools/systemtap/ui/tests/SystemtapTest.java40
11 files changed, 0 insertions, 274 deletions
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/.classpath b/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/.classpath
deleted file mode 100644
index 098194ca4b..0000000000
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/.classpath
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/.gitignore b/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/.gitignore
deleted file mode 100644
index 8d94ef8deb..0000000000
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-bin
-@dot
-javaCompiler...args
-build.xml
-target
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/.project b/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/.project
deleted file mode 100644
index 8e87749a8c..0000000000
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/.project
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.linuxtools.systemtap.ui.tests</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/.settings/org.eclipse.jdt.core.prefs b/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index d03a4f42dc..0000000000
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,99 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled
-org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
-org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
-org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
-org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
-org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.7
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=warning
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
-org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
-org.eclipse.jdt.core.compiler.problem.deadCode=warning
-org.eclipse.jdt.core.compiler.problem.deprecation=warning
-org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
-org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
-org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
-org.eclipse.jdt.core.compiler.problem.emptyStatement=warning
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=warning
-org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
-org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
-org.eclipse.jdt.core.compiler.problem.fieldHiding=ignore
-org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
-org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
-org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
-org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=warning
-org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
-org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=warning
-org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
-org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
-org.eclipse.jdt.core.compiler.problem.localVariableHiding=ignore
-org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
-org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
-org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=warning
-org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
-org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=warning
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=warning
-org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
-org.eclipse.jdt.core.compiler.problem.missingSerialVersion=warning
-org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=warning
-org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
-org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
-org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
-org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning
-org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
-org.eclipse.jdt.core.compiler.problem.nullReference=warning
-org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
-org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning
-org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
-org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=ignore
-org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
-org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
-org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
-org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
-org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=warning
-org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=warning
-org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
-org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=warning
-org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
-org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
-org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
-org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
-org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled
-org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
-org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
-org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=disabled
-org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
-org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
-org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=warning
-org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.unnecessaryElse=ignore
-org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
-org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=disabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=disabled
-org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=enabled
-org.eclipse.jdt.core.compiler.problem.unusedImport=warning
-org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
-org.eclipse.jdt.core.compiler.problem.unusedLocal=warning
-org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=warning
-org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
-org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
-org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
-org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
-org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=warning
-org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
-org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
-org.eclipse.jdt.core.compiler.source=1.7
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/ChangeLog b/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/ChangeLog
deleted file mode 100644
index dd4afca2a7..0000000000
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/ChangeLog
+++ /dev/null
@@ -1,16 +0,0 @@
-2009-08-07 Andrew Overholt <overholt@redhat.com>
-
- * plugin.properties: Change provider from Eclipse.org to Eclipse.
-
-2009-07-07 Anithra P Janakiraman <anithra@linux.vnet.ibm.com>
-
- * .classpath: New file.
- * .project: New file.
- * .settings/org.eclipse.jdt.core.prefs: New file.
- * about.html: New file.
- * build.properties: New file.
- * META-INF/MANIFEST.MF: New file.
- * plugin.properties: New file.
- * plugin.xml: New file.
- * src/org/eclipse/linuxtools/systemtap/ui/tests/SystemtapGuiMockProcess.java: New file.
- * src/org/eclipse/linuxtools/systemtap/ui/tests/SystemtapGuiTestsPlugin.java: \ No newline at end of file
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/META-INF/MANIFEST.MF b/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/META-INF/MANIFEST.MF
deleted file mode 100644
index fd2cb3b19b..0000000000
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,15 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.eclipse.linuxtools.systemtap.ui.tests
-Bundle-Version: 1.0.0.qualifier
-Bundle-Vendor: %Bundle-Vendor.0
-Bundle-Localization: plugin
-Bundle-ActivationPolicy: lazy
-Require-Bundle: org.eclipse.ui,
- org.eclipse.core.runtime,
- org.eclipse.core.resources
-Bundle-RequiredExecutionEnvironment: JavaSE-1.7
-Export-Package: org.eclipse.linuxtools.systemtap.ui.tests
-Import-Package: org.eclipse.linuxtools.tools.launch.core.factory,
- org.junit;version="4.10.0"
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/about.html b/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/about.html
deleted file mode 100644
index c258ef55d8..0000000000
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/about.html
+++ /dev/null
@@ -1,28 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>June 5, 2006</p>
-<h3>License</h3>
-
-<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
-indicated below, the Content is provided to you under the terms and conditions of the
-Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available
-at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
-For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
-
-<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
-being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
-apply to your use of any object code in the Content. Check the Redistributor's license that was
-provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
-indicated below, the terms and conditions of the EPL still apply to any source code in the Content
-and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
-
-</body>
-</html> \ No newline at end of file
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/build.properties b/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/build.properties
deleted file mode 100644
index 75bd79ed99..0000000000
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/build.properties
+++ /dev/null
@@ -1,9 +0,0 @@
-bin.includes = META-INF/,\
- about.html,\
- plugin.properties,\
- .
-jars.compile.order = .
-source.. = src/
-output.. = bin/
-src.includes = about.html
-
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/plugin.properties b/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/plugin.properties
deleted file mode 100644
index 9bc6eb7834..0000000000
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/plugin.properties
+++ /dev/null
@@ -1,13 +0,0 @@
-#*******************************************************************************
-# Copyright (c) 2008 Red Hat, Inc.
-# 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:
-# Red Hat, Inc. - initial API and implementation
-#********************************************************************************
-Bundle-Vendor.0 = Eclipse
-Bundle-Name.0 = SystemTapGui Test Suite
-launchConfigurationType.name.0 = SystemTapGui (Test)
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/pom.xml b/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/pom.xml
deleted file mode 100644
index 406010d0ae..0000000000
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/pom.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (C) 2011, Red Hat, Inc.
-
- 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
--->
-<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <artifactId>linuxtools-systemtap-parent</artifactId>
- <groupId>org.eclipse.linuxtools.systemtap</groupId>
- <version>3.1.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>org.eclipse.linuxtools.systemtap.ui.tests</artifactId>
- <version>1.0.0-SNAPSHOT</version>
- <packaging>eclipse-plugin</packaging>
-
- <name>Linux Tools SystemTapGui Test Suite Plug-in</name>
-</project>
diff --git a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/src/org/eclipse/linuxtools/systemtap/ui/tests/SystemtapTest.java b/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/src/org/eclipse/linuxtools/systemtap/ui/tests/SystemtapTest.java
deleted file mode 100644
index c2d413942b..0000000000
--- a/systemtap/org.eclipse.linuxtools.systemtap.ui.tests/src/org/eclipse/linuxtools/systemtap/ui/tests/SystemtapTest.java
+++ /dev/null
@@ -1,40 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2013 Red Hat, Inc.
- * 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:
- * Red Hat initial API and implementation.
- *******************************************************************************/
-package org.eclipse.linuxtools.systemtap.ui.tests;
-
-import java.io.IOException;
-
-import org.eclipse.linuxtools.tools.launch.core.factory.RuntimeProcessFactory;
-import org.junit.BeforeClass;
-
-/**
- * Generic utilities for systemtap tests.
- */
-public class SystemtapTest {
- public static boolean stapInstalled;
-
- @BeforeClass
- public static void checkStapInstalled() throws IOException {
- stapInstalled = SystemtapTest.stapInstalled();
- }
-
- /**
- * Check that stap is installed
- *
- * @return true if stap is installed, false otherwise.
- * @throws IOException
- */
- protected static boolean stapInstalled() throws IOException {
- Process process = RuntimeProcessFactory.getFactory().exec(
- new String[] { "stap", "-V" }, null); //$NON-NLS-1$ //$NON-NLS-2$
- return (process != null);
- }
-}

Back to the top