--- /dev/null
+Return-Path: <novalazy@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id CEBE1431FAE\r
+ for <notmuch@notmuchmail.org>; Thu, 5 Apr 2012 18:48:54 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 7m79flPd5Ujo for <notmuch@notmuchmail.org>;\r
+ Thu, 5 Apr 2012 18:48:53 -0700 (PDT)\r
+Received: from mail-pz0-f45.google.com (mail-pz0-f45.google.com\r
+ [209.85.210.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id DF2EA431FC3\r
+ for <notmuch@notmuchmail.org>; Thu, 5 Apr 2012 18:48:52 -0700 (PDT)\r
+Received: by mail-pz0-f45.google.com with SMTP id x6so2370746dac.18\r
+ for <notmuch@notmuchmail.org>; Thu, 05 Apr 2012 18:48:52 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
+ bh=lSXF8dXoTSJUPUSDS8j6jlm9H12EIT2KLk2XbAKhpgs=;\r
+ b=xHlU2RisdlbI71pHYRbQt8KauGOoGLNMd0xtV3WsFyL51MxNWz5JhqLxZDsCyCzyas\r
+ c7yK1nap7s3ntPEYS0Rmz5Xbg3NsgykKItkmZeVRj4/GGu8ZLfFS7XNYH+lrljIWlEZf\r
+ sQTUPqaqZIgjy+EXzmPYKw/Bof97D184kjhn7W+kHkaHyd0Ma+WzAZd1a8XsbLnFVnkh\r
+ pVjlYwgDJnwG3SPZdyXvcHq2XMMjvZCvLU582jXh668hAzQKSRxDJ4rTREYTa3W1wm+S\r
+ D2PgHZuBinbDwkckgMAz51n8XjkqbvsRwg4WkgyUNz4QETmqHNHi1wyRNPy5uayC9Ckv\r
+ C6Lw==\r
+Received: by 10.68.200.5 with SMTP id jo5mr11715417pbc.42.1333676932668;\r
+ Thu, 05 Apr 2012 18:48:52 -0700 (PDT)\r
+Received: from localhost (215.42.233.220.static.exetel.com.au.\r
+ [220.233.42.215])\r
+ by mx.google.com with ESMTPS id b3sm4789422pbm.11.2012.04.05.18.48.50\r
+ (version=TLSv1/SSLv3 cipher=OTHER);\r
+ Thu, 05 Apr 2012 18:48:51 -0700 (PDT)\r
+From: Peter Wang <novalazy@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v3 2/5] test: Add tests for 'config' command\r
+Date: Fri, 6 Apr 2012 11:48:03 +1000\r
+Message-Id: <1333676886-9835-3-git-send-email-novalazy@gmail.com>\r
+X-Mailer: git-send-email 1.7.4.4\r
+In-Reply-To: <1333676886-9835-1-git-send-email-novalazy@gmail.com>\r
+References: <1332282698-7951-1-git-send-email-novalazy@gmail.com>\r
+ <1333676886-9835-1-git-send-email-novalazy@gmail.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 06 Apr 2012 01:48:55 -0000\r
+\r
+Start a new test script.\r
+---\r
+ test/config | 25 +++++++++++++++++++++++++\r
+ test/notmuch-test | 1 +\r
+ 2 files changed, 26 insertions(+), 0 deletions(-)\r
+ create mode 100755 test/config\r
+\r
+diff --git a/test/config b/test/config\r
+new file mode 100755\r
+index 0000000..75f662d\r
+--- /dev/null\r
++++ b/test/config\r
+@@ -0,0 +1,25 @@\r
++#!/usr/bin/env bash\r
++\r
++test_description='"notmuch config"'\r
++. test-lib.sh\r
++\r
++test_begin_subtest "Get string value"\r
++test_expect_equal "$(notmuch config get user.name)" "Notmuch Test Suite"\r
++\r
++test_begin_subtest "Get list value"\r
++test_expect_equal "$(notmuch config get new.tags)" "\\r
++unread\r
++inbox"\r
++\r
++test_begin_subtest "Set string value"\r
++notmuch config set foo.bar baz\r
++test_expect_equal "$(notmuch config get foo.bar)" "baz"\r
++\r
++test_begin_subtest "Set list value"\r
++notmuch config set foo.list xxx "yyy yyy" "zzz zzz"\r
++test_expect_equal "$(notmuch config get foo.list)" "\\r
++xxx\r
++yyy yyy\r
++zzz zzz"\r
++\r
++test_done\r
+diff --git a/test/notmuch-test b/test/notmuch-test\r
+index f03b594..e08ec72 100755\r
+--- a/test/notmuch-test\r
++++ b/test/notmuch-test\r
+@@ -19,6 +19,7 @@ cd $(dirname "$0")\r
+ TESTS="\r
+ basic\r
+ help-test\r
++ config\r
+ new\r
+ count\r
+ search\r
+-- \r
+1.7.4.4\r
+\r