solana/ci/test-large-network.sh

42 lines
1.1 KiB
Bash
Raw Normal View History

#!/usr/bin/env bash
set -e
here=$(dirname "$0")
cd "$here"/..
2018-07-24 08:49:43 -07:00
source ci/rust-version.sh stable
2018-11-26 17:54:40 -08:00
2018-08-06 08:57:12 -07:00
export RUST_BACKTRACE=1
rm -rf target/perf-libs
2018-07-25 20:37:27 -07:00
./fetch-perf-libs.sh
export LD_LIBRARY_PATH=$PWD/target/perf-libs:$LD_LIBRARY_PATH
2018-07-25 20:37:27 -07:00
export RUST_LOG=multinode=info
2018-07-24 08:49:43 -07:00
source scripts/ulimit-n.sh
if [[ $(sysctl -n net.core.rmem_default) -lt 1610612736 ]]; then
2018-08-09 22:44:03 -07:00
echo 'Error: rmem_default too small, run "sudo sysctl -w net.core.rmem_default=1610612736" to continue'
exit 1
fi
if [[ $(sysctl -n net.core.rmem_max) -lt 1610612736 ]]; then
2018-08-09 22:44:03 -07:00
echo 'Error: rmem_max too small, run "sudo sysctl -w net.core.rmem_max=1610612736" to continue'
exit 1
fi
if [[ $(sysctl -n net.core.wmem_default) -lt 1610612736 ]]; then
2018-08-09 22:44:03 -07:00
echo 'Error: rmem_default too small, run "sudo sysctl -w net.core.wmem_default=1610612736" to continue'
exit 1
fi
if [[ $(sysctl -n net.core.wmem_max) -lt 1610612736 ]]; then
2018-08-09 22:44:03 -07:00
echo 'Error: rmem_max too small, run "sudo sysctl -w net.core.wmem_max=1610612736" to continue'
exit 1
fi
set -x
2019-01-15 22:24:23 -08:00
export SOLANA_DYNAMIC_NODES=120
exec cargo +"$rust_stable" test --release --features=erasure test_multi_node_dynamic_network -- --ignored