2018-05-25 10:56:43 -07:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2018-05-29 14:27:25 -07:00
|
|
|
set -o xtrace
|
|
|
|
|
2018-06-05 13:49:41 -07:00
|
|
|
cd "$(dirname "$0")/.."
|
2018-05-25 10:56:43 -07:00
|
|
|
|
2018-06-05 13:30:36 -07:00
|
|
|
if [[ -z "${libgf_complete_URL:-}" ]]; then
|
2018-05-25 10:56:43 -07:00
|
|
|
echo libgf_complete_URL undefined
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2018-06-05 13:30:36 -07:00
|
|
|
if [[ -z "${libJerasure_URL:-}" ]]; then
|
2018-05-25 10:56:43 -07:00
|
|
|
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
|
|
|
|
2018-06-05 13:30:36 -07:00
|
|
|
# shellcheck disable=SC1090 # <-- shellcheck can't follow ~
|
2018-06-05 13:52:46 -07:00
|
|
|
source ~/.cargo/env
|
2018-05-25 10:56:43 -07:00
|
|
|
cargo test --features="erasure"
|
|
|
|
|
|
|
|
exit 0
|