1
0
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:
Alberto Bertogli
2016-09-22 11:12:40 +01:00
parent c34c073c1c
commit 5f15b4e040
2 changed files with 9 additions and 0 deletions

View File

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

View File

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