diff options
author | varac <varacanero@zeromail.org> | 2013-08-30 16:14:17 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2013-08-30 16:14:17 +0200 |
commit | 4de9cbe5ddcdc688d6723262728dc4d86c898afa (patch) | |
tree | 59247a4174495a25290773a72b166f9e3bddcec9 | |
parent | a17deeca5f62079810146cae37c5860ce3bed86e (diff) |
fixed output to include authentication
-rwxr-xr-x | test-swaks.sh | 6 |
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 |