Add api-test to loadtest bash script
USAGE='Usage: zksync loadtest [-h|--help] [SCENARIO] [PATH_TO_CONFIG]
where:
-h | --help show this message
- SCENARIO {outgoing,execution,real-life} (outgoing by default)
+ SCENARIO {outgoing,execution,real-life,api-test} (outgoing by default)
PATH_TO_CONFIG path to loadtest config (default is 'core/loadtest/src/loadtest.json'
for outgoing/execution and 'core/loadtest/src/configs/reallife.json'
for real-life scenario)'
@@ -23,6 +23,10 @@ case $SCENARIO in
real-life|reallife|real_life)
CONFIG=${2:-"$ZKSYNC_HOME/core/loadtest/src/configs/reallife.json"}
;;
+ api-test|apitest|api_test)
+ # Config for API test is the same as for real-life.
+ CONFIG=${2:-"$ZKSYNC_HOME/core/loadtest/src/configs/reallife.json"}
+ ;;
-h | --help)
echo "$USAGE"
exit 0
