1 Return-Path: <cworth@cworth.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 00A1B40BD9B
\r
6 for <notmuch@notmuchmail.org>; Mon, 20 Sep 2010 16:46:27 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.89 tagged_above=-999 required=5
\r
12 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, T_MIME_NO_TEXT=0.01]
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id KEduos1wwjpw; Mon, 20 Sep 2010 16:46:16 -0700 (PDT)
\r
17 Received: from yoom.home.cworth.org (localhost [127.0.0.1])
\r
18 by olra.theworths.org (Postfix) with ESMTP id 5AEF940BFD3;
\r
19 Mon, 20 Sep 2010 16:46:16 -0700 (PDT)
\r
20 Received: by yoom.home.cworth.org (Postfix, from userid 1000)
\r
21 id F27A7568E44; Mon, 20 Sep 2010 16:46:15 -0700 (PDT)
\r
22 From: Carl Worth <cworth@cworth.org>
\r
23 To: Michal Sojka <sojkam1@fel.cvut.cz>, notmuch@notmuchmail.org
\r
24 Subject: Re: [PATCH v3 0/5] Git-based modularization of test suite
\r
25 In-Reply-To: <874odkm4ey.fsf@yoom.home.cworth.org>
\r
26 References: <1276152484-1164-1-git-send-email-sojkam1@fel.cvut.cz>
\r
27 <874odkm4ey.fsf@yoom.home.cworth.org>
\r
28 User-Agent: Notmuch/0.3.1-61-g9f0accb (http://notmuchmail.org) Emacs/23.2.1
\r
30 Date: Mon, 20 Sep 2010 16:46:15 -0700
\r
31 Message-ID: <871v8om114.fsf@yoom.home.cworth.org>
\r
33 Content-Type: multipart/signed; boundary="=-=-=";
\r
34 micalg=pgp-sha1; protocol="application/pgp-signature"
\r
35 X-BeenThere: notmuch@notmuchmail.org
\r
36 X-Mailman-Version: 2.1.13
\r
38 List-Id: "Use and development of the notmuch mail system."
\r
39 <notmuch.notmuchmail.org>
\r
40 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
41 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
42 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
43 List-Post: <mailto:notmuch@notmuchmail.org>
\r
44 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
45 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
47 X-List-Received-Date: Mon, 20 Sep 2010 23:46:27 -0000
\r
50 Content-Transfer-Encoding: quoted-printable
\r
52 On Mon, 20 Sep 2010 15:33:09 -0700, Carl Worth <cworth@cworth.org> wrote:
\r
53 > I think what I'd prefer to have is for test-lib.sh to populate a
\r
54 > non-empty database (it could even provide a function to reset the
\r
55 > database to empty for any tests that actually want that).
\r
57 I've now implemented this. I did it slightly differently, making
\r
58 test-lib.sh provide an empty database by default and allowing tests to
\r
59 call a new add_email_corpus function if they need a bunch of email to
\r
62 That's because it turns out that many of the existing tests really do
\r
63 want to focus only on a few, carefully-controlled messages (think about
\r
64 the tests for "notmuch reply" for example).
\r
66 > For efficiency, the non-empty database could be created just once at the
\r
67 > first invocation and then could simply be copied into place for future
\r
70 I did do it this efficient way. It's only being used currently by the
\r
71 search and dump-restore tests, so that efficiency doesn't matter too
\r
72 much yet. But I do expect many more tests to start using this
\r
78 carl.d.worth@intel.com
\r
81 Content-Type: application/pgp-signature
\r
83 -----BEGIN PGP SIGNATURE-----
\r
84 Version: GnuPG v1.4.10 (GNU/Linux)
\r
86 iD8DBQFMl/JH6JDdNq8qSWgRAhHEAJ9w+U4pgFTvYRFR/ycH7RJfczt2CACeP2Q0
\r
87 J44FZwXQ4WEVY66hztmoZYw=
\r
89 -----END PGP SIGNATURE-----
\r