#!/bin/sh set -e ln -s /usr/bin/stunnel4 src/stunnel cd tests if ! ./make_test; then printf '\n\n=== Some tests failed; here are all the logs...\n\n' 1>&2 for fname in logs/*.log; do printf -- '\n\n=== %s\n\n' "$fname" 1>&2 cat -- "$fname" 1>&2 done false fi