2018-05-25 10:56:43 -07:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2018-05-29 14:27:25 -07:00
|
|
|
set -o xtrace
|
|
|
|
|
2018-05-25 10:56:43 -07:00
|
|
|
cd $(dirname $0)/..
|
|
|
|
|
|
|
|
if [[ -z "$libgf_complete_URL" ]]; then
|
|
|
|
echo libgf_complete_URL undefined
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ -z "$libJerasure_URL" ]]; then
|
|
|
|
echo libJerasure_URL undefined
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
curl -X GET -o libJerasure.so "$libJerasure_URL"
|
2018-05-29 22:39:38 -07:00
|
|
|
curl -X GET -o libgf_complete.so "$libgf_complete_URL"
|
|
|
|
|
|
|
|
ln -s libJerasure.so libJerasure.so.2
|
|
|
|
ln -s libJerasure.so libJerasure.so.2.0.0
|
|
|
|
ln -s libgf_complete.so libgf_complete.so.1.0.0
|
|
|
|
export LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH
|
2018-05-25 10:56:43 -07:00
|
|
|
|
|
|
|
source $HOME/.cargo/env
|
|
|
|
cargo test --features="erasure"
|
|
|
|
|
|
|
|
exit 0
|