2018-05-21 23:02:54 -07:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
2018-05-27 18:19:07 -07:00
|
|
|
cd "$(dirname "$0")/.."
|
2018-05-21 23:02:54 -07:00
|
|
|
|
2018-05-28 13:05:16 -07:00
|
|
|
LIB=libcuda_verify_ed25519.a
|
|
|
|
if [[ ! -r $LIB ]]; then
|
|
|
|
if [[ -z "${libcuda_verify_ed25519_URL:-}" ]]; then
|
|
|
|
echo "$0 skipped. Unable to locate $LIB"
|
|
|
|
exit 0
|
|
|
|
fi
|
2018-05-21 23:02:54 -07:00
|
|
|
|
2018-05-28 13:05:16 -07:00
|
|
|
export LD_LIBRARY_PATH=/usr/local/cuda/lib64
|
|
|
|
export PATH=$PATH:/usr/local/cuda/bin
|
|
|
|
curl -X GET -o $LIB "$libcuda_verify_ed25519_URL"
|
|
|
|
fi
|
2018-05-21 23:02:54 -07:00
|
|
|
|
2018-05-27 18:19:07 -07:00
|
|
|
# shellcheck disable=SC1090 # <-- shellcheck can't follow ~
|
2018-06-05 13:52:46 -07:00
|
|
|
source ~/.cargo/env
|
2018-05-28 19:45:47 -07:00
|
|
|
export RUST_BACKTRACE=1
|
2018-05-21 23:02:54 -07:00
|
|
|
cargo test --features=cuda
|
|
|
|
|
|
|
|
exit 0
|