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 507514196F0 for ; Fri, 16 Apr 2010 01:17:21 -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=unavailable 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 KQfEmDhngH9i for ; Fri, 16 Apr 2010 01:17:19 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 292C2431FC1 for ; Fri, 16 Apr 2010 01:17:19 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id E1F4719F33DA; Fri, 16 Apr 2010 10:17:17 +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 2GR26P-CHKyX; Fri, 16 Apr 2010 10:17:16 +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 B611719F33E6; Fri, 16 Apr 2010 10:17:16 +0200 (CEST) Received: from steelpick.2x.cz (k335-30.felk.cvut.cz [147.32.86.30]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id 6E7FCFA006; Fri, 16 Apr 2010 10:17:16 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.71) (envelope-from ) id 1O2gjj-0003Hk-OW; Fri, 16 Apr 2010 10:17:15 +0200 From: Michal Sojka To: Carl Worth , Gregor Hoffleit , notmuch Subject: Re: [PATCH] First tests for JSON output and UTF-8 in mail body and subject In-Reply-To: <878w8ofpx9.fsf@yoom.home.cworth.org> References: <1267697893-sup-4538@sam.mediasupervision.de> <87r5mje55l.fsf@yoom.home.cworth.org> <1271176622-sup-4680@sam.mediasupervision.de> <87iq7tft7j.fsf@yoom.home.cworth.org> <87ochlt8r9.fsf@steelpick.2x.cz> <878w8ofpx9.fsf@yoom.home.cworth.org> Date: Fri, 16 Apr 2010 10:17:15 +0200 Message-ID: <87vdbrerqs.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: Fri, 16 Apr 2010 08:17:21 -0000 > But you might actually like that change since it's one you requested in > your first version of the modular test suite. I'm dropping the annoying > execute_expecting macro that both runs notmuch and tests the > output. There's now a much cleaner separation such as: > > output=$($NOTMUCH search for-something) > pass_if_equal "$output" "something was found" It's definitely better than before. The current implementation of pass_if_equal has IMHO one drawback - if it compares multiline text and there is a difference, it is quite hard to see where. In my tests for maildir synchronization I use this approach: notmuch search tag:inbox | filter_output > actual && diff -u - actual <