Skip to content

Commit

Permalink
More granular steps in the Makefile, can help with running all or sin…
Browse files Browse the repository at this point in the history
…gle Java tests (and with ASAN build - https://github.com/facebook/rocksdb/wiki/JNI-Debugging) (facebook#1237)
  • Loading branch information
adamretter authored and IslamAbdelRahman committed Jul 29, 2016
1 parent 7c01d65 commit 9ae92f5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1378,6 +1378,12 @@ rocksdbjava: $(java_libobjects)
jclean:
cd java;$(MAKE) clean;

jtest_compile: rocksdbjava
cd java;$(MAKE) java_test

jtest_run:
cd java;$(MAKE) run_test

jtest: rocksdbjava
cd java;$(MAKE) sample;$(MAKE) test;

Expand Down
4 changes: 3 additions & 1 deletion java/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,9 @@ java_test: resolve_test_deps
$(TEST_SRC)/org/rocksdb/*.java
$(AM_V_at)javah -cp $(MAIN_CLASSES):$(TEST_CLASSES) -d $(NATIVE_INCLUDE) -jni $(NATIVE_JAVA_TEST_CLASSES)

test: java resolve_test_deps java_test
test: java resolve_test_deps java_test run_test

run_test:
java -ea -Xcheck:jni -Djava.library.path=target -cp "$(MAIN_CLASSES):$(TEST_CLASSES):$(JAVA_TESTCLASSPATH):target/*" org.rocksdb.test.RocksJunitRunner $(JAVA_TESTS)

db_bench: java
Expand Down

0 comments on commit 9ae92f5

Please sign in to comment.