[PATCH 3/3] test: test insert --must-index
authorPeter Wang <novalazy@gmail.com>
Sun, 21 Jul 2013 00:07:34 +0000 (10:07 +1000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:56:05 +0000 (09:56 -0800)
e1/8f38d9cdb82ca20830df26b88da92b2500a27e [new file with mode: 0644]

diff --git a/e1/8f38d9cdb82ca20830df26b88da92b2500a27e b/e1/8f38d9cdb82ca20830df26b88da92b2500a27e
new file mode 100644 (file)
index 0000000..1ba2538
--- /dev/null
@@ -0,0 +1,85 @@
+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 9A195431FC3\r
+       for <notmuch@notmuchmail.org>; Sat, 20 Jul 2013 17:08:37 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.099\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.099 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_NONE=-0.0001] 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 voqrf1hFLqkb for <notmuch@notmuchmail.org>;\r
+       Sat, 20 Jul 2013 17:08:31 -0700 (PDT)\r
+Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com\r
+       [209.85.192.172]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id BFD5E431FB6\r
+       for <notmuch@notmuchmail.org>; Sat, 20 Jul 2013 17:08:09 -0700 (PDT)\r
+Received: by mail-pd0-f172.google.com with SMTP id z10so5523979pdj.3\r
+       for <notmuch@notmuchmail.org>; Sat, 20 Jul 2013 17:08:09 -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=5PqiF2vctRp8mjQVlHh0IOJwiylu+E8z4n8S+rOl7gk=;\r
+       b=RUmJzi4JUG9iUW2t7tzmTQE5Y5hqe5JAmtXkgGdfzXHJ7pq+k60JJdAa70pzrxGJF9\r
+       wvumzqEt/hCj/Dq+wAWb5DV71uanaxtrCEk/kE1UOUCQveC1Z2Ff8KvInfdWk7NHGYh3\r
+       LmroJmHH0RABI5j96DzTv1aoI4CXoHkJtxlql/Gks4A0i/KsYMfUF/4O1s0URmSVRuNR\r
+       loMP00ifq+DTSgiFxqh4Rp8SgpnvLkMXaeOP0Ap2RVnI2T6C4pN+vUqGmG0xOKATnNl8\r
+       3PBaSDUc8hDRJW+k/29pOTV/Vbq3dMpEOhj+o2vUOdzQtE8uinuVUxdlzgNPLaitPQqc\r
+       hqBw==\r
+X-Received: by 10.66.21.37 with SMTP id s5mr25464790pae.103.1374365289095;\r
+       Sat, 20 Jul 2013 17:08:09 -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 ESMTPSA id z14sm27407712pbt.0.2013.07.20.17.08.05\r
+       for <multiple recipients>\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Sat, 20 Jul 2013 17:08:08 -0700 (PDT)\r
+From: Peter Wang <novalazy@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 3/3] test: test insert --must-index\r
+Date: Sun, 21 Jul 2013 10:07:34 +1000\r
+Message-Id: <1374365254-13227-3-git-send-email-novalazy@gmail.com>\r
+X-Mailer: git-send-email 1.7.12.1\r
+In-Reply-To: <1374365254-13227-1-git-send-email-novalazy@gmail.com>\r
+References: <1374365254-13227-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: Sun, 21 Jul 2013 00:08:37 -0000\r
+\r
+Test the new insert --must-index option.\r
+---\r
+ test/insert | 3 +++\r
+ 1 file changed, 3 insertions(+)\r
+\r
+diff --git a/test/insert b/test/insert\r
+index 021edb6..938753e 100755\r
+--- a/test/insert\r
++++ b/test/insert\r
+@@ -26,6 +26,9 @@ test_expect_code 1 "Insert zero-length file" \\r
+ test_expect_code 0 "Insert non-message" \\r
+     "echo bad_message | notmuch insert"\r
\r
++test_expect_code 2 "Insert non-message, --must-index" \\r
++    "echo bad_message | notmuch insert --must-index"\r
++\r
+ test_begin_subtest "Database empty so far"\r
+ test_expect_equal "0" "`notmuch count --output=messages '*'`"\r
\r
+-- \r
+1.7.12.1\r
+\r