lttng-ust-java-tests.git
9 years agoAdd tests for the "lttng list" command
Alexandre Montplaisir [Tue, 8 Sep 2015 23:39:24 +0000 (19:39 -0400)] 
Add tests for the "lttng list" command

Should cover https://bugs.lttng.org/issues/933

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoUpdate for new ILttngTcpClientListener method name
Alexandre Montplaisir [Wed, 9 Sep 2015 19:56:40 +0000 (15:56 -0400)] 
Update for new ILttngTcpClientListener method name

listEnabledEvents() was renamed to listAvailableEvents().

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoUpdate for new class names
Alexandre Montplaisir [Wed, 2 Sep 2015 16:50:19 +0000 (12:50 -0400)] 
Update for new class names

LogLevelSelector, FilterChangeNotifier

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoRework filter tests to use in-same-thread notifications
Alexandre Montplaisir [Wed, 2 Sep 2015 00:50:35 +0000 (20:50 -0400)] 
Rework filter tests to use in-same-thread notifications

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoAdd a couple filter listener reg/dereg tests
Alexandre Montplaisir [Tue, 1 Sep 2015 20:09:26 +0000 (16:09 -0400)] 
Add a couple filter listener reg/dereg tests

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoMove some tests to the "events" subpackage
Alexandre Montplaisir [Mon, 31 Aug 2015 22:10:08 +0000 (18:10 -0400)] 
Move some tests to the "events" subpackage

Better clarify these now that we have "client" and "filter" tests too.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoAdd filter notifications and TCP client tests
Alexandre Montplaisir [Fri, 28 Aug 2015 22:59:57 +0000 (18:59 -0400)] 
Add filter notifications and TCP client tests

This required adding log level and filter string functionality
to ILttngSession.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoUse maven-failsafe-plugin instead of surefire to run integration tests
Alexandre Montplaisir [Fri, 31 Jul 2015 20:45:27 +0000 (16:45 -0400)] 
Use maven-failsafe-plugin instead of surefire to run integration tests

Failsafe is slightly more geared towards integration tests:
it runs in the "verify" phase instead of the "test" one, and
will not fail the build if a test fails, but will report it
at the end.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoSplit the lttng-tools wrapper in a separate artifact
Alexandre Montplaisir [Fri, 31 Jul 2015 20:07:52 +0000 (16:07 -0400)] 
Split the lttng-tools wrapper in a separate artifact

This will better isolate dependencies of each component. In
the future it could be moved to a separate git repository, but
for now it's easier to have all the LTTng Java stuff in the
same place.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoDetach the test name printing listener after the test is run
Alexandre Montplaisir [Thu, 30 Jul 2015 20:23:00 +0000 (16:23 -0400)] 
Detach the test name printing listener after the test is run

Or else they keep piling up, and the message "Now running test XYZ"
is displayed several times.

9 years agoProvide default createSession() factory method
Alexandre Montplaisir [Thu, 30 Jul 2015 03:37:43 +0000 (23:37 -0400)] 
Provide default createSession() factory method

Users may not care what backend is actually used, we can provide
a default one.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoMove the "LTTng control" to separate packages
Alexandre Montplaisir [Thu, 30 Jul 2015 00:19:28 +0000 (20:19 -0400)] 
Move the "LTTng control" to separate packages

This could move to its own project eventually?

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoIsolate the functions for executing shell commands in a new ShellUtils
Alexandre Montplaisir [Wed, 29 Jul 2015 23:25:51 +0000 (19:25 -0400)] 
Isolate the functions for executing shell commands in a new ShellUtils

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoAdd a TestRunner that will print test names to stdout
Alexandre Montplaisir [Wed, 29 Jul 2015 22:52:11 +0000 (18:52 -0400)] 
Add a TestRunner that will print test names to stdout

Eases debugging a bunch.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoEcho the commands being executed
Alexandre Montplaisir [Wed, 29 Jul 2015 21:07:14 +0000 (17:07 -0400)] 
Echo the commands being executed

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoAdd Javadoc and related settings
Alexandre Montplaisir [Mon, 27 Jul 2015 22:15:03 +0000 (18:15 -0400)] 
Add Javadoc and related settings

Always better to clearly identify what test does what.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoAdd copyright header to all source files
Alexandre Montplaisir [Mon, 27 Jul 2015 22:03:32 +0000 (18:03 -0400)] 
Add copyright header to all source files

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoActually add the profile to run the benchmarks
Alexandre Montplaisir [Sat, 25 Jul 2015 06:51:34 +0000 (02:51 -0400)] 
Actually add the profile to run the benchmarks

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoAdd a README and a LICENSE
Alexandre Montplaisir [Sat, 25 Jul 2015 06:29:33 +0000 (02:29 -0400)] 
Add a README and a LICENSE

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoConvert to a Maven project
Alexandre Montplaisir [Fri, 24 Jul 2015 22:39:36 +0000 (18:39 -0400)] 
Convert to a Maven project

That way it can run in other environments than the author's
Eclipse workspace.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoAdd multi-session tests
Alexandre Montplaisir [Fri, 24 Jul 2015 08:58:25 +0000 (04:58 -0400)] 
Add multi-session tests

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoTurn LttngSession(Control) into a non-static class
Alexandre Montplaisir [Fri, 24 Jul 2015 07:43:03 +0000 (03:43 -0400)] 
Turn LttngSession(Control) into a non-static class

By managing session objects, the session management becomes much
less verbose in the tests. Additionally, it becomes clear that
the @Before method has to create the session, and the @After has
to close it. And AutoCloseable rocks, as usual.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoAdd log4j and legacy-API tests
Alexandre Montplaisir [Fri, 24 Jul 2015 04:31:50 +0000 (00:31 -0400)] 
Add log4j and legacy-API tests

We can re-use the existing tests into an abstract class.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoAdd some integration tests for JUL
Alexandre Montplaisir [Fri, 24 Jul 2015 00:53:57 +0000 (20:53 -0400)] 
Add some integration tests for JUL

as well as more functionality to LttngSessionControl.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoRename the project to a general ust-java-tests
Alexandre Montplaisir [Thu, 23 Jul 2015 15:22:44 +0000 (11:22 -0400)] 
Rename the project to a general ust-java-tests

This can hold both unit/integration tests as well as
benchmarks. Reshuffle the package names a bit to do so.

Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
9 years agoAdd benchmarks for old LTTng-JUL API vs. new one
Alexandre Montplaisir [Tue, 21 Jul 2015 20:12:53 +0000 (16:12 -0400)] 
Add benchmarks for old LTTng-JUL API vs. new one

Also move the tests in subpackages.

9 years agoSwitch to use the Lttng-Ust Java Agent API, refactor using JUnit
Alexandre Montplaisir [Tue, 21 Jul 2015 00:01:52 +0000 (20:01 -0400)] 
Switch to use the Lttng-Ust Java Agent API, refactor using JUnit

12 years agoCommit latest version
Alexandre Montplaisir [Mon, 11 Jun 2012 02:08:17 +0000 (22:08 -0400)] 
Commit latest version

12 years agoInitial commit
Alexandre Montplaisir [Fri, 4 May 2012 04:51:39 +0000 (00:51 -0400)] 
Initial commit

This page took 0.026844 seconds and 4 git commands to generate.