test: use source and build paths in T310-emacs.sh

Make a distinction between source and build directories.
This commit is contained in:
Jani Nikula 2017-09-25 23:38:31 +03:00 committed by David Bremner
parent b079133ca8
commit f6b098b1a6

View file

@ -3,13 +3,13 @@
test_description="emacs interface" test_description="emacs interface"
. $(dirname "$0")/test-lib.sh || exit 1 . $(dirname "$0")/test-lib.sh || exit 1
EXPECTED=$TEST_DIRECTORY/emacs.expected-output EXPECTED=$NOTMUCH_SRCDIR/test/emacs.expected-output
add_email_corpus add_email_corpus
# syntax errors in test-lib.el cause mysterious failures # syntax errors in test-lib.el cause mysterious failures
test_begin_subtest "Syntax of emacs test library" test_begin_subtest "Syntax of emacs test library"
test_expect_success "${TEST_EMACS} -Q --batch --load $TEST_DIRECTORY/test-lib.el" test_expect_success "${TEST_EMACS} -Q --batch --load $NOTMUCH_SRCDIR/test/test-lib.el"
test_begin_subtest "Basic notmuch-hello view in emacs" test_begin_subtest "Basic notmuch-hello view in emacs"
test_emacs '(notmuch-hello) test_emacs '(notmuch-hello)