#!/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
	find logs/ -type f -name '*.log' -print0 | xargs -0r grep -EHe '^' -- 1>&2
	false
fi
