task_java_unittest.sh 682 Bytes
Newer Older
1
#!/bin/bash
2
export PYTHONPATH=python
3 4 5 6 7 8 9 10
export LD_LIBRARY_PATH=lib:${LD_LIBRARY_PATH}

CURR_DIR=$(cd `dirname $0`; pwd)
SCRIPT_DIR=$CURR_DIR/../../jvm/core/src/test/scripts
TEMP_DIR=$(mktemp -d)

python $SCRIPT_DIR/test_add_cpu.py $TEMP_DIR || exit -1
python $SCRIPT_DIR/test_add_gpu.py $TEMP_DIR || exit -1
11
python $SCRIPT_DIR/test_graph_runtime.py $TEMP_DIR || exit -1
12

Yizhi Liu committed
13 14 15 16
# start rpc proxy server
PORT=$(( ( RANDOM % 1000 )  + 9000 ))
python $SCRIPT_DIR/test_rpc_proxy_server.py $PORT 30 &

17
make jvmpkg || exit -1
Yizhi Liu committed
18 19 20 21
make jvmpkg JVM_TEST_ARGS="-DskipTests=false \
  -Dtest.tempdir=$TEMP_DIR \
  -Dtest.rpc.proxy.host=localhost \
  -Dtest.rpc.proxy.port=$PORT" || exit -1
22 23

rm -rf $TEMP_DIR