]> git.notmuchmail.org Git - notmuch/commitdiff
test: source $NOTMUCH_SRCDIR/test/test-lib-emacs.sh
authorTomi Ollila <tomi.ollila@iki.fi>
Sun, 23 May 2021 07:34:43 +0000 (10:34 +0300)
committerDavid Bremner <david@tethera.net>
Thu, 3 Jun 2021 12:29:27 +0000 (09:29 -0300)
Sourcing test-lib.sh will cd to TMP_DIRECTORY, so
relative path in $0 will not work in previous version
 . $(dirname "$0")/test-lib-emacs.sh

Now individual test scripts -- e.g. ./test/T310-emacs.sh
will work.

19 files changed:
test/T160-json.sh
test/T170-sexp.sh
test/T310-emacs.sh
test/T320-emacs-large-search-buffer.sh
test/T330-emacs-subject-to-filename.sh
test/T350-crypto.sh
test/T355-smime.sh
test/T357-index-decryption.sh
test/T358-emacs-protected-headers.sh
test/T420-emacs-test-functions.sh
test/T430-emacs-address-cleaning.sh
test/T440-emacs-hello.sh
test/T450-emacs-show.sh
test/T455-emacs-charsets.sh
test/T460-emacs-tree.sh
test/T510-thread-replies.sh
test/T630-emacs-draft.sh
test/T720-emacs-attachment-warnings.sh
test/T730-emacs-forwarding.sh

index 638afb4d5ef80ce50e2a9dc30c18fcf82444f353..6a3e581284ed8796e931d7ec5dbe6bc41a480748 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 test_description="--format=json output"
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+.  $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 test_begin_subtest "Show message: json"
 add_message "[subject]=\"json-show-subject\"" "[date]=\"Sat, 01 Jan 2000 12:00:00 -0000\"" "[bcc]=\"test_suite+bcc@notmuchmail.org\"" "[reply-to]=\"test_suite+replyto@notmuchmail.org\"" "[body]=\"json-show-message\""
index af8c4b44800decc4392e2fa8d17a9479b900fbc7..18084273f3eaa446ff1722262f6ab2b8ff97af03 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 test_description="--format=sexp output"
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 test_begin_subtest "Show message: sexp"
 add_message "[subject]=\"sexp-show-subject\"" "[date]=\"Sat, 01 Jan 2000 12:00:00 -0000\"" "[bcc]=\"test_suite+bcc@notmuchmail.org\"" "[reply-to]=\"test_suite+replyto@notmuchmail.org\"" "[body]=\"sexp-show-message\""
index b94236fdde1dcdbdddcf7dc7079a7dd339bb8af0..1967de22270d0eead018bb76832f8a57e3299adf 100755 (executable)
@@ -2,7 +2,7 @@
 
 test_description="emacs interface"
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 EXPECTED=$NOTMUCH_SRCDIR/test/emacs.expected-output
 
index d2638c8bf034d7e84b2c15346e5507be39f727f9..617985e6185edb110ddcbcccd7e21ffa56e65187 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 test_description="Emacs with large search results buffer"
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 x=xxxxxxxxxx # 10
 x=$x$x$x$x$x$x$x$x$x$x # 100
index 6e09a0486e802da77189bfaf9b5b5e1ca3e3aee8..405b063bb7e9f978030ebb07edcad867021abd4a 100755 (executable)
@@ -2,7 +2,7 @@
 
 test_description="emacs: mail subject to filename"
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 test_require_emacs
 
index 4508c984b94c7fcd77d3c88cd71bd69277cba87a..c1c1fcccc81ac2467fa409cf0ee71ce605867297 100755 (executable)
@@ -6,7 +6,7 @@
 
 test_description='PGP/MIME signature verification and decryption'
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 ##################################################
 
index 69bdcfac13b11fc9cad87c69a23abb549efd0ff8..b7269686ce70e82cb07f2f53349c788c2f1bc340 100755 (executable)
@@ -2,7 +2,7 @@
 
 test_description='S/MIME signature verification and decryption'
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 test_require_emacs
 test_require_external_prereq openssl
index 0d30e566ec97fa55b9a60c418c76b70fab3bcef2..a96c1b5e930f59fa8a6f83242bd76158122805a9 100755 (executable)
@@ -4,7 +4,7 @@
 
 test_description='indexing decrypted mail'
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 ##################################################
 
index b25d7ea79e4626950b89fcb2893da195d9f3da92..96e42bf37eaccfc2152e10093d87a3d84662b2c7 100755 (executable)
@@ -2,7 +2,7 @@
 
 test_description="protected headers in emacs interface"
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 # testing protected headers with emacs
 test_require_emacs
index 22e4f01effb52f98a0f93ceb2e27cc9279f7e802..2dfd7c56584fc8ad2de2aafc999e2ce333db52a6 100755 (executable)
@@ -2,7 +2,7 @@
 
 test_description="emacs test function sanity"
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 test_begin_subtest "emacs test function sanity"
 test_emacs_expect_t 't'
index 640bff3fe0f1dadb6e975178db7abee2bdf84c20..7d3d61ffd56f09af494b9efc536e213c8d222575 100755 (executable)
@@ -2,7 +2,7 @@
 
 test_description="emacs address cleaning"
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 test_require_emacs
 
index 642aa3cc3b677609c63d056afaec31dc391bfe86..bafccd1f355f45450348fc30cfe2718049fd9e13 100755 (executable)
@@ -2,7 +2,7 @@
 
 test_description="emacs notmuch-hello view"
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 EXPECTED=$NOTMUCH_SRCDIR/test/emacs.expected-output
 
index 31be55f8529a5abe68cd9d508dedf70943fbb802..9d08d2ccf933bc99f08c358143563e0783607db4 100755 (executable)
@@ -2,7 +2,7 @@
 
 test_description="emacs notmuch-show view"
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 EXPECTED=$NOTMUCH_SRCDIR/test/emacs-show.expected-output
 
index a0f4dc24e3aa607abfe1f749e0c1f881f0e238d4..db03bb67ba3a70a68d0f7eb2f6c6ed104bd20808 100755 (executable)
@@ -2,7 +2,7 @@
 
 test_description="emacs notmuch-show charset handling"
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 
 UTF8_YEN=$'\xef\xbf\xa5'
index dfc69049a0ac8414eefb58186761327d92891fad..405d7ee70d04c3af2a77c36af7fab31091e23c0b 100755 (executable)
@@ -2,7 +2,7 @@
 
 test_description="emacs tree view interface"
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 EXPECTED=$NOTMUCH_SRCDIR/test/emacs-tree.expected-output
 
index cdb4be444ab2dad529dab8e3a8947ce3f916eff6..35f3ff8314bd714e19d45d1c0ab35d40396ba3da 100755 (executable)
@@ -10,7 +10,7 @@ test_description='test of proper handling of in-reply-to and references headers'
 # non-RFC-compliant headers'
 
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 test_begin_subtest "Use References when In-Reply-To is broken"
 add_message '[id]="foo@one.com"' \
index 8553f022e4ade0bfa1999e01a759fc91624465e0..c443f417c40824786b3fdd38bf7f6f5e2e509039 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 test_description="Emacs Draft Handling"
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 test_require_emacs
 add_email_corpus
index 4e8c5d260dcdf6be259475b81b1058192a27d572..6e03f39d3437d40b3495ce44e6d170de98c174cc 100755 (executable)
@@ -2,7 +2,7 @@
 
 test_description="emacs attachment warnings"
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 test_require_emacs
 
index 378067edd5d6321148f17298dabe9b1c362c48f3..7b6ebf15b9b60e875dfba1904e23b3de4885dfcb 100755 (executable)
@@ -2,7 +2,7 @@
 
 test_description="emacs forwarding"
 . $(dirname "$0")/test-lib.sh || exit 1
-. $(dirname "$0")/test-lib-emacs.sh || exit 1
+. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1
 
 test_require_emacs