SuccessChanges

Summary

  1. ctf: Make LttngKernelTraceGenerator also generate UST test traces (details)
  2. Add an integration tests plugin (details)
  3. Add file util to create dummy structures (details)
  4. Move ProjectExplorerTraceActionsTest to integration tests (details)
  5. tmf: Add a way to clear the traces using SWTBot only (details)
  6. tmf: Make order of files processing more natural during import (details)
  7. tmf.xml: Bug 500195. Modify initial state behavior (details)
Commit e50d60d4609989651484d16473312834225fbd12 by Marc-Andre Laperle
ctf: Make LttngKernelTraceGenerator also generate UST test traces

LttngKernelTraceGenerator can currently only generate Kernel traces
but with a few changes, it can generate a UST trace. The events do
not make much sense for a UST trace but this is good enough for trace
type validation, etc.

Change-Id: I9826383c6d3cb2bdcb24895bbfa9990a75312a4b
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/79780
Reviewed-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
(cherry picked from commit 4eebea10fc57f4a28c45fcce0ce4f5a76b3d7932)
Reviewed-on: https://git.eclipse.org/r/80047
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
The file was modifiedctf/org.eclipse.tracecompass.tmf.ctf.core.tests/shared/org/eclipse/tracecompass/tmf/ctf/core/tests/shared/CtfTmfTestTraceUtils.java
The file was modifiedlttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/kernel/ui/swtbot/tests/ControlFlowViewTest.java
The file was modifiedlttng/org.eclipse.tracecompass.lttng2.kernel.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/kernel/ui/swtbot/tests/KernelTestBase.java
The file was removedctf/org.eclipse.tracecompass.ctf.core.tests/shared/org/eclipse/tracecompass/ctf/core/tests/shared/LttngKernelTraceGenerator.java
The file was modifiedctf/org.eclipse.tracecompass.ctf.core.tests/src/org/eclipse/tracecompass/ctf/core/tests/trace/CTFTraceGrowingTest.java
The file was addedctf/org.eclipse.tracecompass.ctf.core.tests/shared/org/eclipse/tracecompass/ctf/core/tests/shared/LttngTraceGenerator.java
The file was modifiedlttng/org.eclipse.tracecompass.lttng2.control.ui.swtbot.tests/src/org/eclipse/tracecompass/lttng2/control/ui/swtbot/tests/ControlViewTest.java
The file was modifiedtmf/org.eclipse.tracecompass.tmf.remote.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/remote/ui/swtbot/tests/fetch/FetchRemoteTracesTest.java
Commit b58faa38216115c0f98cd7ccf2fded5be2995d7d by Marc-Andre Laperle
Add an integration tests plugin

This plugin will contain tests that possibly require many "leaf" dependencies
and that are not unit tests but instead fuller scenarios. For example,
it might test importing UST and Kernel traces together in one operation
and test for name clashes. Therefore it is not a unit test for UST or
Kernel.

The plugin is not added in the parent pom.xml for now as it would fail
because it does not have a test yet.

Change-Id: I6f3af925700b78adbca04dbdf4017f59581ae9e4
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/79789
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
(cherry picked from commit fb096ff3b0b2c3598050019ea8b153e5a47adf6f)
Reviewed-on: https://git.eclipse.org/r/80048
The file was addedreleng/org.eclipse.tracecompass.integration.swtbot.tests/swtbot-test-plugin.properties
The file was addedreleng/org.eclipse.tracecompass.integration.swtbot.tests/.settings/org.eclipse.core.resources.prefs
The file was addedreleng/org.eclipse.tracecompass.integration.swtbot.tests/build.properties
The file was addedreleng/org.eclipse.tracecompass.integration.swtbot.tests/.project
The file was addedreleng/org.eclipse.tracecompass.integration.swtbot.tests/about.html
The file was addedreleng/org.eclipse.tracecompass.integration.swtbot.tests/plugin.properties
The file was addedreleng/org.eclipse.tracecompass.integration.swtbot.tests/.gitignore
The file was addedreleng/org.eclipse.tracecompass.integration.swtbot.tests/.settings/org.eclipse.core.runtime.prefs
The file was addedreleng/org.eclipse.tracecompass.integration.swtbot.tests/.settings/org.eclipse.pde.prefs
The file was addedreleng/org.eclipse.tracecompass.integration.swtbot.tests/.classpath
The file was addedreleng/org.eclipse.tracecompass.integration.swtbot.tests/META-INF/MANIFEST.MF
The file was addedreleng/org.eclipse.tracecompass.integration.swtbot.tests/.settings/org.eclipse.jdt.ui.prefs
The file was addedreleng/org.eclipse.tracecompass.integration.swtbot.tests/.settings/org.eclipse.jdt.core.prefs
Commit ab3caff1076fe48d26731a3791fae012736343e6 by Marc-Andre Laperle
Add file util to create dummy structures

This will help with section 3 of the tests for the project view

Change-Id: I3274efa67838296228e7a810eedd84c4a470ec9b
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/78568
Reviewed-by: Hudson CI
Reviewed-on: https://git.eclipse.org/r/80050
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
The file was modifiedreleng/org.eclipse.tracecompass.integration.swtbot.tests/META-INF/MANIFEST.MF
The file was addedreleng/org.eclipse.tracecompass.integration.swtbot.tests/src/org/eclipse/tracecompass/integration/swtbot/tests/projectexplorer/TestDirectoryStructureUtil.java
Commit 8a91353ed3de0d89c4f38c225755d2b297f0d3ca by Marc-Andre Laperle
Move ProjectExplorerTraceActionsTest to integration tests

This class was written as an integration test. Now it has a proper
home. It also serves as a first example how TestDirectoryStructureUtil
can be used.

Change-Id: I4d79efb1bd621a243b4976a55e2b3e8da4f5fc3f
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/79790
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/80051
The file was addedreleng/org.eclipse.tracecompass.integration.swtbot.tests/src/org/eclipse/tracecompass/integration/swtbot/tests/projectexplorer/TestTraceInfo.java
The file was modifiedtmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/META-INF/MANIFEST.MF
The file was modifiedreleng/org.eclipse.tracecompass.testing/feature.xml
The file was addedreleng/org.eclipse.tracecompass.integration.swtbot.tests/src/org/eclipse/tracecompass/integration/swtbot/tests/projectexplorer/ProjectExplorerTraceActionsTest.java
The file was modifiedreleng/pom.xml
The file was removedtmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/src/org/eclipse/tracecompass/tmf/ui/swtbot/tests/projectexplorer/ProjectExplorerTraceActionsTest.java
The file was modifiedreleng/org.eclipse.tracecompass.integration.swtbot.tests/META-INF/MANIFEST.MF
Commit 3b2ba1ccc778b11d431df9109d81a156f6d6ed0a by Marc-Andre Laperle
tmf: Add a way to clear the traces using SWTBot only

There is way to clear traces but it deletes trace elements
directly using TMF APIs. It would be good to have a way to
do it completely in the UI using SWT. This patch updates
ProjectExplorerTraceActionsTest to use the new way so that
it tests the UI more fully.

Change-Id: If0a8908ecb3f8b0c209ce3c9c8cca883e941be5d
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/79793
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/80052
The file was modifiedtmf/org.eclipse.tracecompass.tmf.ui.swtbot.tests/shared/org/eclipse/tracecompass/tmf/ui/swtbot/tests/shared/SWTBotUtils.java
The file was modifiedreleng/org.eclipse.tracecompass.integration.swtbot.tests/src/org/eclipse/tracecompass/integration/swtbot/tests/projectexplorer/ProjectExplorerTraceActionsTest.java
Commit 90a322e1221bfc8316b01ebca5792ea2d94744eb by Marc-Andre Laperle
tmf: Make order of files processing more natural during import

This changes the order of elements imported to be files first then
the folders, then by lexical order.

This makes it more predictable to the user when there can be name
clashes.

Bug: 500464
Change-Id: Iaf96c72a3fd9c9703ff9535f990a0092af75ff03
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/79986
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
(cherry picked from commit 537cd2b833a6cdf93bf4fa0b609aca5986a2d843)
Reviewed-on: https://git.eclipse.org/r/80065
The file was modifiedtmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/internal/tmf/ui/project/wizards/importtrace/TarFileSystemObject.java
The file was modifiedtmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/internal/tmf/ui/project/wizards/importtrace/FileFileSystemObject.java
The file was modifiedtmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/internal/tmf/ui/project/wizards/importtrace/FileSystemObjectImportStructureProvider.java
The file was modifiedtmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/internal/tmf/ui/project/wizards/importtrace/IFileSystemObject.java
The file was modifiedtmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/internal/tmf/ui/project/wizards/importtrace/GzipFileSystemObject.java
The file was modifiedtmf/org.eclipse.tracecompass.tmf.ui/src/org/eclipse/tracecompass/internal/tmf/ui/project/wizards/importtrace/ZipFileSystemObject.java
Commit ee7522b3a66e9211952988ba93843d6066f6e712 by Jean-Christian Kouame
tmf.xml: Bug 500195. Modify initial state behavior

Fix Bug 500195 and add a new initialState element. This element acts as
a real state and support conditions and actions. Also, these conditions
are only verified  for the pending scenario and the pending scenario do
will ignore the preconditions.

Change-Id: I520f4129f9c65eee9299d5b08f380e07b2b78d0f
Signed-off-by: Jean-Christian Kouame <jean-christian.kouame@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/79439
Reviewed-by: Hudson CI
Reviewed-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Tested-by: Bernd Hufmann <bernd.hufmann@ericsson.com>
Reviewed-by: Genevieve Bastien <gbastien+lttng@versatic.net>
Tested-by: Genevieve Bastien <gbastien+lttng@versatic.net>
(cherry picked from commit 5bf3f444f81099dc817a6895de3163e9a26bdbab)
Reviewed-on: https://git.eclipse.org/r/80129
The file was modifiedtmf/org.eclipse.tracecompass.tmf.analysis.xml.core.tests/src/org/eclipse/tracecompass/tmf/analysis/xml/core/tests/stateprovider/XmlModuleTestBase.java
The file was modifiedtmf/org.eclipse.tracecompass.tmf.analysis.xml.core.tests/common/org/eclipse/tracecompass/tmf/analysis/xml/core/tests/common/TmfXmlTestFiles.java
The file was modifiedtmf/org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/core/model/TmfXmlState.java
The file was modifiedtmf/org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/core/model/TmfXmlScenario.java
The file was modifiedtmf/org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/core/stateprovider/TmfXmlStrings.java
The file was addedtmf/org.eclipse.tracecompass.tmf.analysis.xml.core.tests/src/org/eclipse/tracecompass/tmf/analysis/xml/core/tests/model/FsmTest.java
The file was modifiedtmf/org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/core/model/TmfXmlFsm.java
The file was addedtmf/org.eclipse.tracecompass.tmf.analysis.xml.core.tests/test_xml_files/test_valid/test_initialState_element1.xml
The file was addedtmf/org.eclipse.tracecompass.tmf.analysis.xml.core.tests/test_xml_files/test_valid/test_initialState_element2.xml
The file was modifiedtmf/org.eclipse.tracecompass.tmf.analysis.xml.core/src/org/eclipse/tracecompass/internal/tmf/analysis/xml/core/module/xmlPatternStateProvider.xsd