From 4de9cbe5ddcdc688d6723262728dc4d86c898afa Mon Sep 17 00:00:00 2001 From: varac Date: Fri, 30 Aug 2013 16:14:17 +0200 Subject: fixed output to include authentication --- test-swaks.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3