--- /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 6195F431E64\r
+ for <notmuch@notmuchmail.org>; Fri, 30 Mar 2012 16:16:18 -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 wrZU-7pXn2rx for <notmuch@notmuchmail.org>;\r
+ Fri, 30 Mar 2012 16:16:17 -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 8CC6A431FAF\r
+ for <notmuch@notmuchmail.org>; Fri, 30 Mar 2012 16:16:17 -0700 (PDT)\r
+Received: by mail-pz0-f45.google.com with SMTP id x6so56814dac.18\r
+ for <notmuch@notmuchmail.org>; Fri, 30 Mar 2012 16:16:17 -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=4C1YuE0pvhO+6XV5o7nH0c6arw8faDEs+hrXAMRDfXc=;\r
+ b=curk3m99s9qMbNLXn43FYuSLNjmjHw75KEnH4wNwJ9av4rhJjbk7vUWPzMz/jQo+yW\r
+ JmP0oEgj9SE4kAuPVONOtAD8Dhkz18AUwwnfZ4H2eIkSs4LJ/ifUDj/rVrFii8BHm7uF\r
+ /555Hy+mKg7RmzIxf4YMsyiFRlg58U8481VAwAN6FD8Ix1aBpbnDWgJQkP8+XivXL38I\r
+ cjhSYhu58eVn9S73aztpX6sm5L8c1jsVB+EfUq1M9sVRjVkq1YYMhD3vTUTaTZ28prqQ\r
+ eIr1rq6uT9P3cKft4HPgNhL04A7M+sGu0sSk/XKoG7Nx5znilXCF/ODdS7T+4sLf9X+G\r
+ A9hw==\r
+Received: by 10.68.242.38 with SMTP id wn6mr1211814pbc.72.1333149377232;\r
+ Fri, 30 Mar 2012 16:16:17 -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 s7sm6894210pbl.31.2012.03.30.16.16.14\r
+ (version=TLSv1/SSLv3 cipher=OTHER);\r
+ Fri, 30 Mar 2012 16:16:16 -0700 (PDT)\r
+From: Peter Wang <novalazy@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 2/5] test: Add tests for 'config' command\r
+Date: Sat, 31 Mar 2012 10:15:47 +1100\r
+Message-Id: <1333149350-22616-3-git-send-email-novalazy@gmail.com>\r
+X-Mailer: git-send-email 1.7.4.4\r
+In-Reply-To: <1333149350-22616-1-git-send-email-novalazy@gmail.com>\r
+References: <1332282698-7951-1-git-send-email-novalazy@gmail.com>\r
+ <1333149350-22616-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, 30 Mar 2012 23:16:18 -0000\r
+\r
+Start a new test script.\r
+---\r
+ test/config | 20 ++++++++++++++++++++\r
+ test/notmuch-test | 1 +\r
+ 2 files changed, 21 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..d3e574c\r
+--- /dev/null\r
++++ b/test/config\r
+@@ -0,0 +1,20 @@\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_expect_success "Set string value" \\r
++ 'notmuch config set foo.bar baz'\r
++\r
++test_expect_success "Set list value" \\r
++ 'notmuch config set foo.list xxx "yyy yyy" "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