mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
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:
parent
049a652da7
commit
fe9616aef1
8 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -7,6 +7,7 @@ test_description='indexing decrypted mail'
|
|||
|
||||
##################################################
|
||||
|
||||
test_require_emacs
|
||||
add_gnupg_home
|
||||
|
||||
# create a test encrypted message
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue