]>
git.lttng.org Git - lttng-ust-java-tests.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Alexandre Montplaisir [Thu, 18 Feb 2016 21:34:37 +0000 (16:34 -0500)]
Attach exception messages to JUnit fail() calls
Makes failures more informative!
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Thu, 18 Feb 2016 20:35:41 +0000 (15:35 -0500)]
Document how to set non-default library paths
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 12 Feb 2016 16:37:05 +0000 (11:37 -0500)]
Add tests for filter notification ordering
There was a bug in the Java agent with regards to agent teardown:
upon disconnection, the list of tracked events was cleared but no
corresponding filter change notifications were sent! This could leave
some event rules dangling, and future listeners would get incorrectly
notified that these events were enabled while they were not.
Add some tests to cover for this use case.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 5 Feb 2016 23:07:10 +0000 (18:07 -0500)]
Fix latest tests
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 5 Feb 2016 21:16:35 +0000 (16:16 -0500)]
Add tests for context-related filtering
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Wed, 20 Jan 2016 20:01:47 +0000 (15:01 -0500)]
Add tests for application context retrieval
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Thu, 4 Feb 2016 21:26:06 +0000 (16:26 -0500)]
Add test to to enable events then destroying the session
Upon session destroy, the sessiond should send the corresponding
agent messages to disable the events that were present in the session.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Thu, 28 Jan 2016 21:16:52 +0000 (16:16 -0500)]
Add generic context test
We can test context retriever registration/unregistration
independently of the logging APIs.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Thu, 28 Jan 2016 20:43:19 +0000 (15:43 -0500)]
Update for new context APIs
No new tests yet, those will come later!
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Wed, 3 Feb 2016 20:58:55 +0000 (15:58 -0500)]
Add tests for localized messages
This does not apply to the log4j (1.2.x) API, but may apply to
future ones.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Wed, 20 Jan 2016 21:55:45 +0000 (16:55 -0500)]
Split the tests package in 3 separate artifacts
Instead of one test package containing both the JUL and log4j tests,
we can define three different ones (-common, -jul, -log4j, similar to
the runtime packages) so that the code only depend on its minimal set
of dependencies.
Will also make it easier to integrate in the runtime project once we
move that to Maven too...
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Mon, 14 Sep 2015 20:16:48 +0000 (16:16 -0400)]
Handle filter strings being passed by the sessiond
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Wed, 9 Sep 2015 20:57:05 +0000 (16:57 -0400)]
Fix typo
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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.
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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.
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
Alexandre Montplaisir [Mon, 11 Jun 2012 02:08:17 +0000 (22:08 -0400)]
Commit latest version
Alexandre Montplaisir [Fri, 4 May 2012 04:51:39 +0000 (00:51 -0400)]
Initial commit
This page took 0.030835 seconds and 4 git commands to generate.