RE: [Spam-verdenking][english 100%] Re: another bug fix release: 0.15.2, in progress.
[notmuch-archives.git] / 56 / 5689ca16fd05a2c7b614e1de7dac769d7933ae
1 Return-Path: <sojkam1@fel.cvut.cz>\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 507514196F0\r
6         for <notmuch@notmuchmail.org>; Fri, 16 Apr 2010 01:17:21 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -1.9\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
12         tests=[BAYES_00=-1.9] autolearn=unavailable\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 KQfEmDhngH9i for <notmuch@notmuchmail.org>;\r
16         Fri, 16 Apr 2010 01:17:19 -0700 (PDT)\r
17 Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36])\r
18         by olra.theworths.org (Postfix) with ESMTP id 292C2431FC1\r
19         for <notmuch@notmuchmail.org>; Fri, 16 Apr 2010 01:17:19 -0700 (PDT)\r
20 Received: from localhost (unknown [192.168.200.4])\r
21         by max.feld.cvut.cz (Postfix) with ESMTP id E1F4719F33DA;\r
22         Fri, 16 Apr 2010 10:17:17 +0200 (CEST)\r
23 X-Virus-Scanned: IMAP AMAVIS\r
24 Received: from max.feld.cvut.cz ([192.168.200.1])\r
25         by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new,\r
26         port 10044)\r
27         with ESMTP id 2GR26P-CHKyX; Fri, 16 Apr 2010 10:17:16 +0200 (CEST)\r
28 Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34])\r
29         by max.feld.cvut.cz (Postfix) with ESMTP id B611719F33E6;\r
30         Fri, 16 Apr 2010 10:17:16 +0200 (CEST)\r
31 Received: from steelpick.2x.cz (k335-30.felk.cvut.cz [147.32.86.30])\r
32         (Authenticated sender: sojkam1)\r
33         by imap.feld.cvut.cz (Postfix) with ESMTPSA id 6E7FCFA006;\r
34         Fri, 16 Apr 2010 10:17:16 +0200 (CEST)\r
35 Received: from wsh by steelpick.2x.cz with local (Exim 4.71)\r
36         (envelope-from <sojkam1@fel.cvut.cz>)\r
37         id 1O2gjj-0003Hk-OW; Fri, 16 Apr 2010 10:17:15 +0200\r
38 From: Michal Sojka <sojkam1@fel.cvut.cz>\r
39 To: Carl Worth <cworth@cworth.org>, Gregor Hoffleit <gregor@hoffleit.de>,\r
40         notmuch <notmuch@notmuchmail.org>\r
41 Subject: Re: [PATCH] First tests for JSON output and UTF-8 in mail body and\r
42         subject\r
43 In-Reply-To: <878w8ofpx9.fsf@yoom.home.cworth.org>\r
44 References: <1267697893-sup-4538@sam.mediasupervision.de>\r
45         <87r5mje55l.fsf@yoom.home.cworth.org>\r
46         <1271176622-sup-4680@sam.mediasupervision.de>\r
47         <87iq7tft7j.fsf@yoom.home.cworth.org>\r
48         <87ochlt8r9.fsf@steelpick.2x.cz>\r
49         <878w8ofpx9.fsf@yoom.home.cworth.org>\r
50 Date: Fri, 16 Apr 2010 10:17:15 +0200\r
51 Message-ID: <87vdbrerqs.fsf@steelpick.2x.cz>\r
52 MIME-Version: 1.0\r
53 Content-Type: text/plain; charset=us-ascii\r
54 X-BeenThere: notmuch@notmuchmail.org\r
55 X-Mailman-Version: 2.1.13\r
56 Precedence: list\r
57 List-Id: "Use and development of the notmuch mail system."\r
58         <notmuch.notmuchmail.org>\r
59 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
60         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
61 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
62 List-Post: <mailto:notmuch@notmuchmail.org>\r
63 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
64 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
65         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
66 X-List-Received-Date: Fri, 16 Apr 2010 08:17:21 -0000\r
67 \r
68 > But you might actually like that change since it's one you requested in\r
69 > your first version of the modular test suite. I'm dropping the annoying\r
70 > execute_expecting macro that both runs notmuch and tests the\r
71 > output. There's now a much cleaner separation such as:\r
72\r
73 >       output=$($NOTMUCH search for-something)\r
74 >       pass_if_equal "$output" "something was found"\r
75 \r
76 It's definitely better than before. The current implementation of\r
77 pass_if_equal has IMHO one drawback - if it compares multiline text and\r
78 there is a difference, it is quite hard to see where.\r
79 \r
80 In my tests for maildir synchronization I use this approach:\r
81 \r
82   notmuch search tag:inbox | filter_output > actual &&\r
83   diff -u - actual <<EOF\r
84   thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; test message 3 (inbox)\r
85   EOF\r
86 \r
87 Thanks to the usee of diff, I immediately see only the differences.\r
88 \r
89 -Michal\r