From 06b89eb0e5de7e207816ddd08ac8e740cfdebdc1 Mon Sep 17 00:00:00 2001 From: Jameson Graef Rollins Date: Wed, 11 Apr 2012 00:30:29 +1700 Subject: [PATCH] Re: [PATCH v3 2/5] test: Add tests for 'config' command --- 2b/60a2dff7d7ea6f7937e9c933e09a9769833bd8 | 100 ++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 2b/60a2dff7d7ea6f7937e9c933e09a9769833bd8 diff --git a/2b/60a2dff7d7ea6f7937e9c933e09a9769833bd8 b/2b/60a2dff7d7ea6f7937e9c933e09a9769833bd8 new file mode 100644 index 000000000..a2a46b384 --- /dev/null +++ b/2b/60a2dff7d7ea6f7937e9c933e09a9769833bd8 @@ -0,0 +1,100 @@ +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 31D2D431FAF + for ; Tue, 10 Apr 2012 00:30:36 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -2.29 +X-Spam-Level: +X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] 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 bcey6xqkP9gg for ; + Tue, 10 Apr 2012 00:30:35 -0700 (PDT) +Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu + [131.215.239.19]) + by olra.theworths.org (Postfix) with ESMTP id D3552431FAE + for ; Tue, 10 Apr 2012 00:30:35 -0700 (PDT) +Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1]) + by fire-doxen-postvirus (Postfix) with ESMTP id 7A2CA2E50D7E; + Tue, 10 Apr 2012 00:30:35 -0700 (PDT) +X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new +Received: from finestructure.net (unknown [76.89.193.65]) + (Authenticated sender: jrollins) + by fire-doxen-submit (Postfix) with ESMTP id B9B0D2E50DA0; + Tue, 10 Apr 2012 00:30:32 -0700 (PDT) +Received: by finestructure.net (Postfix, from userid 1000) + id 6EE66762; Tue, 10 Apr 2012 00:30:32 -0700 (PDT) +From: Jameson Graef Rollins +To: Peter Wang , notmuch@notmuchmail.org +Subject: Re: [PATCH v3 2/5] test: Add tests for 'config' command +In-Reply-To: <1333676886-9835-3-git-send-email-novalazy@gmail.com> +References: <1332282698-7951-1-git-send-email-novalazy@gmail.com> + <1333676886-9835-1-git-send-email-novalazy@gmail.com> + <1333676886-9835-3-git-send-email-novalazy@gmail.com> +User-Agent: Notmuch/0.12+108~g7bdb40c (http://notmuchmail.org) Emacs/23.4.1 + (x86_64-pc-linux-gnu) +Date: Tue, 10 Apr 2012 00:30:29 -0700 +Message-ID: <87pqbghwmi.fsf@servo.finestructure.net> +MIME-Version: 1.0 +Content-Type: multipart/signed; boundary="=-=-="; + micalg=pgp-sha256; protocol="application/pgp-signature" +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: Tue, 10 Apr 2012 07:30:36 -0000 + +--=-=-= + +On Thu, Apr 05 2012, Peter Wang wrote: +> +test_begin_subtest "Set string value" +> +notmuch config set foo.bar baz +> +test_expect_equal "$(notmuch config get foo.bar)" "baz" +> + +> +test_begin_subtest "Set list value" +> +notmuch config set foo.list xxx "yyy yyy" "zzz zzz" +> +test_expect_equal "$(notmuch config get foo.list)" "\ +> +xxx +> +yyy yyy +> +zzz zzz" + +I find it slightly strange to use non-existent fields here, but I also +don't see that it hurts anything either. At least at the moment. +Another option would be to use an existing field, and change it back +when you're done. + +jamie. + +--=-=-= +Content-Type: application/pgp-signature + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.12 (GNU/Linux) + +iQIcBAEBCAAGBQJPg+GWAAoJEO00zqvie6q8l+gP/izGT8F/1300lfRfSjmIJpwC +VCjZhAVHtIlFstuaBJ5OeKWH1Dr7nNNY7+pUM07w3Gg3XJpzAlpNomHFYeWCABY/ +LyX5KFChPIicui/vlYfCChh28kUHKwge8LdGnE4t/otzvGnWB/M85OQRyN+Sp1I7 +9aybvbSkGi6UCBgclPVaO1kb6qC4RuotE6kg4CjAqLeHLzbDUxGIl7QWFH0uL8vD +ebIbQMtTALwYo9EpCm1sSFruYWrOid6cLCu8Ne9skRXQj5fq0PsDvOfLPk1ag3TX +KJuMvEW4yYS0phCfPfxnzTOWz6XhfT/pW6VV9BKOme23TqJD3HwuJZtZqbmSmJPP +WgDUcVw3E5kLxbC8cO6XKkTX/gHKi/BEcgSc+yQIhBmSxj7YuZPB/DSdbmEoHhVR +I9fy3eXPsY6lmZUzBMgKWruHCXgsCg9R5pUFydpxz0hyj4vYqDQdfyy2vn28zCAP +cWWeQ+hyPShgb1FSL6OEhozdouZYY9yWX5AiWhiVMltAzbVXbDMu5qtGgnM9ZnLR +aeoSUtsyiC47g6reIX7HDeG10gxWrs+QrPjF8qZNXJxJ40iUFvnWonVrnvKxpaeO +r7ucxcFzVVSqlvV+9FbiuonwaYHeSayl5AiP11wACQQdCKHglQdIiEOXoCR8f4vp +xeNvSSC1r2TKl86HPbRu +=CB70 +-----END PGP SIGNATURE----- +--=-=-=-- -- 2.26.2