mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
test: Add stress tests
This patch introduces stress tests, which put load on the daemon to help sanity check its behaviour under stress. They are separate from the existing integration tests, which focus on correctness. Two tests are included here: a load test, which sends emails repeatedly; and a connection test which opens as many conections as possible.
This commit is contained in:
17
test/stress.sh
Executable file
17
test/stress.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
. $(dirname ${0})/util/lib.sh
|
||||
|
||||
init
|
||||
|
||||
FAILED=0
|
||||
|
||||
for i in stress-*; do
|
||||
echo $i ...
|
||||
setsid -w $i/run.sh
|
||||
FAILED=$(( $FAILED + $? ))
|
||||
echo
|
||||
done
|
||||
|
||||
exit $FAILED
|
||||
Reference in New Issue
Block a user