[PATCH 07/10] emacs tests require emacs

Mike Kelly pioto at pioto.org
Fri May 25 06:43:28 PDT 2012


Immediately skip all emacs tests when we don't have emacs.
---
 test/emacs                     |    2 ++
 test/emacs-address-cleaning    |    2 ++
 test/emacs-hello               |    2 ++
 test/emacs-large-search-buffer |    2 ++
 test/emacs-show                |    2 ++
 test/emacs-subject-to-filename |    2 ++
 test/emacs-test-functions      |    2 ++
 7 files changed, 14 insertions(+)

diff --git a/test/emacs b/test/emacs
index e9f954c..cc42b21 100755
--- a/test/emacs
+++ b/test/emacs
@@ -3,6 +3,8 @@
 test_description="emacs interface"
 . test-lib.sh
 
+test_require_external_prereq emacs
+
 EXPECTED=$TEST_DIRECTORY/emacs.expected-output
 
 add_email_corpus
diff --git a/test/emacs-address-cleaning b/test/emacs-address-cleaning
index 6ddde5c..9a189d5 100755
--- a/test/emacs-address-cleaning
+++ b/test/emacs-address-cleaning
@@ -3,6 +3,8 @@
 test_description="emacs address cleaning"
 . test-lib.sh
 
+test_require_external_prereq emacs
+
 test_begin_subtest "notmuch-test-address-clean part 1"
 test_emacs_expect_t '(notmuch-test-address-cleaning-1)'
 
diff --git a/test/emacs-hello b/test/emacs-hello
index a998dc4..b4ca831 100755
--- a/test/emacs-hello
+++ b/test/emacs-hello
@@ -3,6 +3,8 @@
 test_description="Testing emacs notmuch-hello view"
 . test-lib.sh
 
+test_require_external_prereq emacs
+
 EXPECTED=$TEST_DIRECTORY/emacs.expected-output
 
 add_email_corpus
diff --git a/test/emacs-large-search-buffer b/test/emacs-large-search-buffer
index 4351e33..f5c8927 100755
--- a/test/emacs-large-search-buffer
+++ b/test/emacs-large-search-buffer
@@ -2,6 +2,8 @@
 test_description="Emacs with large search results buffer"
 . test-lib.sh
 
+test_require_external_prereq emacs
+
 x=xxxxxxxxxx # 10
 x=$x$x$x$x$x$x$x$x$x$x # 100
 x=$x$x$x$x$x$x$x$x$x # 900
diff --git a/test/emacs-show b/test/emacs-show
index 5700d2e..b2a5cb2 100755
--- a/test/emacs-show
+++ b/test/emacs-show
@@ -3,6 +3,8 @@
 test_description="Testing emacs notmuch-show view"
 . test-lib.sh
 
+test_require_external_prereq emacs
+
 test_begin_subtest "Hiding Original Message region at beginning of a message"
 message_id='OriginalMessageHiding.1 at notmuchmail.org'
 add_message \
diff --git a/test/emacs-subject-to-filename b/test/emacs-subject-to-filename
index 176e685..e8bc3ca 100755
--- a/test/emacs-subject-to-filename
+++ b/test/emacs-subject-to-filename
@@ -3,6 +3,8 @@
 test_description="emacs: mail subject to filename"
 . test-lib.sh
 
+test_require_external_prereq emacs
+
 # emacs server can't be started in a child process with $(test_emacs ...)
 test_emacs '(ignore)'
 
diff --git a/test/emacs-test-functions b/test/emacs-test-functions
index 0e1f9fc..dbbe7e4 100755
--- a/test/emacs-test-functions
+++ b/test/emacs-test-functions
@@ -3,6 +3,8 @@
 test_description="emacs test function sanity"
 . test-lib.sh
 
+test_require_external_prereq emacs
+
 test_begin_subtest "emacs test function sanity"
 test_emacs_expect_t 't'
 
-- 
1.7.10.2



More information about the notmuch mailing list