2021-12-14 17:29:04 +00:00
|
|
|
#!/bin/bash
|
2022-05-26 20:09:06 +01:00
|
|
|
set -xeuo pipefail
|
2021-12-14 17:29:04 +00:00
|
|
|
|
2022-05-26 20:09:06 +01:00
|
|
|
if [ -z "${RUST_LOG:-}" ]; then
|
2021-12-21 14:35:21 +00:00
|
|
|
echo "Setting RUST_LOG=info for your convenience."
|
|
|
|
export RUST_LOG=info
|
|
|
|
fi
|
|
|
|
|
2021-12-21 14:53:13 +00:00
|
|
|
target="networks/basic"
|
2021-12-14 17:29:04 +00:00
|
|
|
cd "$(git rev-parse --show-toplevel)"
|
|
|
|
|
2022-05-26 20:09:06 +01:00
|
|
|
if [ -z "${CHUTNEY_PATH:-}" ]; then
|
|
|
|
# Use the default chutney path we set up before.
|
|
|
|
CHUTNEY_PATH="$(pwd)/chutney"
|
|
|
|
export CHUTNEY_PATH
|
|
|
|
else
|
|
|
|
# CHUTNEY_PATH is set; tell the user about that.
|
|
|
|
echo "CHUTNEY_PATH is ${CHUTNEY_PATH}; using your local copy of chutney."
|
|
|
|
fi
|
|
|
|
|
2022-03-10 14:56:11 +00:00
|
|
|
./tests/chutney/setup
|
2021-12-21 14:53:13 +00:00
|
|
|
|
|
|
|
cargo run -p arti-bench --release -- -c "${CHUTNEY_PATH}/net/nodes/arti.toml" "$@"
|
|
|
|
|
|
|
|
"${CHUTNEY_PATH}"/chutney stop "${CHUTNEY_PATH}/$target"
|