Skip to content

Commit d0d9c15

Browse files
authored
[REVIEW][Java] Add instructions on how to run a single test (#1004)
This PR adds some lines to the Java specific readme, explaining how to run a single test/a single test suite (useful in case of debugging or error reproduction). Authors: - Lorenzo Dematté (https://github.com/ldematte) - Corey J. Nolet (https://github.com/cjnolet) Approvers: - MithunR (https://github.com/mythrocks) - Corey J. Nolet (https://github.com/cjnolet) URL: #1004
1 parent 969d633 commit d0d9c15

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

java/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ do `./build.sh java` in the top level directory or just do `./build.sh` in this
2525

2626
Run `./build.sh --run-java-tests` from this directory.
2727

28+
To run a single test:
29+
```sh
30+
cd cuvs-java/
31+
mvn verify -Dintegration-test=com.nvidia.cuvs.CagraBuildAndSearchIT
32+
```
33+
Be sure to set (manually, if needed) your `LD_LIBRARY_PATH` to include the directory with the appropriate (matching)
34+
version of `libcuvs.so`.
35+
Also, ensure that your panama bindings are up-to-date. They can be re-generated by running:
36+
```sh
37+
./panama-bindings/generate-bindings.sh
38+
```
39+
2840

2941
## Examples
3042

0 commit comments

Comments
 (0)