Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / 09 / 8dd9060972c58b1500fb1fb61ce9ff78bc7e73
1 Return-Path: <tomi.ollila@nixu.com>\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 90441429E25\r
6         for <notmuch@notmuchmail.org>; Fri, 11 Nov 2011 13:15:06 -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 H2MfuabAldLW for <notmuch@notmuchmail.org>;\r
16         Fri, 11 Nov 2011 13:15:05 -0800 (PST)\r
17 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\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 944CE431FB6\r
21         for <notmuch@notmuchmail.org>; Fri, 11 Nov 2011 13:15:05 -0800 (PST)\r
22 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
23         by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id\r
24         pABLF2x5016181; Fri, 11 Nov 2011 23:15:03 +0200\r
25 From: Tomi Ollila <tomi.ollila@iki.fi>\r
26 To: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>,\r
27         Notmuch Mail <notmuch@notmuchmail.org>\r
28 Subject: Re: [PATCH] test: use dtach(1) instead of screen(1) in emacs tests\r
29 In-Reply-To: <87fwhu2wtb.fsf@gmail.com>\r
30 References: <yf6mxc3ab4t.fsf@taco2.nixu.fi>\r
31         <1320963737-1666-1-git-send-email-jrollins@finestructure.net>\r
32         <yf64nyae67m.fsf@taco2.nixu.fi> <87fwhu2wtb.fsf@gmail.com>\r
33 User-Agent: Notmuch/0.9+23~g556c5fa (http://notmuchmail.org) Emacs/23.3.1\r
34         (i686-pc-linux-gnu)\r
35 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
36         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
37         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
38 Date: Fri, 11 Nov 2011 23:15:02 +0200\r
39 Message-ID: <yf6y5vmcqeh.fsf@taco2.nixu.fi>\r
40 MIME-Version: 1.0\r
41 Content-Type: text/plain; charset=us-ascii\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Fri, 11 Nov 2011 21:15:06 -0000\r
55 \r
56 On Sat, 12 Nov 2011 01:06:40 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:\r
57 > On Fri, 11 Nov 2011 22:48:13 +0200, Tomi Ollila <too@iki.fi> wrote:\r
58 > > dtach is simpler than screen and is not setuid/setgid program so\r
59 > > TMPDIR does not get cleared by dynamic loader when executed.\r
60 > > ---\r
61 > > \r
62 > > Updated version after discussion with DmitryKurochkin and amdragon\r
63 > > on IRC. Thank you.\r
64 > > \r
65\r
66 > Looks good to me (though I did not test it).\r
67\r
68 > Few minor comments below.\r
69\r
70 > >  test/test-lib.sh |   25 +++++++++++++------------\r
71 > >  1 files changed, 13 insertions(+), 12 deletions(-)\r
72 > > \r
73 > > diff --git a/test/test-lib.sh b/test/test-lib.sh\r
74 > > index c81c709..c232130 100755\r
75 > > --- a/test/test-lib.sh\r
76 > > +++ b/test/test-lib.sh\r
77 > > @@ -39,7 +39,7 @@ done,*)\r
78 > >     ;;\r
79 > >  esac\r
80 > >  \r
81 > > -# Keep the original TERM for say_color\r
82 > > +# Keep the original TERM for say_color and emacs tests\r
83\r
84 > s/emacs tests/test_emacs/ for consistency with say_color?\r
85 \r
86 yes. thanks...\r
87 \r
88\r
89 > >  ORIGINAL_TERM=$TERM\r
90 > >  \r
91 > >  # For repeatability, reset the environment to known value.\r
92 > > @@ -843,12 +841,15 @@ EOF\r
93 > >  test_emacs () {\r
94 > >     if [ -z "$EMACS_SERVER" ]; then\r
95 > >             EMACS_SERVER="notmuch-test-suite-$$"\r
96 > > -           # start a detached screen session with an emacs server\r
97 > > -           screen -S "$EMACS_SERVER" -d -m "$TMP_DIRECTORY/run_emacs" \\r
98 > > -                   --no-window-system \\r
99 > > -                   --eval "(setq server-name \"$EMACS_SERVER\")" \\r
100 > > -                   --eval '(server-start)' \\r
101 > > -                   --eval "(orphan-watchdog $$)" || return\r
102 > > +           # start a detached session with an emacs server\r
103 > > +           # user's TERM is given to dtach which assumes a minimally\r
104 > > +           # VT100-compatible terminal -- and emacs inherits that\r
105 > > +           TERM=$ORIGINAL_TERM dtach -n "$TMP_DIRECTORY/emacs-dtach-socket.$$" \\r
106 > > +                   sh -c "stty rows 24 cols 80; exec '$TMP_DIRECTORY/run_emacs' \\r
107\r
108 > The above line has a space after two tabs.\r
109 \r
110 oops...\r
111 \r
112 I also forgot \r
113 \r
114 -export SCREENRC=/dev/null\r
115 -export SYSSCREENRC=/dev/null\r
116 \r
117 (dropped accidetally when cherry-picking non-whitespace changes)\r
118 Thanks for playing. Try once more...\r
119 \r
120\r
121 > Regards,\r
122 >   Dmitry\r
123 \r
124 Tomi\r
125 \r
126\r
127 > > +                           --no-window-system \\r
128 > > +                           --eval '(setq server-name \"$EMACS_SERVER\")' \\r
129 > > +                           --eval '(server-start)' \\r
130 > > +                           --eval '(orphan-watchdog $$)'" || return\r
131 > >             # wait until the emacs server is up\r
132 > >             until test_emacs '()' 2>/dev/null; do\r
133 > >                     sleep 1\r
134 > > -- \r
135 > > 1.7.6.1\r
136 > > \r
137 > > _______________________________________________\r
138 > > notmuch mailing list\r
139 > > notmuch@notmuchmail.org\r
140 > > http://notmuchmail.org/mailman/listinfo/notmuch\r
141\r