diff --git a/.ci/run-regression.sh b/.ci/run-regression.sh new file mode 100755 index 00000000..cf3df56b --- /dev/null +++ b/.ci/run-regression.sh @@ -0,0 +1,33 @@ +#!/usr/bin/env bash + +iterations="$1" +sleep_time="$2" + +PWD="$(pwd)" +EXEC="$PWD/target/release/rosenpass" +LOGS="$PWD/output/logs" + +mkdir -p "$LOGS" + +run_command() { + local file=$1 + local log_file="$2" + ("$EXEC" exchange-config "$file" 2>&1 | tee -a "$log_file") & + echo $! +} + +pids=() + +(cd output/dut && run_command "configs/dut-$iterations.toml" "$LOGS/dut.log") +for (( x=0; x