TMF: Add trace stub for TMF unit tests
authorGeneviève Bastien <gbastien+lttng@versatic.net>
Mon, 31 Mar 2014 18:34:44 +0000 (14:34 -0400)
committerGenevieve Bastien <gbastien+lttng@versatic.net>
Mon, 22 Sep 2014 14:28:28 +0000 (10:28 -0400)
commit1d8ab6929e85f25f9c9cd2d3730c4a07741942e8
tree73098b9d68628a085283c0755944d2c2c064bdca
parentedbdb7ea866a6f982285bfc9a2fd0de24951676b
TMF: Add trace stub for TMF unit tests

This new trace type uses a custom XML definition and converts custom XML
events to TmfEvents, where the fields and their values are defined through the
XML fields. To illustrate, here is the content of each type of event:

CustomXmlEvent: fields = "a | b", values = "1 | abd"

would transpose to this

Development trace: a = 1, b = "abd"

This type of trace will be useful to unit test analyses involving LTTng kernel
and UST traces for instance.

Change-Id: I41ac7206c1a54088c998d551a4174f2184b05f5b
Signed-off-by: Geneviève Bastien <gbastien+lttng@versatic.net>
Reviewed-on: https://git.eclipse.org/r/21265
Tested-by: Hudson CI
13 files changed:
org.eclipse.linuxtools.tmf.core.tests/META-INF/MANIFEST.MF
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/AllTmfCoreTests.java
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/stub/AllTests.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core.tests/src/org/eclipse/linuxtools/tmf/core/tests/trace/stub/XmlStubTraceTest.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core.tests/stubs/org/eclipse/linuxtools/tmf/tests/stubs/trace/xml/Messages.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core.tests/stubs/org/eclipse/linuxtools/tmf/tests/stubs/trace/xml/TmfXmlDevelopmentTrace.xml [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core.tests/stubs/org/eclipse/linuxtools/tmf/tests/stubs/trace/xml/TmfXmlDevelopmentTrace.xsd [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core.tests/stubs/org/eclipse/linuxtools/tmf/tests/stubs/trace/xml/TmfXmlTraceStub.java [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core.tests/stubs/org/eclipse/linuxtools/tmf/tests/stubs/trace/xml/messages.properties [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core.tests/testfiles/stub_xml_traces/invalid/txtFile.txt [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core.tests/testfiles/stub_xml_traces/invalid/xmlFile.xml [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core.tests/testfiles/stub_xml_traces/valid/test.xml [new file with mode: 0644]
org.eclipse.linuxtools.tmf.core/src/org/eclipse/linuxtools/tmf/core/parsers/custom/CustomXmlTraceDefinition.java
This page took 0.037715 seconds and 5 git commands to generate.