From 0e981f24981b239e1c4b65af7e9f7e8bce727fdc Mon Sep 17 00:00:00 2001 From: Neal McBurnett Date: Tue, 31 Oct 2017 08:15:48 -0600 Subject: [PATCH] Add simple usage, arg check to benchmarks.bash --- test/load_tests/benchmarks.bash | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/load_tests/benchmarks.bash b/test/load_tests/benchmarks.bash index d8441fe34..b46e7fce7 100755 --- a/test/load_tests/benchmarks.bash +++ b/test/load_tests/benchmarks.bash @@ -4,12 +4,16 @@ # For example: $0 mytest "2 4 8" 4 large # Provide these arguments, of which only the first is mandatory: +usage="Usage: + $0 testname [series [repeat [cvrs]]]. +e.g. URL=http://example.org/api $0 mytest '2 4 8 16 32 64' 3 medium" + testname=$1 # Directory to create and save results in +${testname:?"$usage"} series=${2:-2 4 8 16 32 64} # a list (in quotes) of values for the number of counties to run in parallel repeat=${3:-3} # Number of times to repeat each element in series cvrs=${4:-medium} # cvrs to load for each test, # e.g. "medium" for medium_cvrs.csv and medium_manifest.csv - mkdir -p $testname cd $testname