ceph/qa/workunits/libcephfs-java/test.sh
Sage Weil b9f58baaa6 libcephfs-java test: jar files are in /usr/local/share/java, it seems
Signed-off-by: Sage Weil <sage@inktank.com>
2013-01-24 10:41:34 -08:00

20 lines
498 B
Bash
Executable File

#!/bin/sh -e
BASE=/tmp/cephtest
TLIB=binary/usr/local/share/java
echo "starting libcephfs-java tests"
export LD_LIBRARY_PATH=$BASE/$TLIB
command="java -DCEPH_CONF_FILE=$BASE/ceph.conf -Djava.library.path=$LD_LIBRARY_PATH -cp /usr/share/java/junit4.jar:$BASE/$TLIB/libcephfs.jar:$BASE/$TLIB/libcephfs-test.jar org.junit.runner.JUnitCore com.ceph.fs.CephAllTests"
echo "----------------------"
echo $command
echo "----------------------"
$command
echo "completed libcephfs-java tests"
exit 0