From ad4502cffaf76e91f114796b6b4027db27c7a62c Mon Sep 17 00:00:00 2001 From: Tomas Rigaux Date: Tue, 9 Sep 2025 18:02:09 +0000 Subject: [PATCH] Update run script --- scripts/run_parallel_subs.sh | 15 ++++++++++++++- src/qperf_sub.cc | 2 +- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/scripts/run_parallel_subs.sh b/scripts/run_parallel_subs.sh index fefac4f..8151dcc 100755 --- a/scripts/run_parallel_subs.sh +++ b/scripts/run_parallel_subs.sh @@ -12,7 +12,20 @@ else NUM_SUBS=${1:-$1} # Arg 1 fi +if [ -z "$2" ]; then + RELAY="moq://localhost:33435" +else + RELAY="$2" +fi + +if [ -z "$3" ]; then + echo "Config file is required" + exit 1 +else + CONFIG_PATH="$3" +fi + echo "Running $NUM_SUBS subscriber clients" mkdir -p $LOGS_DIR -parallel -j ${NUM_SUBS} "./qperf_sub -i {} --connect_uri moq://localhost:33435 > $LOGS_DIR/t_{}logs.txt 2>&1" ::: $(seq ${NUM_SUBS}) +parallel -j ${NUM_SUBS} "./qperf_sub -i {} -c $CONFIG_PATH --connect_uri $RELAY > $LOGS_DIR/t_{}logs.txt 2>&1" ::: $(seq ${NUM_SUBS}) diff --git a/src/qperf_sub.cc b/src/qperf_sub.cc index 03fd35e..e8d5428 100644 --- a/src/qperf_sub.cc +++ b/src/qperf_sub.cc @@ -423,7 +423,7 @@ main(int argc, char** argv) ("endpoint_id", "Name of the client", cxxopts::value()->default_value("perf@cisco.com")) ("connect_uri", "Relay to connect to", cxxopts::value()->default_value("moq://localhost:1234")) ("i,test_id", "Test idenfiter number", cxxopts::value()->default_value("1")) - ("c,config", "Scenario config file", cxxopts::value()->default_value("./config.ini")) + ("c,config", "Scenario config file", cxxopts::value()) ("h,help", "Print usage"); // clang-format on