From: varac Date: Fri, 30 Aug 2013 14:14:17 +0000 (+0200) Subject: fixed output to include authentication X-Git-Url: https://leap.se/git/scripts.git/commitdiff_plain/4de9cbe5ddcdc688d6723262728dc4d86c898afa fixed output to include authentication --- 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