Re: [ANNOUNCE] mutt with notmuch support
[notmuch-archives.git] / 58 / 502b3963f745a10b71081140782c628e4cfe84
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 8C5CC429E27\r
6         for <notmuch@notmuchmail.org>; Tue,  8 Nov 2011 08:02:30 -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 vW5VFaI7c3wp for <notmuch@notmuchmail.org>;\r
16         Tue,  8 Nov 2011 08:02:28 -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 A41B1431FB6\r
21         for <notmuch@notmuchmail.org>; Tue,  8 Nov 2011 08:02:28 -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         pA8G2P4H019845\r
25         for <notmuch@notmuchmail.org>; Tue, 8 Nov 2011 18:02:26 +0200\r
26 From: Tomi Ollila <tomi.ollila@iki.fi>\r
27 To: <notmuch@notmuchmail.org>\r
28 Subject: [PATCH] test: make all tests terminable with Ctrl-c\r
29 User-Agent: Notmuch/0.9+23~g556c5fa (http://notmuchmail.org) Emacs/23.3.1\r
30         (i686-pc-linux-gnu)\r
31 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
32         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
33         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
34 Date: Tue, 08 Nov 2011 18:02:25 +0200\r
35 Message-ID: <yf6obwm1u26.fsf@taco2.nixu.fi>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain; charset=us-ascii\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.13\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42         <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
44         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
49         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Tue, 08 Nov 2011 16:02:30 -0000\r
51 \r
52 Some tests don't break when HUP signal is sent tho those (by\r
53 pressing ctrl-c on the terminal). Therefore, the top-level\r
54 test script catches the HUP and sends TERM signal to the\r
55 started test script.\r
56 ---\r
57  test/notmuch-test |    5 ++++-\r
58  1 files changed, 4 insertions(+), 1 deletions(-)\r
59 \r
60 diff --git a/test/notmuch-test b/test/notmuch-test\r
61 index 738f8f6..b38c2c6 100755\r
62 --- a/test/notmuch-test\r
63 +++ b/test/notmuch-test\r
64 @@ -57,10 +57,13 @@ else\r
65      TEST_TIMEOUT_CMD=""\r
66  fi\r
67  \r
68 +trap 'e=$?; kill $!; exit $e' HUP INT TERM\r
69  # Run the tests\r
70  for test in $TESTS; do\r
71 -    $TEST_TIMEOUT_CMD ./$test "$@"\r
72 +    $TEST_TIMEOUT_CMD ./$test "$@" &\r
73 +    wait $!\r
74  done\r
75 +trap - HUP INT TERM\r
76  \r
77  # Report results\r
78  ./aggregate-results.sh test-results/*\r
79 -- \r
80 1.7.6.2\r
81 \r