summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Michael Jeanson [Fri, 14 Jan 2022 22:02:31 +0000 (22:02 +0000)]
Import project in Eclipse 4.22
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Jonathan Rajotte [Sat, 15 Jan 2022 00:08:06 +0000 (19:08 -0500)]
Adapt tests to babeltrace 2 output.
The application context type is not present when using babeltrace2 as of
today. This change might get reversed as needed in the future if the
omission of the type was an error on the reader side. For now remove
the type from the lookup and validate based on value only.
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Jonathan Rajotte [Fri, 14 Jan 2022 20:36:24 +0000 (15:36 -0500)]
Improve observability of checkForLttngTools for debugging
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Jonathan Rajotte Julien [Tue, 11 May 2021 18:53:47 +0000 (14:53 -0400)]
Document how to ignore SIGSEV for debugging
Jonathan Rajotte Julien [Tue, 11 May 2021 16:15:30 +0000 (12:15 -0400)]
README.md formatting
Jonathan Rajotte [Tue, 11 May 2021 15:49:10 +0000 (11:49 -0400)]
Add debugging example to ease life of non-java master
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Alexandre Montplaisir [Mon, 27 Mar 2017 19:14:33 +0000 (15:14 -0400)]
Bind the tests-common dependency to test <scope> only
It should only be used by test code.
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Alexandre Montplaisir [Mon, 27 Mar 2017 18:56:01 +0000 (14:56 -0400)]
Remove Guava dependency
It isn't even used! Easy to re-add if we ever need to, latest version is
21.0.
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Alexandre Montplaisir [Mon, 27 Mar 2017 18:54:12 +0000 (14:54 -0400)]
Add -SNAPSHOT suffix to version number
Master should annouce a SNAPSHOT version, from which we can then make
"real" releases. Bump to 1.1.0 at the same time.
Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Alexandre Montplaisir [Fri, 17 Feb 2017 22:20:07 +0000 (17:20 -0500)]
Remove some unused imports
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Tue, 7 Feb 2017 16:29:29 +0000 (11:29 -0500)]
Update Maven plugins versions
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 17 Jun 2016 19:15:42 +0000 (15:15 -0400)]
Add new benchmark with no loggers at all
Not extremely representative because of optimizations/JIT, as
the average time diminishes slightly if the number of iterations
increase. It can still give a rough idea of the impact of using
empty Loggers.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 3 Jun 2016 20:42:40 +0000 (16:42 -0400)]
Clear loggers both before AND after tests
Let's try this, it solved the problem in another case...
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 3 Jun 2016 19:49:37 +0000 (15:49 -0400)]
Clear loggers at the beginning of tests, not at the end
That way the very first test will also get a clean state.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Fri, 3 Jun 2016 19:05:24 +0000 (15:05 -0400)]
Clear the logger configuration before "list" tests
Loggers defined in previous tests often leak into these ones.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Thu, 2 Jun 2016 22:41:18 +0000 (18:41 -0400)]
Add workaround in log4j legacy API test
log4j doesn't seem to make it possible clear loggers the way
JUL does, so all loggers defined in previous tests are still
present in subsequent ones.
This coupled with the fact that the legacy agent attaches one
handler to the root logger, all loggers defined in previous
tests end up being visible by LTTng.
Ease up the passing requirement for a test so that it can
still work in these conditions.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Thu, 2 Jun 2016 21:51:54 +0000 (17:51 -0400)]
Do not use hierarchical logger names for standard tests
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Thu, 2 Jun 2016 05:14:06 +0000 (01:14 -0400)]
Add base and JUL tests to test logger hierarchy
Make sure "lttng list" correctly includes parent/child
loggers that may be visible by UST, even if they themselves
do not have LTTng log handlers attached.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Thu, 2 Jun 2016 01:49:29 +0000 (21:49 -0400)]
Add tests for "lttng list" when using the legacy agent
Highlights a bug in current master.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Wed, 1 Jun 2016 21:33:57 +0000 (17:33 -0400)]
Use a List instead of a Set for listEvents()
This way it will catch if there incorrectly are duplicate events.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Thu, 19 May 2016 22:18:49 +0000 (18:18 -0400)]
Test with context and retriever names with . and _
Note that LTTng will print periods as underscores in the trace,
which is known and fine, we just have to take it into consideration.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Thu, 19 May 2016 21:53:54 +0000 (17:53 -0400)]
Add test for invalid context names
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Thu, 19 May 2016 20:28:29 +0000 (16:28 -0400)]
Use >7-bit characters in event names
This will test the string encoding/decoding mechanisms more
thoroughly.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Tue, 12 Apr 2016 00:33:13 +0000 (20:33 -0400)]
Update for new LTTngAgent.dispose() method
The method was changed back to being non-static (to not break the
ABI with the old 2.7 class), so update our test code accordingly.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Thu, 18 Feb 2016 23:09:46 +0000 (18:09 -0500)]
Put common setup code in the utils classes
We now have a large amount of test classes, it's a bit simpler
to put the common, API-specific @BeforeClass and @AfterClass
code in the utils classes.
At the same time we can give slightly more information in case
of failure of these checks.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Thu, 18 Feb 2016 22:36:13 +0000 (17:36 -0500)]
Allow the TcpClientIT test to work with any sessiond
Instead of hard-coding for a root sessiond, we can try root
then fall-back on a user sessiond for these tests.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
Alexandre Montplaisir [Thu, 18 Feb 2016 22:11:15 +0000 (17:11 -0500)]
Replace test skipping with straight failures
Chasing after skipped tests is annoying. If the environment is
not set correctly, that should still count as a failure.
Signed-off-by: Alexandre Montplaisir <alexmonthy@voxpopuli.im>
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.033674 seconds and 4 git commands to generate.