Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 588ED40BD9C for ; Wed, 22 Sep 2010 02:49:53 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PF1hX0Cu8wF2 for ; Wed, 22 Sep 2010 02:49:40 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 1D60640BD85 for ; Wed, 22 Sep 2010 02:49:40 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id EE33019F33CD; Wed, 22 Sep 2010 11:49:38 +0200 (CEST) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id 347WMaBb+0W9; Wed, 22 Sep 2010 11:49:34 +0200 (CEST) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id A84EB19F3356; Wed, 22 Sep 2010 11:48:57 +0200 (CEST) Received: from steelpick.2x.cz (note-sojka.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id B3B45FA003; Wed, 22 Sep 2010 11:48:57 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.72) (envelope-from ) id 1OyLwf-0002ih-Cs; Wed, 22 Sep 2010 11:48:57 +0200 From: Michal Sojka To: Carl Worth , notmuch@notmuchmail.org Subject: Re: [PATCH v3 0/5] Git-based modularization of test suite In-Reply-To: <874odkm4ey.fsf@yoom.home.cworth.org> References: <1276152484-1164-1-git-send-email-sojkam1@fel.cvut.cz> <874odkm4ey.fsf@yoom.home.cworth.org> User-Agent: Notmuch/0.3.1-83-g6fec75f (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Wed, 22 Sep 2010 11:48:57 +0200 Message-ID: <87tyliun06.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Sep 2010 09:49:53 -0000 Hi Carl, good to here from you again :-) On Mon, 20 Sep 2010, Carl Worth wrote: > I've now pushed this out, along with some changes of my own on top of > it. My changes make things in the test suite look more like they did > before the git-based modularization, (both output from the test suite > and how the tests themselves are written). I couldn't stand the approach > of doing long chains of shell commands within strings for the tests, and > I also didn't like the numeric filenames. > > Take a look at what I've done, and let me know if I defeated any > intended benefits of the git-based modularization of the test suite. I went through your changes and they seems reasonable to me. I'll try to update my tests for maildir synchronization and let you know (or send a patch) if I find some problems. > One problem with the current arrangement is that all tests now start > with an empty database of messages. This means that the search tests > aren't giving as much test coverage. And the dump/restore tests are > actually testing nothing at all! > > I think what I'd prefer to have is for test-lib.sh to populate a > non-empty database (it could even provide a function to reset the > database to empty for any tests that actually want that). > > For efficiency, the non-empty database could be created just once at the > first invocation and then could simply be copied into place for future > invocations. > > If anyone wants to help fix that, that would be great. Looks like you have already fix that. Thanks, Michal