X-Git-Url: https://arthur.barton.de/gitweb/?p=netdata.git;a=blobdiff_plain;f=tests%2Fstress.sh;h=572dc7d19c6ea546372f58fea2b4d0b267d61750;hp=013ca70e09c8efe1d01048794ccb471b229118a9;hb=a2588ccbb1aec299407e390ce5bc5244504cc9c7;hpb=5ef136f289789776863e071d8b565838d6368536 diff --git a/tests/stress.sh b/tests/stress.sh index 013ca70e..572dc7d1 100755 --- a/tests/stress.sh +++ b/tests/stress.sh @@ -22,6 +22,14 @@ update_every="$(curl "$host/netdata.conf" 2>/dev/null | grep "update every = " | entries="$(curl "$host/netdata.conf" 2>/dev/null | grep "history = " | head -n 1 | cut -d '=' -f 2)" [ $[ entries + 1 - 1] -eq 0 ] && entries=3600 +# to compare equal things, set the entries to 3600 max +[ $entries -gt 3600 ] && entries=3600 + +if [ $entries -ne 3600 ] + then + echo >&2 "You are running a test for a history of $entries entries." +fi + modes=("average" "max") formats=("jsonp" "json" "ssv" "csv" "datatable" "datasource" "tsv" "ssvcomma" "html" "array") options="flip|jsonwrap"