X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=README.md;h=cf1c566693b8c8af35620ba31a9028c01de7c3a4;hb=9db2c69aaa0ba078f044266dae8e0b92a6e98357;hp=cfe2c0b5a8730c82558d823453ba46838bf8fa82;hpb=fd2b8059f2b96840e7169bf2a397c32b26216242;p=lttng-ust-java-tests.git diff --git a/README.md b/README.md index cfe2c0b..cf1c566 100644 --- a/README.md +++ b/README.md @@ -68,10 +68,11 @@ If for example, you installed into the `/usr` prefix instead of `/usr/local`, you can use the following properties to specify different locations for the lttng-ust-agent-java jars: - mvn clean verify - -Dcommon-jar-location=/usr/share/java/lttng-ust-agent-common.jar - -Djul-jar-location=/usr/share/java/lttng-ust-agent-jul.jar - -Dlog4j-jar-location=/usr/share/java/lttng-ust-agent-log4j.jar + mvn clean verify \ + -Dcommon-jar-location=/usr/share/java/lttng-ust-agent-common.jar \ + -Djul-jar-location=/usr/share/java/lttng-ust-agent-jul.jar \ + -Dlog4j-jar-location=/usr/share/java/lttng-ust-agent-log4j.jar \ + -Dlog4j2-jar-location=/usr/share/java/lttng-ust-agent-log4j2.jar To specify a different locations for the JNI .so libraries, you can set the `-Djava.library.path` property on the JVM: @@ -97,6 +98,20 @@ the first test set that is empty. See [2] for more info. [1] http://maven.apache.org/surefire/maven-failsafe-plugin/index.html [2] http://maven.apache.org/surefire/maven-failsafe-plugin/examples/single-test.html +Running tests by tags +--------------------- + +Tests can also be filtered by Junit tags or tag expressions [1], for example to +run only the Log4 1.x agent tests: + + mvn clean verify -Dgroups='agent:log4j' + +Or to exclude the tests of the Log4j2 domain: + + mvn clean verify -Dgroups='!domain:log4j2' + +[1] https://junit.org/junit5/docs/current/user-guide/#running-tests-tags + Debugging a test ----------------------