author | Alberto Bertogli
<albertito@blitiri.com.ar> 2016-09-04 10:21:19 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2016-09-12 03:06:56 UTC |
parent | 905161c537123b49532f8b1b7ee726a56b8e055f |
test/README | +23 | -0 |
test/run.sh | +17 | -0 |
diff --git a/test/README b/test/README new file mode 100644 index 0000000..19f94f3 --- /dev/null +++ b/test/README @@ -0,0 +1,23 @@ + +This directory holds end to end tests, written usually in a combination of +shell and some Python. + +They're not expected to be portable, as that gets impractical very quickly. +They also have some dependencies, listed below. + + +=== Dependencies + +The tests depend on the following things being installed on the system (listed +as Debian package, for consistency): + + - netcat (nc) + - msmtp + - util-linux (for /usr/bin/setsid) + +For t-exim (Exim interaction tests): + - gettext-base (for /usr/bin/envsubst) + - The exim binary available somewhere, but it doesn't have to be installed. + There's a script "get-exim4-debian.sh" to get it from the archives. + + diff --git a/test/run.sh b/test/run.sh new file mode 100755 index 0000000..c23eab9 --- /dev/null +++ b/test/run.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -e +. $(dirname ${0})/util/lib.sh + +init + +FAILED=0 + +for i in t-*; do + echo $i ... + setsid -w $i/run.sh + FAILED=$(( $FAILED + $? )) + echo +done + +exit $FAILED