test: add external prereqs to many emacs tests

The tests fail otherwise.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
Felipe Contreras 2021-05-01 06:54:16 -05:00 committed by David Bremner
parent 049a652da7
commit fe9616aef1
8 changed files with 14 additions and 0 deletions

View file

@ -5,6 +5,7 @@ test_description="emacs interface"
EXPECTED=$NOTMUCH_SRCDIR/test/emacs.expected-output
test_require_emacs
add_email_corpus
# syntax errors in test-lib.el cause mysterious failures

View file

@ -9,6 +9,7 @@ test_description='PGP/MIME signature verification and decryption'
##################################################
test_require_emacs
add_gnupg_home
test_begin_subtest "emacs delivery of signed message"

View file

@ -3,6 +3,7 @@
test_description='S/MIME signature verification and decryption'
. $(dirname "$0")/test-lib.sh || exit 1
test_require_emacs
test_require_external_prereq openssl
test_require_external_prereq gpgsm

View file

@ -7,6 +7,7 @@ test_description='indexing decrypted mail'
##################################################
test_require_emacs
add_gnupg_home
# create a test encrypted message

View file

@ -5,6 +5,7 @@ test_description="emacs notmuch-show view"
EXPECTED=$NOTMUCH_SRCDIR/test/emacs-show.expected-output
test_require_emacs
add_email_corpus
test_begin_subtest "Hiding Original Message region at beginning of a message"

View file

@ -5,6 +5,7 @@ test_description="emacs tree view interface"
EXPECTED=$NOTMUCH_SRCDIR/test/emacs-tree.expected-output
test_require_emacs
add_email_corpus
test_begin_subtest "Basic notmuch-tree view in emacs"

View file

@ -3,6 +3,8 @@
test_description="emacs forwarding"
. $(dirname "$0")/test-lib.sh || exit 1
test_require_emacs
test_begin_subtest "Forward setting the correct references header"
# Check that, when forwarding a message, the new message has
# a References-header pointing to the original (forwarded) message.

View file

@ -114,6 +114,12 @@ unset ALTERNATE_EDITOR
unset EMAIL
unset NAME
test_require_emacs () {
test_require_external_prereq emacs
test_require_external_prereq ${TEST_EMACSCLIENT}
test_require_external_prereq dtach
}
add_gnupg_home ()
{
[ -e "${GNUPGHOME}/gpg.conf" ] && return