summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-08-30 16:14:17 +0200
committervarac <varacanero@zeromail.org>2013-08-30 16:14:17 +0200
commit4de9cbe5ddcdc688d6723262728dc4d86c898afa (patch)
tree59247a4174495a25290773a72b166f9e3bddcec9
parenta17deeca5f62079810146cae37c5860ce3bed86e (diff)
fixed output to include authentication
-rwxr-xr-xtest-swaks.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/test-swaks.sh b/test-swaks.sh
index 242e6e2..9f521b9 100755
--- a/test-swaks.sh
+++ b/test-swaks.sh
@@ -34,7 +34,10 @@ test_swaks() {
echo -n 'WARNING: '
exit_code=1
fi
- echo "From $from, to $to, no authentication: $response"
+
+ [[ "$options" == *--tls* ]] && authentication='authenticated ' || authentication='no authentication'
+ [ ]
+ echo "From $from, to $to, $authentication: $response"
}
@@ -50,6 +53,7 @@ test_delivery() {
echo
}
+
test_delivery $local $local 250 250
test_delivery $local $nobody_local 550 550
test_delivery $local $external 554 250