lttng: Do not rebuild the SS in every single state system test
authorAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Sat, 8 Nov 2014 08:48:41 +0000 (09:48 +0100)
committerAlexandre Montplaisir <alexmonthy@voxpopuli.im>
Mon, 10 Nov 2014 16:34:28 +0000 (11:34 -0500)
commit392bf48699ba4aafcc5002c3854fe05e6b354ac1
treea4aa868cd8fda2253f75eb27a490048026163069
parent86b10041b7ad12360ff5b0966d84a1521b63919d
lttng: Do not rebuild the SS in every single state system test

At some point we changed the state system tests to rebuild the whole
thing in the @Before, because at that point AssumeTrue() inside a
@BeforeClass did not work very well. Unfortunately this made running
the tests much longer.

Instead, really build the analysis/state system once per test class,
but only keep the AssumeTrue() in the main @Before that is ran every
test. That check will test a static boolean set by the @BeforeClass.

tl;dr Make the state system tests ~20 times faster.

Change-Id: I96a137e0d2ec871f92efe586ba6456aca0a61129
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Reviewed-on: https://git.eclipse.org/r/36184
Tested-by: Hudson CI
Reviewed-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
Tested-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
org.eclipse.tracecompass.lttng2.kernel.core.tests/src/org/eclipse/tracecompass/lttng2/kernel/core/tests/stateprovider/PartialStateSystemTest.java
org.eclipse.tracecompass.lttng2.kernel.core.tests/src/org/eclipse/tracecompass/lttng2/kernel/core/tests/stateprovider/StateSystemFullHistoryTest.java
org.eclipse.tracecompass.lttng2.kernel.core.tests/src/org/eclipse/tracecompass/lttng2/kernel/core/tests/stateprovider/StateSystemInMemoryTest.java
org.eclipse.tracecompass.lttng2.kernel.core.tests/src/org/eclipse/tracecompass/lttng2/kernel/core/tests/stateprovider/StateSystemTest.java
This page took 0.030523 seconds and 5 git commands to generate.