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:
23
test/README
Normal file
23
test/README
Normal 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
17
test/run.sh
Executable 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
|
||||||
Reference in New Issue
Block a user