Add tests for "lttng list" when using the legacy agent
[lttng-ust-java-tests.git] / README.md
index c44a5db62c8aaffd52d772594a87f59be921994f..1bd43fd3244a81240ad6a837875dea489080f6e4 100644 (file)
--- a/README.md
+++ b/README.md
@@ -54,8 +54,32 @@ so make sure the output mentions succesful tests and not skipped ones.
 Please make sure you have no `lttng` session active prior to or during the
 tests, or it might interfere with the test runs!
 
-Detailed JUnit test reports will be available as usual under
-`target/surefire-reports/`
+Detailed JUnit test reports will be available under
+`lttng-ust-java-tests-{jul|log4j}/target/failsafe-reports/`
+
+
+Setting library paths
+---------------------
+
+By default, the tests will look for the Java and JNI libraries in the default
+locations of `make install` (`/usr/local/lib`, `/usr/local/share/java`, etc.)
+
+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
+
+To specify a different locations for the JNI .so libraries, you can set the
+`-Djava.library.path` property on the JVM:
+
+    mvn (...) -DargLine=-Djava.library.path=/usr/lib
+
+Note: do not use `MAVEN_OPTS` to set the library path, since the `argLine`
+property defined in the build will overwrite it.
 
 
 Running the benchmarks
This page took 0.022612 seconds and 4 git commands to generate.