mirror of
https://github.com/OpenVPN/openvpn.git
synced 2025-05-08 21:25:53 +08:00

Change-Id: I1b54da258c7d15551b6c3de7522a0d19afdb66de Signed-off-by: Samuli Seppänen <samuli.seppanen@gmail.com> Acked-by: Frank Lichtenheld <frank@lichtenheld.com> Message-Id: <20240613081422.139493-1-frank@lichtenheld.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg28750.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
34 lines
854 B
Bash
Executable File
34 lines
854 B
Bash
Executable File
#!/usr/bin/env sh
|
|
#
|
|
# Run this stress test as root to avoid sudo authorization from timing out.
|
|
|
|
ITERATIONS="${1:-100}"
|
|
|
|
. ./t_server_null_default.rc
|
|
|
|
export pid_files=""
|
|
for SUF in $TEST_SERVER_LIST
|
|
do
|
|
eval server_name=\"\$SERVER_NAME_$SUF\"
|
|
pid_files="${pid_files} ./${server_name}.pid"
|
|
done
|
|
|
|
LOG_BASEDIR="make-check"
|
|
mkdir -p "${LOG_BASEDIR}"
|
|
|
|
count=0
|
|
while [ $count -lt $ITERATIONS ]; do
|
|
count=$(( count + 1 ))
|
|
make check TESTS=t_server_null.sh SUBDIRS= > /dev/null 2>&1
|
|
retval=$?
|
|
|
|
echo "Iteration ${count}: return value ${retval}" >> "${LOG_BASEDIR}/make-check.log"
|
|
if [ $retval -ne 0 ]; then
|
|
DIR="${LOG_BASEDIR}/make-check-${count}"
|
|
mkdir -p "${DIR}"
|
|
cp t_server_null*.log "${DIR}/"
|
|
cp test-suite.log "${DIR}/"
|
|
ps aux|grep openvpn|grep -vE '(suppress|grep)' > "${DIR}/psaux"
|
|
fi
|
|
done
|