From 3ec7145e50c10ef06b135f0a980c44faf22e14c2 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 22 Dec 2016 18:24:59 +0100 Subject: [test] first working e2e test --- tests/e2e/e2e-test.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tests/e2e') diff --git a/tests/e2e/e2e-test.sh b/tests/e2e/e2e-test.sh index 3006c5bb..6e50604c 100755 --- a/tests/e2e/e2e-test.sh +++ b/tests/e2e/e2e-test.sh @@ -8,9 +8,11 @@ # # as an example: # export FROM_EXTERNAL_OPTS='-f user@example.org --tlsc --au user@example.or -ap MYPASSWORD -s smtp.example.org' +# +# TODO: +# - Timeout waiting for mail -set -x set -e PROVIDER='cdev.bitmask.net' @@ -60,9 +62,10 @@ echo "IMAP/SMTP PASSWD: $imap_pw" # Send testmail $SWAKS $FROM_EXTERNAL_OPTS -# XXX wait until we the get mail we just sent. - -while [[ ! $(./tests/e2e/getmail --mailbox INBOX --subject "$MAIL_UUID" $user $imap_pw) ]] +# wait until we the get mail we just sent. +while ! ./tests/e2e/getmail --mailbox INBOX --subject "$MAIL_UUID" "$user" "$imap_pw" > /dev/null do sleep 10 done + +echo "Succeeded - mail arrived" -- cgit v1.2.3