Add 'log4j2' domain tests to the Log4j 2.x agent
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 2 Feb 2022 22:53:52 +0000 (22:53 +0000)
committerMichael Jeanson <mjeanson@efficios.com>
Tue, 15 Feb 2022 20:06:36 +0000 (20:06 +0000)
commit9db2c69aaa0ba078f044266dae8e0b92a6e98357
treec20eaaf0052dca0e05573a9e095341729110ce0d
parent7a4f0255e3d52ad76b194fb2e83bcdc6f641549e
Add 'log4j2' domain tests to the Log4j 2.x agent

The Log4j 2.x agent now supports registering with 2 different tracing
domains, the existing 'log4j' domain and the new 'log4j2' domain.

The following tags were added to filter the tests when running the test
suite :

  - agent:jul
  - agent:log4j
  - agent:log4j2
  - domain:jul
  - domain:log4j
  - domain:log4j2
  - benchmark

For example, we can exclude all the log4j2 agent tests when testing a
version of LTTng that doesn't implement it :

  mvn clean verify -Dgroups='!agent:log4j2'

Or to run only the log4j domain tests on all agents that include them :

  mvn clean verify -Dgroups='domain:log4j'

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
81 files changed:
README.md
lttng-tools-java/src/main/java/org/lttng/tools/ILttngSession.java
lttng-ust-java-tests-common/src/main/java/org/lttng/ust/agent/integration/filter/FilterListenerITBase.java
lttng-ust-java-tests-common/src/main/java/org/lttng/ust/agent/integration/filter/FilterListenerOrderingITBase.java
lttng-ust-java-tests-common/src/main/java/org/lttng/ust/agent/utils/EventRuleFactory.java
lttng-ust-java-tests-common/src/main/java/org/lttng/ust/agent/utils/ILogLevelStrings.java
lttng-ust-java-tests-common/src/test/java/org/lttng/ust/agent/integration/client/TcpClientIT.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/benchmarks/jul/handler/JulHandlerBenchmarkBase.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/benchmarks/jul/handler/builtin/DummyHandlerBenchmark.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/benchmarks/jul/handler/builtin/FileHandlerBenchmark.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/benchmarks/jul/handler/builtin/NoHandlerBenchmark.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/benchmarks/jul/handler/builtin/NoLoggerBenchmark.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/benchmarks/jul/handler/lttng/LttngJulHandlerTracingDisabledBenchmark.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/benchmarks/jul/handler/lttng/LttngJulHandlerTracingEnabledBenchmark.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/benchmarks/jul/handler/lttng/old/OldLttngJulHandlerTracingDisabledBenchmark.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/benchmarks/jul/handler/lttng/old/OldLttngJulHandlerTracingEnabledBenchmark.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/context/JulAppContextIT.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/context/JulAppContextOrderingIT.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulEnabledEventsIT.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulLegacyApiIT.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulLegacyApiLoggerHierarchyListIT.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulListEventsIT.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulLoggerHierarchyListIT.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/events/JulMultiSessionIT.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/filter/JulFilterListenerIT.java
lttng-ust-java-tests-jul/src/test/java/org/lttng/ust/agent/integration/filter/JulFilterListenerOrderingIT.java
lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/context/Log4jAppContextIT.java
lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/context/Log4jAppContextOrderingIT.java
lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/events/Log4jEnabledEventsIT.java
lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/events/Log4jLegacyApiIT.java
lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/events/Log4jListEventsIT.java
lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/events/Log4jMultiSessionIT.java
lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/filter/Log4jFilterListenerIT.java
lttng-ust-java-tests-log4j/src/test/java/org/lttng/ust/agent/integration/filter/Log4jFilterListenerOrderingIT.java
lttng-ust-java-tests-log4j2/.classpath
lttng-ust-java-tests-log4j2/pom.xml
lttng-ust-java-tests-log4j2/src/main/java/org/lttng/ust/agent/integration/context/Log4j2AppContextITBase.java [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/main/java/org/lttng/ust/agent/integration/context/Log4j2AppContextOrderingITBase.java [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/main/java/org/lttng/ust/agent/integration/events/Log4j2EnabledEventsITBase.java [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/main/java/org/lttng/ust/agent/integration/events/Log4j2ListEventsITBase.java [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/main/java/org/lttng/ust/agent/integration/events/Log4j2MultiSessionITBase.java [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/main/java/org/lttng/ust/agent/integration/filter/Log4j2FilterListenerITBase.java [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/main/java/org/lttng/ust/agent/integration/filter/Log4j2FilterListenerOrderingITBase.java [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/main/java/org/lttng/ust/agent/utils/Log4j2TestContext.java [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/main/java/org/lttng/ust/agent/utils/Log4j2TestUtils.java [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/java/org/lttng/ust/agent/integration/context/Log4j2AppContextIT.java
lttng-ust-java-tests-log4j2/src/test/java/org/lttng/ust/agent/integration/context/Log4j2AppContextOrderingIT.java
lttng-ust-java-tests-log4j2/src/test/java/org/lttng/ust/agent/integration/context/Log4j2CompatAppContextIT.java [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/java/org/lttng/ust/agent/integration/context/Log4j2CompatAppContextOrderingIT.java [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/java/org/lttng/ust/agent/integration/events/Log4j2CompatEnabledEventsIT.java [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/java/org/lttng/ust/agent/integration/events/Log4j2CompatListEventsIT.java [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/java/org/lttng/ust/agent/integration/events/Log4j2CompatMultiSessionIT.java [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/java/org/lttng/ust/agent/integration/events/Log4j2EnabledEventsIT.java
lttng-ust-java-tests-log4j2/src/test/java/org/lttng/ust/agent/integration/events/Log4j2ListEventsIT.java
lttng-ust-java-tests-log4j2/src/test/java/org/lttng/ust/agent/integration/events/Log4j2MultiSessionIT.java
lttng-ust-java-tests-log4j2/src/test/java/org/lttng/ust/agent/integration/filter/Log4j2CompatFilterListenerIT.java [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/java/org/lttng/ust/agent/integration/filter/Log4j2CompatFilterListenerOrderingIT.java [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/java/org/lttng/ust/agent/integration/filter/Log4j2FilterListenerIT.java
lttng-ust-java-tests-log4j2/src/test/java/org/lttng/ust/agent/integration/filter/Log4j2FilterListenerOrderingIT.java
lttng-ust-java-tests-log4j2/src/test/java/org/lttng/ust/agent/utils/Log4j2TestContext.java [deleted file]
lttng-ust-java-tests-log4j2/src/test/java/org/lttng/ust/agent/utils/Log4j2TestUtils.java [deleted file]
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.LOG4J2testManyLoggersAllAttached.xml [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.LOG4J2testManyLoggersNoneAttached.xml [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.LOG4J2testManyLoggersSomeAttached.xml [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.LOG4JtestManyLoggersAllAttached.xml [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.LOG4JtestManyLoggersNoneAttached.xml [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.LOG4JtestManyLoggersSomeAttached.xml [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.Log4j2AppContextIT.xml
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.Log4j2AppContextOrderingIT.xml
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.Log4j2CompatAppContextIT.xml [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.Log4j2CompatAppContextOrderingIT.xml [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.Log4j2CompatEnabledEventsIT.xml [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.Log4j2CompatFilterListenerOrderingIT.xml [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.Log4j2CompatMultiSessionIT.xml [new file with mode: 0644]
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.Log4j2EnabledEventsIT.xml
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.Log4j2FilterListenerOrderingIT.xml
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.Log4j2MultiSessionIT.xml
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.testManyLoggersAllAttached.xml [deleted file]
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.testManyLoggersNoneAttached.xml [deleted file]
lttng-ust-java-tests-log4j2/src/test/resources/log4j2.testManyLoggersSomeAttached.xml [deleted file]
pom.xml
This page took 0.03051 seconds and 4 git commands to generate.