1#!/bin/sh 2 3. .github/configs $1 4 5[ -z "${SUDO}" ] || ${SUDO} mkdir -p /var/empty 6 7set -ex 8 9output_failed_logs() { 10 for i in regress/failed*; do 11 if [ -f "$i" ]; then 12 echo ------------------------------------------------------------------------- 13 echo LOGFILE $i 14 cat $i 15 echo ------------------------------------------------------------------------- 16 fi 17 done 18} 19trap output_failed_logs 0 20 21if [ -z "${LTESTS}" ]; then 22 make ${TEST_TARGET} SKIP_LTESTS="${SKIP_LTESTS}" 23else 24 make ${TEST_TARGET} SKIP_LTESTS="${SKIP_LTESTS}" LTESTS="${LTESTS}" 25fi 26 27if [ ! -z "${SSHD_CONFOPTS}" ]; then 28 echo "rerunning t-exec with TEST_SSH_SSHD_CONFOPTS='${SSHD_CONFOPTS}'" 29 if [ -z "${LTESTS}" ]; then 30 make t-exec SKIP_LTESTS="${SKIP_LTESTS}" TEST_SSH_SSHD_CONFOPTS="${SSHD_CONFOPTS}" 31 else 32 make t-exec SKIP_LTESTS="${SKIP_LTESTS}" LTESTS="${LTESTS}" TEST_SSH_SSHD_CONFOPTS="${SSHD_CONFOPTS}" 33 fi 34fi 35