mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
test: Skip exim test if the binary is not found
The exim test requires a bit more preparation than the rest, so skip it if the binary is not found or not working properly.
This commit is contained in:
@@ -27,6 +27,11 @@ set -e
|
|||||||
|
|
||||||
init
|
init
|
||||||
|
|
||||||
|
if ! .exim4/exim4 --version > /dev/null; then
|
||||||
|
skip "(exim4 binary at .exim4/exim4 is not functional)"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
# Create a temporary directory for exim4 to use, and generate the exim4
|
# Create a temporary directory for exim4 to use, and generate the exim4
|
||||||
# config based on the template.
|
# config based on the template.
|
||||||
mkdir -p .exim4
|
mkdir -p .exim4
|
||||||
|
|||||||
@@ -58,6 +58,10 @@ function success() {
|
|||||||
echo "SUCCESS"
|
echo "SUCCESS"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function skip() {
|
||||||
|
echo "SKIPPED" $*
|
||||||
|
}
|
||||||
|
|
||||||
# Wait until there's something listening on the given port.
|
# Wait until there's something listening on the given port.
|
||||||
function wait_until_ready() {
|
function wait_until_ready() {
|
||||||
PORT=$1
|
PORT=$1
|
||||||
|
|||||||
Reference in New Issue
Block a user