2015-07-14 16:44:51 +00:00
|
|
|
NATIVE_JAVA_CLASSES = org.rocksdb.AbstractCompactionFilter\
|
|
|
|
org.rocksdb.AbstractComparator\
|
2014-11-09 19:08:35 +00:00
|
|
|
org.rocksdb.AbstractSlice\
|
2015-08-04 23:07:17 +00:00
|
|
|
org.rocksdb.BackupEngine\
|
2014-11-09 19:08:35 +00:00
|
|
|
org.rocksdb.BackupableDB\
|
|
|
|
org.rocksdb.BackupableDBOptions\
|
|
|
|
org.rocksdb.BlockBasedTableConfig\
|
|
|
|
org.rocksdb.BloomFilter\
|
2014-11-21 20:57:32 +00:00
|
|
|
org.rocksdb.Checkpoint\
|
2014-11-09 19:08:35 +00:00
|
|
|
org.rocksdb.ColumnFamilyHandle\
|
2014-10-31 22:39:14 +00:00
|
|
|
org.rocksdb.ColumnFamilyOptions\
|
2014-11-09 19:08:35 +00:00
|
|
|
org.rocksdb.Comparator\
|
|
|
|
org.rocksdb.ComparatorOptions\
|
|
|
|
org.rocksdb.DBOptions\
|
|
|
|
org.rocksdb.DirectComparator\
|
|
|
|
org.rocksdb.DirectSlice\
|
2015-03-22 17:30:51 +00:00
|
|
|
org.rocksdb.Env\
|
2014-11-09 19:09:39 +00:00
|
|
|
org.rocksdb.FlushOptions\
|
2014-11-09 19:08:35 +00:00
|
|
|
org.rocksdb.Filter\
|
|
|
|
org.rocksdb.GenericRateLimiterConfig\
|
|
|
|
org.rocksdb.HashLinkedListMemTableConfig\
|
|
|
|
org.rocksdb.HashSkipListMemTableConfig\
|
2015-03-10 22:16:21 +00:00
|
|
|
org.rocksdb.Logger\
|
2014-11-09 19:08:35 +00:00
|
|
|
org.rocksdb.MergeOperator\
|
|
|
|
org.rocksdb.Options\
|
|
|
|
org.rocksdb.PlainTableConfig\
|
|
|
|
org.rocksdb.ReadOptions\
|
2015-07-14 16:48:16 +00:00
|
|
|
org.rocksdb.RemoveEmptyValueCompactionFilter\
|
2014-11-09 19:08:35 +00:00
|
|
|
org.rocksdb.RestoreBackupableDB\
|
|
|
|
org.rocksdb.RestoreOptions\
|
|
|
|
org.rocksdb.RocksDB\
|
|
|
|
org.rocksdb.RocksEnv\
|
|
|
|
org.rocksdb.RocksIterator\
|
2015-03-22 17:30:51 +00:00
|
|
|
org.rocksdb.RocksMemEnv\
|
2014-11-09 19:08:35 +00:00
|
|
|
org.rocksdb.SkipListMemTableConfig\
|
|
|
|
org.rocksdb.Slice\
|
|
|
|
org.rocksdb.Statistics\
|
2015-01-25 21:05:29 +00:00
|
|
|
org.rocksdb.TransactionLogIterator\
|
2014-11-17 18:22:44 +00:00
|
|
|
org.rocksdb.TtlDB\
|
2014-11-09 19:08:35 +00:00
|
|
|
org.rocksdb.VectorMemTableConfig\
|
2015-01-30 20:05:45 +00:00
|
|
|
org.rocksdb.Snapshot\
|
2014-11-09 19:08:35 +00:00
|
|
|
org.rocksdb.StringAppendOperator\
|
|
|
|
org.rocksdb.WriteBatch\
|
|
|
|
org.rocksdb.WriteBatch.Handler\
|
2015-01-31 19:43:09 +00:00
|
|
|
org.rocksdb.WriteOptions\
|
2015-01-03 14:52:07 +00:00
|
|
|
org.rocksdb.WriteBatchWithIndex\
|
|
|
|
org.rocksdb.WBWIRocksIterator
|
2014-05-14 05:22:21 +00:00
|
|
|
|
2015-01-31 19:43:09 +00:00
|
|
|
NATIVE_JAVA_TEST_CLASSES = org.rocksdb.WriteBatchTest\
|
|
|
|
org.rocksdb.WriteBatchTestInternalHelper
|
|
|
|
|
2014-10-07 18:43:04 +00:00
|
|
|
ROCKSDB_MAJOR = $(shell egrep "ROCKSDB_MAJOR.[0-9]" ../include/rocksdb/version.h | cut -d ' ' -f 3)
|
|
|
|
ROCKSDB_MINOR = $(shell egrep "ROCKSDB_MINOR.[0-9]" ../include/rocksdb/version.h | cut -d ' ' -f 3)
|
|
|
|
ROCKSDB_PATCH = $(shell egrep "ROCKSDB_PATCH.[0-9]" ../include/rocksdb/version.h | cut -d ' ' -f 3)
|
2014-10-02 18:07:45 +00:00
|
|
|
|
Add a jni library for rocksdb which supports Open, Get, Put, and Close.
Summary:
This diff contains a simple jni library for rocksdb which supports open, get,
put and closeusing default options (including Options, ReadOptions, and
WriteOptions.) In the usual case, Java developers can use the c++ rocksdb
library in the way similar to the following:
RocksDB db = RocksDB.open(path_to_db);
...
db.put("hello".getBytes(), "world".getBytes();
byte[] value = db.get("hello".getBytes());
...
db.close();
Specifically, this diff has the following major classes:
* RocksDB: a Java wrapper class which forwards the operations
from the java side to c++ rocksdb library.
* RocksDBException: ncapsulates the error of an operation.
This exception type is used to describe an internal error from
the c++ rocksdb library.
This diff also include a simple java sample code calling c++ rocksdb library.
To build the rocksdb jni library, simply run make jni, and make jtest will try to
build and run the sample code.
Note that if the rocksdb is not built with the default glibc that Java uses,
java will try to load the wrong glibc during the run time. As a result,
the sample code might not work properly during the run time.
Test Plan:
* make jni
* make jtest
Reviewers: haobo, dhruba, sdong, igor, ljin
Reviewed By: dhruba
CC: leveldb, xjin
Differential Revision: https://reviews.facebook.net/D17109
2014-03-28 21:19:21 +00:00
|
|
|
NATIVE_INCLUDE = ./include
|
2014-09-26 20:57:12 +00:00
|
|
|
ARCH := $(shell getconf LONG_BIT)
|
2014-10-02 18:07:45 +00:00
|
|
|
ROCKSDB_JAR = rocksdbjni-$(ROCKSDB_MAJOR).$(ROCKSDB_MINOR).$(ROCKSDB_PATCH)-linux$(ARCH).jar
|
2014-09-26 20:57:12 +00:00
|
|
|
ifeq ($(PLATFORM), OS_MACOSX)
|
2014-10-02 18:07:45 +00:00
|
|
|
ROCKSDB_JAR = rocksdbjni-$(ROCKSDB_MAJOR).$(ROCKSDB_MINOR).$(ROCKSDB_PATCH)-osx.jar
|
2014-09-26 20:57:12 +00:00
|
|
|
endif
|
Add a jni library for rocksdb which supports Open, Get, Put, and Close.
Summary:
This diff contains a simple jni library for rocksdb which supports open, get,
put and closeusing default options (including Options, ReadOptions, and
WriteOptions.) In the usual case, Java developers can use the c++ rocksdb
library in the way similar to the following:
RocksDB db = RocksDB.open(path_to_db);
...
db.put("hello".getBytes(), "world".getBytes();
byte[] value = db.get("hello".getBytes());
...
db.close();
Specifically, this diff has the following major classes:
* RocksDB: a Java wrapper class which forwards the operations
from the java side to c++ rocksdb library.
* RocksDBException: ncapsulates the error of an operation.
This exception type is used to describe an internal error from
the c++ rocksdb library.
This diff also include a simple java sample code calling c++ rocksdb library.
To build the rocksdb jni library, simply run make jni, and make jtest will try to
build and run the sample code.
Note that if the rocksdb is not built with the default glibc that Java uses,
java will try to load the wrong glibc during the run time. As a result,
the sample code might not work properly during the run time.
Test Plan:
* make jni
* make jtest
Reviewers: haobo, dhruba, sdong, igor, ljin
Reviewed By: dhruba
CC: leveldb, xjin
Differential Revision: https://reviews.facebook.net/D17109
2014-03-28 21:19:21 +00:00
|
|
|
|
2015-03-10 22:16:21 +00:00
|
|
|
JAVA_TESTS = org.rocksdb.BackupableDBOptionsTest\
|
2015-08-04 23:07:17 +00:00
|
|
|
org.rocksdb.BackupEngineTest\
|
2015-01-31 19:43:09 +00:00
|
|
|
org.rocksdb.BackupableDBTest\
|
|
|
|
org.rocksdb.BlockBasedTableConfigTest\
|
|
|
|
org.rocksdb.CheckPointTest\
|
|
|
|
org.rocksdb.ColumnFamilyOptionsTest\
|
|
|
|
org.rocksdb.ColumnFamilyTest\
|
|
|
|
org.rocksdb.ComparatorOptionsTest\
|
|
|
|
org.rocksdb.ComparatorTest\
|
|
|
|
org.rocksdb.CompressionOptionsTest\
|
|
|
|
org.rocksdb.DBOptionsTest\
|
|
|
|
org.rocksdb.DirectComparatorTest\
|
|
|
|
org.rocksdb.DirectSliceTest\
|
|
|
|
org.rocksdb.util.EnvironmentTest\
|
|
|
|
org.rocksdb.FilterTest\
|
|
|
|
org.rocksdb.FlushTest\
|
|
|
|
org.rocksdb.InfoLogLevelTest\
|
|
|
|
org.rocksdb.KeyMayExistTest\
|
2015-08-04 23:07:17 +00:00
|
|
|
org.rocksdb.LoggerTest\
|
2015-01-31 19:43:09 +00:00
|
|
|
org.rocksdb.MemTableTest\
|
|
|
|
org.rocksdb.MergeTest\
|
|
|
|
org.rocksdb.MixedOptionsTest\
|
2015-08-04 23:07:17 +00:00
|
|
|
org.rocksdb.NativeLibraryLoaderTest\
|
2015-01-31 19:43:09 +00:00
|
|
|
org.rocksdb.OptionsTest\
|
|
|
|
org.rocksdb.PlainTableConfigTest\
|
|
|
|
org.rocksdb.ReadOnlyTest\
|
|
|
|
org.rocksdb.ReadOptionsTest\
|
|
|
|
org.rocksdb.RocksDBTest\
|
|
|
|
org.rocksdb.RocksEnvTest\
|
|
|
|
org.rocksdb.RocksIteratorTest\
|
2015-03-22 17:30:51 +00:00
|
|
|
org.rocksdb.RocksMemEnvTest\
|
2015-01-31 19:43:09 +00:00
|
|
|
org.rocksdb.util.SizeUnitTest\
|
|
|
|
org.rocksdb.SliceTest\
|
|
|
|
org.rocksdb.SnapshotTest\
|
|
|
|
org.rocksdb.TransactionLogIteratorTest\
|
|
|
|
org.rocksdb.TtlDBTest\
|
|
|
|
org.rocksdb.StatisticsCollectorTest\
|
|
|
|
org.rocksdb.WriteBatchHandlerTest\
|
|
|
|
org.rocksdb.WriteBatchTest\
|
2016-02-03 19:13:03 +00:00
|
|
|
org.rocksdb.WriteBatchThreadedTest\
|
2015-01-31 19:43:09 +00:00
|
|
|
org.rocksdb.WriteOptionsTest\
|
|
|
|
org.rocksdb.WriteBatchWithIndexTest
|
|
|
|
|
2015-01-31 22:23:59 +00:00
|
|
|
MAIN_SRC = src/main/java
|
2015-01-31 19:43:09 +00:00
|
|
|
TEST_SRC = src/test/java
|
|
|
|
OUTPUT = target
|
2015-01-31 22:23:59 +00:00
|
|
|
MAIN_CLASSES = $(OUTPUT)/classes
|
2015-01-31 19:43:09 +00:00
|
|
|
TEST_CLASSES = $(OUTPUT)/test-classes
|
2015-01-31 22:23:59 +00:00
|
|
|
JAVADOC = $(OUTPUT)/apidocs
|
2014-11-02 00:08:41 +00:00
|
|
|
|
2015-01-31 22:42:13 +00:00
|
|
|
BENCHMARK_MAIN_SRC = benchmark/src/main/java
|
|
|
|
BENCHMARK_OUTPUT = benchmark/target
|
|
|
|
BENCHMARK_MAIN_CLASSES = $(BENCHMARK_OUTPUT)/classes
|
|
|
|
|
2015-01-31 23:43:01 +00:00
|
|
|
SAMPLES_MAIN_SRC = samples/src/main/java
|
|
|
|
SAMPLES_OUTPUT = samples/target
|
|
|
|
SAMPLES_MAIN_CLASSES = $(SAMPLES_OUTPUT)/classes
|
|
|
|
|
2015-01-31 23:21:19 +00:00
|
|
|
JAVA_TEST_LIBDIR = test-libs
|
|
|
|
JAVA_JUNIT_JAR = $(JAVA_TEST_LIBDIR)/junit-4.12.jar
|
|
|
|
JAVA_HAMCR_JAR = $(JAVA_TEST_LIBDIR)/hamcrest-core-1.3.jar
|
|
|
|
JAVA_MOCKITO_JAR = $(JAVA_TEST_LIBDIR)/mockito-all-1.10.19.jar
|
|
|
|
JAVA_CGLIB_JAR = $(JAVA_TEST_LIBDIR)/cglib-2.2.2.jar
|
|
|
|
JAVA_ASSERTJ_JAR = $(JAVA_TEST_LIBDIR)/assertj-core-1.7.1.jar
|
|
|
|
JAVA_TESTCLASSPATH = $(JAVA_JUNIT_JAR):$(JAVA_HAMCR_JAR):$(JAVA_MOCKITO_JAR):$(JAVA_CGLIB_JAR):$(JAVA_ASSERTJ_JAR)
|
2014-11-02 00:08:41 +00:00
|
|
|
|
2015-07-14 17:39:22 +00:00
|
|
|
MVN_LOCAL = ~/.m2/repository
|
|
|
|
|
Add a jni library for rocksdb which supports Open, Get, Put, and Close.
Summary:
This diff contains a simple jni library for rocksdb which supports open, get,
put and closeusing default options (including Options, ReadOptions, and
WriteOptions.) In the usual case, Java developers can use the c++ rocksdb
library in the way similar to the following:
RocksDB db = RocksDB.open(path_to_db);
...
db.put("hello".getBytes(), "world".getBytes();
byte[] value = db.get("hello".getBytes());
...
db.close();
Specifically, this diff has the following major classes:
* RocksDB: a Java wrapper class which forwards the operations
from the java side to c++ rocksdb library.
* RocksDBException: ncapsulates the error of an operation.
This exception type is used to describe an internal error from
the c++ rocksdb library.
This diff also include a simple java sample code calling c++ rocksdb library.
To build the rocksdb jni library, simply run make jni, and make jtest will try to
build and run the sample code.
Note that if the rocksdb is not built with the default glibc that Java uses,
java will try to load the wrong glibc during the run time. As a result,
the sample code might not work properly during the run time.
Test Plan:
* make jni
* make jtest
Reviewers: haobo, dhruba, sdong, igor, ljin
Reviewed By: dhruba
CC: leveldb, xjin
Differential Revision: https://reviews.facebook.net/D17109
2014-03-28 21:19:21 +00:00
|
|
|
clean:
|
2015-09-16 19:38:17 +00:00
|
|
|
$(AM_V_at)rm -rf include/*
|
|
|
|
$(AM_V_at)rm -rf test-libs/
|
|
|
|
$(AM_V_at)rm -rf $(OUTPUT)
|
|
|
|
$(AM_V_at)rm -rf $(BENCHMARK_OUTPUT)
|
|
|
|
$(AM_V_at)rm -rf $(SAMPLES_OUTPUT)
|
2014-11-19 20:15:01 +00:00
|
|
|
|
Add a jni library for rocksdb which supports Open, Get, Put, and Close.
Summary:
This diff contains a simple jni library for rocksdb which supports open, get,
put and closeusing default options (including Options, ReadOptions, and
WriteOptions.) In the usual case, Java developers can use the c++ rocksdb
library in the way similar to the following:
RocksDB db = RocksDB.open(path_to_db);
...
db.put("hello".getBytes(), "world".getBytes();
byte[] value = db.get("hello".getBytes());
...
db.close();
Specifically, this diff has the following major classes:
* RocksDB: a Java wrapper class which forwards the operations
from the java side to c++ rocksdb library.
* RocksDBException: ncapsulates the error of an operation.
This exception type is used to describe an internal error from
the c++ rocksdb library.
This diff also include a simple java sample code calling c++ rocksdb library.
To build the rocksdb jni library, simply run make jni, and make jtest will try to
build and run the sample code.
Note that if the rocksdb is not built with the default glibc that Java uses,
java will try to load the wrong glibc during the run time. As a result,
the sample code might not work properly during the run time.
Test Plan:
* make jni
* make jtest
Reviewers: haobo, dhruba, sdong, igor, ljin
Reviewed By: dhruba
CC: leveldb, xjin
Differential Revision: https://reviews.facebook.net/D17109
2014-03-28 21:19:21 +00:00
|
|
|
|
2014-10-02 20:57:54 +00:00
|
|
|
javadocs:
|
2015-09-16 19:38:17 +00:00
|
|
|
$(AM_V_GEN)mkdir -p $(JAVADOC)
|
|
|
|
$(AM_V_at)javadoc -d $(JAVADOC) -sourcepath $(MAIN_SRC) -subpackages org
|
2014-10-02 20:57:54 +00:00
|
|
|
|
2015-01-31 19:43:09 +00:00
|
|
|
javalib: java java_test javadocs
|
2014-11-19 20:21:21 +00:00
|
|
|
|
2015-01-31 19:43:09 +00:00
|
|
|
java:
|
2015-09-16 19:38:17 +00:00
|
|
|
$(AM_V_GEN)mkdir -p $(MAIN_CLASSES)
|
|
|
|
$(AM_V_at)javac -d $(MAIN_CLASSES)\
|
2015-01-31 22:23:59 +00:00
|
|
|
$(MAIN_SRC)/org/rocksdb/util/*.java\
|
|
|
|
$(MAIN_SRC)/org/rocksdb/*.java
|
2015-09-16 19:38:17 +00:00
|
|
|
$(AM_V_at)@cp ../HISTORY.md ./HISTORY-CPP.md
|
|
|
|
$(AM_V_at)@rm -f ./HISTORY-CPP.md
|
|
|
|
$(AM_V_at)javah -cp $(MAIN_CLASSES) -d $(NATIVE_INCLUDE) -jni $(NATIVE_JAVA_CLASSES)
|
Add a jni library for rocksdb which supports Open, Get, Put, and Close.
Summary:
This diff contains a simple jni library for rocksdb which supports open, get,
put and closeusing default options (including Options, ReadOptions, and
WriteOptions.) In the usual case, Java developers can use the c++ rocksdb
library in the way similar to the following:
RocksDB db = RocksDB.open(path_to_db);
...
db.put("hello".getBytes(), "world".getBytes();
byte[] value = db.get("hello".getBytes());
...
db.close();
Specifically, this diff has the following major classes:
* RocksDB: a Java wrapper class which forwards the operations
from the java side to c++ rocksdb library.
* RocksDBException: ncapsulates the error of an operation.
This exception type is used to describe an internal error from
the c++ rocksdb library.
This diff also include a simple java sample code calling c++ rocksdb library.
To build the rocksdb jni library, simply run make jni, and make jtest will try to
build and run the sample code.
Note that if the rocksdb is not built with the default glibc that Java uses,
java will try to load the wrong glibc during the run time. As a result,
the sample code might not work properly during the run time.
Test Plan:
* make jni
* make jtest
Reviewers: haobo, dhruba, sdong, igor, ljin
Reviewed By: dhruba
CC: leveldb, xjin
Differential Revision: https://reviews.facebook.net/D17109
2014-03-28 21:19:21 +00:00
|
|
|
|
2014-04-09 07:48:20 +00:00
|
|
|
sample: java
|
2015-09-16 19:38:17 +00:00
|
|
|
$(AM_V_GEN)mkdir -p $(SAMPLES_MAIN_CLASSES)
|
|
|
|
$(AM_V_at)javac -cp $(MAIN_CLASSES) -d $(SAMPLES_MAIN_CLASSES) $(SAMPLES_MAIN_SRC)/RocksDBSample.java
|
|
|
|
$(AM_V_at)@rm -rf /tmp/rocksdbjni
|
|
|
|
$(AM_V_at)@rm -rf /tmp/rocksdbjni_not_found
|
2015-01-31 23:43:01 +00:00
|
|
|
java -ea -Xcheck:jni -Djava.library.path=target -cp $(MAIN_CLASSES):$(SAMPLES_MAIN_CLASSES) RocksDBSample /tmp/rocksdbjni
|
2015-09-16 19:38:17 +00:00
|
|
|
$(AM_V_at)@rm -rf /tmp/rocksdbjni
|
|
|
|
$(AM_V_at)@rm -rf /tmp/rocksdbjni_not_found
|
2014-04-02 20:14:55 +00:00
|
|
|
|
2014-11-08 17:58:35 +00:00
|
|
|
column_family_sample: java
|
2015-09-16 19:38:17 +00:00
|
|
|
$(AM_V_GEN)mkdir -p $(SAMPLES_MAIN_CLASSES)
|
|
|
|
$(AM_V_at)javac -cp $(MAIN_CLASSES) -d $(SAMPLES_MAIN_CLASSES) $(SAMPLES_MAIN_SRC)/RocksDBColumnFamilySample.java
|
|
|
|
$(AM_V_at)@rm -rf /tmp/rocksdbjni
|
2015-01-31 23:43:01 +00:00
|
|
|
java -ea -Xcheck:jni -Djava.library.path=target -cp $(MAIN_CLASSES):$(SAMPLES_MAIN_CLASSES) RocksDBColumnFamilySample /tmp/rocksdbjni
|
2015-09-16 19:38:17 +00:00
|
|
|
$(AM_V_at)@rm -rf /tmp/rocksdbjni
|
2014-11-08 17:58:35 +00:00
|
|
|
|
2014-11-02 00:08:41 +00:00
|
|
|
resolve_test_deps:
|
2015-07-14 17:39:22 +00:00
|
|
|
test -s "$(JAVA_TEST_LIBDIR)" || mkdir -p "$(JAVA_TEST_LIBDIR)"
|
|
|
|
test -s "$(JAVA_JUNIT_JAR)" || cp $(MVN_LOCAL)/junit/junit/4.12/junit-4.12.jar $(JAVA_TEST_LIBDIR) || curl -k -L -o $(JAVA_JUNIT_JAR) http://search.maven.org/remotecontent?filepath=junit/junit/4.12/junit-4.12.jar
|
|
|
|
test -s "$(JAVA_HAMCR_JAR)" || cp $(MVN_LOCAL)/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar $(JAVA_TEST_LIBDIR) || curl -k -L -o $(JAVA_HAMCR_JAR) http://search.maven.org/remotecontent?filepath=org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar
|
|
|
|
test -s "$(JAVA_MOCKITO_JAR)" || cp $(MVN_LOCAL)/org/mockito/mockito-all/1.10.19/mockito-all-1.10.19.jar $(JAVA_TEST_LIBDIR) || curl -k -L -o "$(JAVA_MOCKITO_JAR)" http://search.maven.org/remotecontent?filepath=org/mockito/mockito-all/1.10.19/mockito-all-1.10.19.jar
|
|
|
|
test -s "$(JAVA_CGLIB_JAR)" || cp $(MVN_LOCAL)/cglib/cglib/2.2.2/cglib-2.2.2.jar $(JAVA_TEST_LIBDIR) || curl -k -L -o "$(JAVA_CGLIB_JAR)" http://search.maven.org/remotecontent?filepath=cglib/cglib/2.2.2/cglib-2.2.2.jar
|
|
|
|
test -s "$(JAVA_ASSERTJ_JAR)" || cp $(MVN_LOCAL)/org/assertj/assertj-core/1.7.1/assertj-core-1.7.1.jar $(JAVA_TEST_LIBDIR) || curl -k -L -o "$(JAVA_ASSERTJ_JAR)" http://central.maven.org/maven2/org/assertj/assertj-core/1.7.1/assertj-core-1.7.1.jar
|
2014-11-02 00:08:41 +00:00
|
|
|
|
2015-01-31 19:43:09 +00:00
|
|
|
java_test: resolve_test_deps
|
2015-09-16 19:38:17 +00:00
|
|
|
$(AM_V_GEN)mkdir -p $(TEST_CLASSES)
|
|
|
|
$(AM_V_at)javac -cp $(MAIN_CLASSES):$(JAVA_TESTCLASSPATH) -d $(TEST_CLASSES)\
|
2015-01-31 22:23:59 +00:00
|
|
|
$(TEST_SRC)/org/rocksdb/test/*.java\
|
|
|
|
$(TEST_SRC)/org/rocksdb/util/*.java\
|
|
|
|
$(TEST_SRC)/org/rocksdb/*.java
|
2015-09-16 19:38:17 +00:00
|
|
|
$(AM_V_at)javah -cp $(MAIN_CLASSES):$(TEST_CLASSES) -d $(NATIVE_INCLUDE) -jni $(NATIVE_JAVA_TEST_CLASSES)
|
2015-01-31 19:43:09 +00:00
|
|
|
|
|
|
|
test: java resolve_test_deps java_test
|
2015-03-09 18:07:08 +00:00
|
|
|
java -ea -Xcheck:jni -Djava.library.path=target -cp "$(MAIN_CLASSES):$(TEST_CLASSES):$(JAVA_TESTCLASSPATH):target/*" org.rocksdb.test.RocksJunitRunner $(JAVA_TESTS)
|
2014-04-09 07:48:20 +00:00
|
|
|
|
|
|
|
db_bench: java
|
2015-09-16 19:38:17 +00:00
|
|
|
$(AM_V_GEN)mkdir -p $(BENCHMARK_MAIN_CLASSES)
|
|
|
|
$(AM_V_at)javac -cp $(MAIN_CLASSES) -d $(BENCHMARK_MAIN_CLASSES) $(BENCHMARK_MAIN_SRC)/org/rocksdb/benchmark/*.java
|