solana/ci/test-large-network.sh

36 lines
922 B
Bash
Raw Normal View History

#!/bin/bash -e
here=$(dirname "$0")
cd "$here"/..
2018-07-24 08:49:43 -07:00
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-07-25 20:37:27 -07:00
./fetch-perf-libs.sh
export LD_LIBRARY_PATH+=:$PWD
export RUST_LOG=multinode=info
2018-07-24 08:49:43 -07:00
if [[ $(ulimit -n) -lt 65000 ]]; then
echo 'Error: nofiles too small, run "ulimit -n 65000" to continue'
exit 1
fi
if [[ $(sysctl -n net.core.rmem_default) -lt 1610612736 ]]; then
echo 'Error: rmem_default too small, run "sysctl -w net.core.rmem_default 1610612736" to continue'
exit 1
fi
if [[ $(sysctl -n net.core.rmem_max) -lt 1610612736 ]]; then
echo 'Error: rmem_max too small, run "sysctl -w net.core.rmem_max 1610612736" to continue'
exit 1
fi
set -x
2018-07-25 20:37:27 -07:00
exec cargo test --release --features=erasure test_multi_node_dynamic_network -- --ignored