solana/ci/test-stable-perf.sh

44 lines
1.0 KiB
Bash
Raw Normal View History

#!/usr/bin/env bash -e
2018-05-21 23:02:54 -07:00
2018-05-27 18:19:07 -07:00
cd "$(dirname "$0")/.."
2018-05-21 23:02:54 -07:00
2018-11-09 18:52:34 -08:00
# Clear cached json keypair files
rm -rf "$HOME/.config/solana"
2018-08-06 08:57:12 -07:00
if ! ci/version-check.sh stable; then
# This job doesn't run within a container, try once to upgrade tooling on a
# version check failure
rustup install stable
ci/version-check.sh stable
fi
export RUST_BACKTRACE=1
2018-09-20 18:51:11 -07:00
export RUSTFLAGS="-D warnings"
export CUDA_HOME=/usr/local/cuda
2018-05-21 23:02:54 -07:00
2018-08-06 08:57:12 -07:00
./fetch-perf-libs.sh
export LD_LIBRARY_PATH=$PWD/target/perf-libs:$CUDA_HOME/lib64:$LD_LIBRARY_PATH
export PATH=$PATH:$CUDA_HOME/bin
2018-05-21 23:02:54 -07:00
_() {
echo "--- $*"
"$@"
}
FEATURES=cuda,erasure,chacha
2018-10-17 10:52:55 -07:00
_ cargo test --verbose --features="$FEATURES" --lib
# Run integration tests serially
2018-10-17 10:52:55 -07:00
for test in tests/*.rs; do
test=${test##*/} # basename x
test=${test%.rs} # basename x .rs
_ cargo test --verbose --jobs=1 --features="$FEATURES" --test="$test"
done
echo --- ci/localnet-sanity.sh
(
set -x
# Assume |cargo build| has populated target/debug/ successfully.
export PATH=$PWD/target/debug:$PATH
USE_INSTALL=1 ci/localnet-sanity.sh
)