1. The tests depend on the compiled wrappers. If the wrappers are installed as
part of a package (e.g. Debian package) then this should 'just work'. Ant will
also look in the current directory for 'libcephfs.jar' and 'libcephfs-test.jar';
-and in ../.libs for the
+and in ../build/lib for the
JNI library. If all else fails, set the environment variables CEPHFS_JAR, and
CEPHFS_JNI_LIB accordingly.
<target name="test" depends="compile-tests-jar">
<junit printsummary="yes" haltonfailure="yes" showoutput="yes" fork="true">
- <sysproperty key="java.library.path" path="${env.CEPHFS_JNI_LIB}:../.libs/"/>
+ <sysproperty key="java.library.path" path="${env.CEPHFS_JNI_LIB}:../../build/lib/"/>
<sysproperty key="CEPH_CONF_FILE" path="${env.CEPHFS_CONF}"/>
<jvmarg value="-Xcheck:jni"/>
<classpath>
<target name="test-compat" depends="compile-tests-jar">
<junit printsummary="yes" haltonfailure="yes" showoutput="yes" fork="true">
- <sysproperty key="java.library.path" path="${env.CEPHFS_JNI_LIB}:../.libs/"/>
+ <sysproperty key="java.library.path" path="${env.CEPHFS_JNI_LIB}:../../build/lib/"/>
<sysproperty key="CEPH_CONF_FILE" path="${env.CEPHFS_CONF}"/>
<classpath>
<pathelement location="${env.CEPHFS_JAR}"/>
/*
* Local Variables:
- * compile-command: "cd ../.. ; make -j4 &&
+ * compile-command: "cd ../../../build ; make -j4 &&
* make unittest_erasure_code_plugin &&
* valgrind --tool=memcheck \
- * ./unittest_erasure_code_plugin \
+ * ./bin/unittest_erasure_code_plugin \
* --gtest_filter=*.* --log-to-stderr=true --debug-osd=20"
* End:
*/
/*
* Local Variables:
- * compile-command: "cd ../.. ; make -j4 ceph_erasure_code_benchmark &&
+ * compile-command: "cd ../../../build ; make -j4 ceph_erasure_code_benchmark &&
* valgrind --tool=memcheck --leak-check=full \
- * ./ceph_erasure_code_benchmark \
+ * ./bin/ceph_erasure_code_benchmark \
* --plugin jerasure \
* --parameter directory=lib \
* --parameter technique=reed_sol_van \