[PATCH] configure: add --without-api-docs option
[notmuch-archives.git] / 31 / 29330263e53da17a02f33cb6769973906aef05
1 Return-Path: <too@guru-group.fi>\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 00134431FAF\r
6         for <notmuch@notmuchmail.org>; Wed, 23 Jan 2013 23:39:14 -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: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         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 GsroEie7YqDd for <notmuch@notmuchmail.org>;\r
16         Wed, 23 Jan 2013 23:39:14 -0800 (PST)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id 587B0431FAE\r
19         for <notmuch@notmuchmail.org>; Wed, 23 Jan 2013 23:39:14 -0800 (PST)\r
20 Received: by guru.guru-group.fi (Postfix, from userid 501)\r
21         id 018AA100086; Thu, 24 Jan 2013 09:39:03 +0200 (EET)\r
22 From: Tomi Ollila <tomi.ollila@iki.fi>\r
23 To: notmuch@notmuchmail.org\r
24 Subject: [PATCH V3 1/1] test/test-lib.sh: use vt100 as dtach terminal if TERM\r
25         dumb or unset/empty\r
26 Date: Thu, 24 Jan 2013 09:39:02 +0200\r
27 Message-Id: <1359013142-3329-1-git-send-email-tomi.ollila@iki.fi>\r
28 X-Mailer: git-send-email 1.8.0\r
29 In-Reply-To: <1359011360-15591-1-git-send-email-tomi.ollila@iki.fi>\r
30 References: <1359011360-15591-1-git-send-email-tomi.ollila@iki.fi>\r
31 Cc: tomi.ollila@iki.fi\r
32 X-BeenThere: notmuch@notmuchmail.org\r
33 X-Mailman-Version: 2.1.13\r
34 Precedence: list\r
35 List-Id: "Use and development of the notmuch mail system."\r
36         <notmuch.notmuchmail.org>\r
37 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
38         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
39 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
40 List-Post: <mailto:notmuch@notmuchmail.org>\r
41 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
42 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
43         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
44 X-List-Received-Date: Thu, 24 Jan 2013 07:39:15 -0000\r
45 \r
46 The TERM environment variable is set to 'dumb' when running tests, but\r
47 the original value of it is stored for echoing colors and running emacs\r
48 (somewhat interactively) in detached session. Emacs requires some\r
49 terminal control sequences to be available for interactive operation.\r
50 In case original TERM is (also) 'dumb' (or unset/empty) emacs cannot\r
51 run interactively. To fix this problem dtach (and emacs as it's child\r
52 process) is run with TERM=vt100 in case original TERM was unset, empty\r
53 or 'dumb'. This way there is a chance to run emacs tests with different\r
54 user terminals and potentially find problems there.\r
55 ---\r
56 \r
57 Obsoletes id:1359011360-15591-1-git-send-email-tomi.ollila@iki.fi\r
58 \r
59 To be accurate (instead of potentially confusing), the commit\r
60 message and comments have been edited to mention 'unset or empty'\r
61 instead of 'nonexistent'. No functional changes (to neither v1 or v2\r
62 of this patch).\r
63 \r
64  test/test-lib.sh | 9 +++++++--\r
65  1 file changed, 7 insertions(+), 2 deletions(-)\r
66 \r
67 diff --git a/test/test-lib.sh b/test/test-lib.sh\r
68 index 6ce3b31..1567178 100644\r
69 --- a/test/test-lib.sh\r
70 +++ b/test/test-lib.sh\r
71 @@ -41,6 +41,10 @@ esac\r
72  # Keep the original TERM for say_color and test_emacs\r
73  ORIGINAL_TERM=$TERM\r
74  \r
75 +# dtach(1) provides more capable terminal environment to anything\r
76 +# that requires more than dumb terminal...\r
77 +[ x"${TERM:-dumb}" = xdumb ] && DTACH_TERM=vt100 || DTACH_TERM=$TERM\r
78 +\r
79  # For repeatability, reset the environment to known value.\r
80  LANG=C\r
81  LC_ALL=C\r
82 @@ -996,9 +1000,10 @@ test_emacs () {\r
83                 fi\r
84                 server_name="notmuch-test-suite-$$"\r
85                 # start a detached session with an emacs server\r
86 -               # user's TERM is given to dtach which assumes a minimally\r
87 +               # user's TERM (or 'vt100' in case user's TERM is unset, empty\r
88 +               # or 'dumb') is given to dtach which assumes a minimally\r
89                 # VT100-compatible terminal -- and emacs inherits that\r
90 -               TERM=$ORIGINAL_TERM dtach -n "$TEST_TMPDIR/emacs-dtach-socket.$$" \\r
91 +               TERM=$DTACH_TERM dtach -n "$TEST_TMPDIR/emacs-dtach-socket.$$" \\r
92                         sh -c "stty rows 24 cols 80; exec '$TMP_DIRECTORY/run_emacs' \\r
93                                 --no-window-system \\r
94                                 $load_emacs_tests \\r
95 -- \r
96 1.8.0\r
97 \r