X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2Ftest-lib-emacs.sh;h=ad4c4aeb621afd02d5d3b4cf71b34cbe2f5b6d4e;hb=fb4a0967cab7df737d5d53199a48a0e79c429b61;hp=dde32177aae035e27b215c5b6e721b984d36fd48;hpb=3df2281746d57abbb45790ecb432ef40533c30bc;p=notmuch diff --git a/test/test-lib-emacs.sh b/test/test-lib-emacs.sh index dde32177..ad4c4aeb 100644 --- a/test/test-lib-emacs.sh +++ b/test/test-lib-emacs.sh @@ -54,8 +54,9 @@ emacs_deliver_message () { (message-goto-body) (insert \"${body}\") $* - (notmuch-mua-send-and-exit))" - + (let ((mml-secure-smime-sign-with-sender t) + (mml-secure-openpgp-sign-with-sender t)) + (notmuch-mua-send-and-exit)))" # In case message was sent properly, client waits for confirmation # before exiting and resuming control here; therefore making sure # that server exits by sending (KILL) signal to it is safe. @@ -206,4 +207,12 @@ test_emacs () { ${TEST_EMACSCLIENT} --socket-name="$EMACS_SERVER" --eval "(notmuch-test-progn $*)" } +time_emacs () { + rm -f MESSAGES + printf "%s" "$1" + shift + test_emacs "(test-time $*)" > emacs.out + tail -n 1 MESSAGES +} + emacs_generate_script