Re: [PATCH 2/3] test: Add `test_emacs_expect_t'.
[notmuch-archives.git] / 1b / 0bfbf0471882459f710969c78fc02a3d8e84d1
1 Return-Path: <dme@dme.org>\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 7D47A429E5F\r
6         for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 06:35:12 -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.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 uXyF4073gelr for <notmuch@notmuchmail.org>;\r
16         Tue, 17 Jan 2012 06:35:12 -0800 (PST)\r
17 Received: from mail-ww0-f41.google.com (mail-ww0-f41.google.com\r
18  [74.125.82.41])        (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
19  certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
20  E1D6E429E3B    for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 06:35:11 -0800\r
21  (PST)\r
22 Received: by wgbdr12 with SMTP id dr12so2251005wgb.2\r
23         for <notmuch@notmuchmail.org>; Tue, 17 Jan 2012 06:35:10 -0800 (PST)\r
24 Received: by 10.180.95.131 with SMTP id dk3mr17578876wib.6.1326810910695;\r
25         Tue, 17 Jan 2012 06:35:10 -0800 (PST)\r
26 Received: from hotblack-desiato.hh.sledj.net\r
27         (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25])\r
28         by mx.google.com with ESMTPS id l2sm32200354wie.11.2012.01.17.06.35.08\r
29         (version=TLSv1/SSLv3 cipher=OTHER);\r
30         Tue, 17 Jan 2012 06:35:09 -0800 (PST)\r
31 Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000)\r
32         id 938CAA0048; Tue, 17 Jan 2012 14:35:07 +0000 (GMT)\r
33 To: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>, notmuch@notmuchmail.org\r
34 Subject: Re: [PATCH 2/3] test: Add `test_emacs_expect_t'.\r
35 In-Reply-To: <877h0qxv4u.fsf@gmail.com>\r
36 References: <87pqei327k.fsf@gmail.com>\r
37         <1326809224-22673-1-git-send-email-dme@dme.org>\r
38         <1326809224-22673-2-git-send-email-dme@dme.org>\r
39         <877h0qxv4u.fsf@gmail.com>\r
40 User-Agent: Notmuch/0.11+64~g42e8f66 (http://notmuchmail.org) Emacs/24.0.92.1\r
41         (x86_64-pc-linux-gnu)\r
42 From: David Edmondson <dme@dme.org>\r
43 Date: Tue, 17 Jan 2012 14:35:07 +0000\r
44 Message-ID: <cunobu2pfc4.fsf@hotblack-desiato.hh.sledj.net>\r
45 MIME-Version: 1.0\r
46 Content-Type: multipart/signed; boundary="=-=-=";\r
47         micalg=pgp-sha1; protocol="application/pgp-signature"\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.13\r
50 Precedence: list\r
51 List-Id: "Use and development of the notmuch mail system."\r
52         <notmuch.notmuchmail.org>\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
56 List-Post: <mailto:notmuch@notmuchmail.org>\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
60 X-List-Received-Date: Tue, 17 Jan 2012 14:35:12 -0000\r
61 \r
62 --=-=-=\r
63 Content-Type: text/plain\r
64 Content-Transfer-Encoding: quoted-printable\r
65 \r
66 On Tue, 17 Jan 2012 18:26:41 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmai=\r
67 l.com> wrote:\r
68 > Sorry, I still do not understand why we can not implement\r
69 > test_emacs_expect_t() like:\r
70 >=20\r
71 >   result=3D${test_emacs $@}\r
72 >   test_expect_equal $result t\r
73 >=20\r
74 > Can you please explain?\r
75 \r
76 In the failure case test_expect_equal does:\r
77 \r
78   test_failure_ "$test_subtest_name" "$(diff -u $testname.expected $testnam=\r
79 e.output)"\r
80 \r
81 that diff output is not useful here, because the test harness doesn't\r
82 have any expected output other than `t' with which to diff the actual\r
83 output.\r
84 \r
85 The emacs-address-cleaning test shows how we will provide expected\r
86 vs. actual output directly from within emacs, making it easier for the\r
87 developer to figure out what went wrong.\r
88 \r
89 --=-=-=\r
90 Content-Type: application/pgp-signature\r
91 \r
92 -----BEGIN PGP SIGNATURE-----\r
93 Version: GnuPG v1.4.11 (GNU/Linux)\r
94 \r
95 iEYEARECAAYFAk8VhxsACgkQaezQq/BJZRbT5QCeNaQdxcoVpxsiFfDMNoDHfQ9g\r
96 d24An1gyBEp+JTiFvCLArKEtITX5rGzQ\r
97 =FTbU\r
98 -----END PGP SIGNATURE-----\r
99 --=-=-=--\r