[PATCH 1/2] test: add basic test for notmuch setup
authorJani Nikula <jani@nikula.org>
Sun, 5 May 2013 19:18:19 +0000 (22:18 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:54:38 +0000 (09:54 -0800)
87/87c03ed2585a365bb316cb69b2a9ff933544ee [new file with mode: 0644]

diff --git a/87/87c03ed2585a365bb316cb69b2a9ff933544ee b/87/87c03ed2585a365bb316cb69b2a9ff933544ee
new file mode 100644 (file)
index 0000000..478100c
--- /dev/null
@@ -0,0 +1,122 @@
+Return-Path: <jani@nikula.org>\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 04840431FBD\r
+       for <notmuch@notmuchmail.org>; Sun,  5 May 2013 12:18:34 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[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 PwYjKN40m2RW for <notmuch@notmuchmail.org>;\r
+       Sun,  5 May 2013 12:18:29 -0700 (PDT)\r
+Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com\r
+       [209.85.217.169]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id AB9CA431FAE\r
+       for <notmuch@notmuchmail.org>; Sun,  5 May 2013 12:18:28 -0700 (PDT)\r
+Received: by mail-lb0-f169.google.com with SMTP id z5so2847155lbh.28\r
+       for <notmuch@notmuchmail.org>; Sun, 05 May 2013 12:18:27 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=x-received:from:to:cc:subject:date:message-id:x-mailer\r
+       :x-gm-message-state;\r
+       bh=evMJ1tVkN/q1a96JnvqRYOx6vOdcUHN0fQav0ttvnV0=;\r
+       b=jME27hkAMT9A/DCs5rHjC/xsZGqdU/ombcbtsHsRWkU32iPoPe9c/58pfbyL7N19ux\r
+       ClbB1/8K0CBiZlpIcKjW8QcYFABeECW4EBYXHEfSaYoMA+FH+uNnw4qLOdxqgU99ErIt\r
+       ccgjDZz4dj72jPoVE9aJSk2M0vIGfd+V2Y/0ZyE9xEfdS8m3fnfFKs7PNJKK6tX4FRdV\r
+       MAU9AfzPM+Nxze1wtBJ50Q8WBHW3Fq+Dh5r/lrlrQDWq2jliLjwVk71Q6jRbocmZ0cd/\r
+       IPtwlj0UQgkS/0SBguFP+3xu/PiU6+LmohS7yQIIyFILAlQzhWaSU9SQChvX35ZILXNg\r
+       JC0Q==\r
+X-Received: by 10.112.5.137 with SMTP id s9mr7117541lbs.68.1367781507177;\r
+       Sun, 05 May 2013 12:18:27 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw2-58c376-211.dhcp.inet.fi.\r
+       [88.195.118.211])\r
+       by mx.google.com with ESMTPSA id 2sm3837256lay.5.2013.05.05.12.18.25\r
+       for <multiple recipients>\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Sun, 05 May 2013 12:18:26 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 1/2] test: add basic test for notmuch setup\r
+Date: Sun,  5 May 2013 22:18:19 +0300\r
+Message-Id:\r
+ <9971e27c7c3fe569765bbca0f21de128ad1e4fac.1367781422.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.10.4\r
+X-Gm-Message-State:\r
+ ALoCoQmAjPFW1FVKVr43tCM8klvOUTEUi1u9BnunP0I2saWVGZse6/PtWmheJlFnk4WLXD60UokX\r
+Cc: Tomi Ollila <tomi.ollila@iki.fi>\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: Sun, 05 May 2013 19:18:34 -0000\r
+\r
+And annotate with test_subtest_known_broken. Hooray.\r
+---\r
+ test/notmuch-test |    1 +\r
+ test/setup        |   28 ++++++++++++++++++++++++++++\r
+ 2 files changed, 29 insertions(+)\r
+ create mode 100755 test/setup\r
+\r
+diff --git a/test/notmuch-test b/test/notmuch-test\r
+index ca9c3dc..27a144e 100755\r
+--- a/test/notmuch-test\r
++++ b/test/notmuch-test\r
+@@ -20,6 +20,7 @@ TESTS="\r
+   basic\r
+   help-test\r
+   config\r
++  setup\r
+   new\r
+   count\r
+   search\r
+diff --git a/test/setup b/test/setup\r
+new file mode 100755\r
+index 0000000..8cc5576\r
+--- /dev/null\r
++++ b/test/setup\r
+@@ -0,0 +1,28 @@\r
++#!/usr/bin/env bash\r
++\r
++test_description='"notmuch setup"'\r
++. ./test-lib.sh\r
++\r
++test_begin_subtest "Create a new config interactively"\r
++test_subtest_known_broken\r
++notmuch --config=new-notmuch-config > /dev/null <<EOF\r
++Test Suite\r
++test.suite@example.com\r
++another.suite@example.com\r
++\r
++/path/to/maildir\r
++foo bar\r
++baz\r
++EOF\r
++output=$(notmuch --config=new-notmuch-config config list)\r
++test_expect_equal "$output" "\\r
++database.path=/path/to/maildir\r
++user.name=Test Suite\r
++user.primary_email=test.suite@example.com\r
++user.other_email=another.suite@example.com;\r
++new.tags=foo;bar;\r
++new.ignore=\r
++search.exclude_tags=baz;\r
++maildir.synchronize_flags=true"\r
++\r
++test_done\r
+-- \r
+1.7.10.4\r
+\r