1
0
mirror of https://blitiri.com.ar/repos/chasquid synced 2025-12-18 14:47:03 +00:00

test: Add top-level README and run script

This commit is contained in:
Alberto Bertogli
2016-09-04 11:21:19 +01:00
parent 905161c537
commit 2c90281c11
2 changed files with 40 additions and 0 deletions

23
test/README Normal file
View File

@@ -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.

17
test/run.sh Executable file
View File

@@ -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