[PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 55 / 1474cd5458a7ad51108becc9b35c6b084465c3
1 Return-Path: <bremner@tethera.net>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 41D61431FD0\r
6         for <notmuch@notmuchmail.org>; Wed, 28 Dec 2011 09:08:47 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id rbXMf7K71TpX for <notmuch@notmuchmail.org>;\r
16         Wed, 28 Dec 2011 09:08:46 -0800 (PST)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id ACE35431FB6\r
21         for <notmuch@notmuchmail.org>; Wed, 28 Dec 2011 09:08:46 -0800 (PST)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc36w-156034079193.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [156.34.79.193]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pBSH8cSd011228\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Wed, 28 Dec 2011 13:08:41 -0400\r
28 Received: from bremner by zancas.localnet with local (Exim 4.77)\r
29         (envelope-from <bremner@tethera.net>)\r
30         id 1RfwzV-0007Ja-DD; Wed, 28 Dec 2011 13:08:37 -0400\r
31 From: David Bremner <david@tethera.net>\r
32 To: notmuch@notmuchmail.org\r
33 Subject: [PATCH] test: allow user to choose which emacs to run tests with.\r
34 Date: Wed, 28 Dec 2011 13:08:21 -0400\r
35 Message-Id: <1325092101-28085-1-git-send-email-david@tethera.net>\r
36 X-Mailer: git-send-email 1.7.7.3\r
37 In-Reply-To: <1325089128-32010-2-git-send-email-dme@dme.org>\r
38 References: <1325089128-32010-2-git-send-email-dme@dme.org>\r
39 Cc: David Bremner <bremner@debian.org>\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Wed, 28 Dec 2011 17:08:47 -0000\r
53 \r
54 From: David Bremner <bremner@debian.org>\r
55 \r
56 As we start to pay more attention to emacs24, it helps to be able to\r
57 select a different version of emacs to run the tests with to verify\r
58 version specific bugs.\r
59 \r
60 A separate variable TEST_EMACS is needed to avoid being overwritten by the\r
61 make variable EMACS in Makefile.config\r
62 \r
63 For what it's worth, the value of emacs is chosen at the time\r
64 tmp.emacs/run_emacs is created, so is fixed for all subtests.\r
65 ---\r
66 \r
67 This version allows the emacs version to be passed either from the\r
68 environment or via a make argument. It also adds some brief documentation\r
69 \r
70  test/README      |    7 +++++++\r
71  test/test-lib.sh |    3 ++-\r
72  2 files changed, 9 insertions(+), 1 deletions(-)\r
73 \r
74 diff --git a/test/README b/test/README\r
75 index 7b2e96d..bde6db0 100644\r
76 --- a/test/README\r
77 +++ b/test/README\r
78 @@ -56,6 +56,13 @@ can be specified as follows:\r
79  \r
80         make test OPTIONS="--verbose"\r
81  \r
82 +You can choose an emacs binary to run the tests in one of the\r
83 +following ways.\r
84 +\r
85 +       TEST_EMACS=my-special-emacs make test\r
86 +       TEST_EMACS=my-special-emacs ./emacs\r
87 +       make test TEST_EMACS=my-special-emacs\r
88 +\r
89  Skipping Tests\r
90  --------------\r
91  If, for any reason, you need to skip one or more tests, you can do so\r
92 diff --git a/test/test-lib.sh b/test/test-lib.sh\r
93 index b5e346c..8edf256 100644\r
94 --- a/test/test-lib.sh\r
95 +++ b/test/test-lib.sh\r
96 @@ -50,6 +50,7 @@ TZ=UTC\r
97  TERM=dumb\r
98  export LANG LC_ALL PAGER TERM TZ\r
99  GIT_TEST_CMP=${GIT_TEST_CMP:-diff -u}\r
100 +TEST_EMACS=${TEST_EMACS:-${EMACS:-emacs}}\r
101  \r
102  # Protect ourselves from common misconfiguration to export\r
103  # CDPATH into the environment\r
104 @@ -897,7 +898,7 @@ export NOTMUCH_CONFIG=$NOTMUCH_CONFIG\r
105  #\r
106  # --load               Force loading of notmuch.el and test-lib.el\r
107  \r
108 -exec emacs --no-init-file --no-site-file \\r
109 +exec ${TEST_EMACS} --no-init-file --no-site-file \\r
110         --directory "$TEST_DIRECTORY/../emacs" --load notmuch.el \\r
111         --directory "$TEST_DIRECTORY" --load test-lib.el \\r
112         "\$@"\r
113 -- \r
114 1.7.7.3\r
115 \r