mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-18 08:04:40 +00:00
6a24567a29
- use a trap to always output any failed regress logs (since the script sets -e, the existing log output is never invoked). - pass LTESTS and SKIP_LTESTS when re-running with sshd options (eg. UsePAM).
35 lines
980 B
Bash
Executable File
35 lines
980 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. .github/configs $1
|
|
|
|
[ -z "${SUDO}" ] || ${SUDO} mkdir -p /var/empty
|
|
|
|
set -ex
|
|
|
|
output_failed_logs() {
|
|
for i in regress/failed*; do
|
|
if [ -f "$i" ]; then
|
|
echo -------------------------------------------------------------------------
|
|
echo LOGFILE $i
|
|
cat $i
|
|
echo -------------------------------------------------------------------------
|
|
fi
|
|
done
|
|
}
|
|
trap output_failed_logs 0
|
|
|
|
if [ -z "${LTESTS}" ]; then
|
|
make ${TEST_TARGET} SKIP_LTESTS="${SKIP_LTESTS}"
|
|
else
|
|
make ${TEST_TARGET} SKIP_LTESTS="${SKIP_LTESTS}" LTESTS="${LTESTS}"
|
|
fi
|
|
|
|
if [ ! -z "${SSHD_CONFOPTS}" ]; then
|
|
echo "rerunning t-exec with TEST_SSH_SSHD_CONFOPTS='${SSHD_CONFOPTS}'"
|
|
if [ -z "${LTESTS}" ]; then
|
|
make t-exec SKIP_LTESTS="${SKIP_LTESTS}" TEST_SSH_SSHD_CONFOPTS="${SSHD_CONFOPTS}"
|
|
else
|
|
make t-exec SKIP_LTESTS="${SKIP_LTESTS}" LTESTS="${LTESTS}" TEST_SSH_SSHD_CONFOPTS="${SSHD_CONFOPTS}"
|
|
fi
|
|
fi
|