summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2015-12-25 20:50:10 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2015-12-25 20:50:10 +0200
commita2588ccbb1aec299407e390ce5bc5244504cc9c7 (patch)
tree3fb5eb3d142cc3e49bd75c5ed18419b1b1166814 /tests
parent5ef136f289789776863e071d8b565838d6368536 (diff)
cleanup locking; ability to compile AVL with MUTEX instead of RWLOCK; disks and interfaces now have "on demand" all their options
Diffstat (limited to 'tests')
-rwxr-xr-xtests/stress.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/stress.sh b/tests/stress.sh
index 013ca70e09..572dc7d19c 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"