test: add test for syntax of emacs test library
[notmuch] / test / T310-emacs.sh
index 863219d9f9e973395e66a8507eeac6b5e044a9c9..7dc9a8e084ceb2fff8408bea373d4f23f8cb9ae7 100755 (executable)
@@ -7,6 +7,10 @@ EXPECTED=$TEST_DIRECTORY/emacs.expected-output
 
 add_email_corpus
 
+# syntax errors in test-lib.el cause mysterious failures
+test_expect_success 'Syntax of emacs test library' \
+    "${TEST_EMACS} -Q --batch --load $TEST_DIRECTORY/test-lib.el"
+
 test_begin_subtest "Basic notmuch-hello view in emacs"
 test_emacs '(notmuch-hello)
            (test-output)'