From: Mark Walters Date: Sat, 11 May 2013 21:47:43 +0000 (+0100) Subject: Re: [PATCH 1/2] test: add basic test for notmuch setup X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f7a9fc2c36506b69f5c338e7654fd8a5e5ba66c0;p=notmuch-archives.git Re: [PATCH 1/2] test: add basic test for notmuch setup --- diff --git a/13/78c84ccf32f8dec3da86f832a56ccad213df30 b/13/78c84ccf32f8dec3da86f832a56ccad213df30 new file mode 100644 index 000000000..0e74dd847 --- /dev/null +++ b/13/78c84ccf32f8dec3da86f832a56ccad213df30 @@ -0,0 +1,142 @@ +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 0E829431FBD + for ; Sat, 11 May 2013 14:47:55 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -1.098 +X-Spam-Level: +X-Spam-Status: No, score=-1.098 tagged_above=-999 required=5 + tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, + NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_MED=-2.3] autolearn=disabled +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 vSCDrwyA0f8L for ; + Sat, 11 May 2013 14:47:50 -0700 (PDT) +Received: from mail2.qmul.ac.uk (mail2.qmul.ac.uk [138.37.6.6]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 2B142431FBC + for ; Sat, 11 May 2013 14:47:50 -0700 (PDT) +Received: from smtp.qmul.ac.uk ([138.37.6.40]) + by mail2.qmul.ac.uk with esmtp (Exim 4.71) + (envelope-from ) + id 1UbHdq-0004I8-6W; Sat, 11 May 2013 22:47:48 +0100 +Received: from 93-97-24-31.zone5.bethere.co.uk ([93.97.24.31] helo=localhost) + by smtp.qmul.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.71) + (envelope-from ) + id 1UbHdp-00010m-RW; Sat, 11 May 2013 22:47:46 +0100 +From: Mark Walters +To: Jani Nikula , notmuch@notmuchmail.org +Subject: Re: [PATCH 1/2] test: add basic test for notmuch setup +In-Reply-To: + <9971e27c7c3fe569765bbca0f21de128ad1e4fac.1367781422.git.jani@nikula.org> +References: + <9971e27c7c3fe569765bbca0f21de128ad1e4fac.1367781422.git.jani@nikula.org> +User-Agent: Notmuch/0.14+255~gff3cc55 (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Sat, 11 May 2013 22:47:43 +0100 +Message-ID: <87vc6pchog.fsf@qmul.ac.uk> +MIME-Version: 1.0 +Content-Type: text/plain; charset=us-ascii +X-Sender-Host-Address: 93.97.24.31 +X-QM-SPAM-Info: Sender has good ham record. :) +X-QM-Body-MD5: a9b5831dbb2707f490874dab4c6b65c0 (of first 20000 bytes) +X-SpamAssassin-Score: -0.4 +X-SpamAssassin-SpamBar: / +X-SpamAssassin-Report: The QM spam filters have analysed this message to + determine if it is + spam. We require at least 5.0 points to mark a message as spam. + This message scored -0.4 points. + Summary of the scoring: + * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail + provider * (markwalters1009[at]gmail.com) + * -0.4 AWL AWL: From: address is in the auto white-list +X-QM-Scan-Virus: ClamAV says the message is clean +Cc: Tomi Ollila +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: Sat, 11 May 2013 21:47:55 -0000 + + +Hi + +These patches look good to me. + +Best wishes + +Mark + +On Sun, 05 May 2013, Jani Nikula wrote: +> And annotate with test_subtest_known_broken. Hooray. +> --- +> test/notmuch-test | 1 + +> test/setup | 28 ++++++++++++++++++++++++++++ +> 2 files changed, 29 insertions(+) +> create mode 100755 test/setup +> +> diff --git a/test/notmuch-test b/test/notmuch-test +> index ca9c3dc..27a144e 100755 +> --- a/test/notmuch-test +> +++ b/test/notmuch-test +> @@ -20,6 +20,7 @@ TESTS=" +> basic +> help-test +> config +> + setup +> new +> count +> search +> diff --git a/test/setup b/test/setup +> new file mode 100755 +> index 0000000..8cc5576 +> --- /dev/null +> +++ b/test/setup +> @@ -0,0 +1,28 @@ +> +#!/usr/bin/env bash +> + +> +test_description='"notmuch setup"' +> +. ./test-lib.sh +> + +> +test_begin_subtest "Create a new config interactively" +> +test_subtest_known_broken +> +notmuch --config=new-notmuch-config > /dev/null < +Test Suite +> +test.suite@example.com +> +another.suite@example.com +> + +> +/path/to/maildir +> +foo bar +> +baz +> +EOF +> +output=$(notmuch --config=new-notmuch-config config list) +> +test_expect_equal "$output" "\ +> +database.path=/path/to/maildir +> +user.name=Test Suite +> +user.primary_email=test.suite@example.com +> +user.other_email=another.suite@example.com; +> +new.tags=foo;bar; +> +new.ignore= +> +search.exclude_tags=baz; +> +maildir.synchronize_flags=true" +> + +> +test_done +> -- +> 1.7.10.4 +> +> _______________________________________________ +> notmuch mailing list +> notmuch@notmuchmail.org +> http://notmuchmail.org/mailman/listinfo/notmuch