From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 9A195431FC3 for ; Sat, 20 Jul 2013 17:08:37 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.099 X-Spam-Level: X-Spam-Status: No, score=-0.099 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001] 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 voqrf1hFLqkb for ; Sat, 20 Jul 2013 17:08:31 -0700 (PDT) Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id BFD5E431FB6 for ; Sat, 20 Jul 2013 17:08:09 -0700 (PDT) Received: by mail-pd0-f172.google.com with SMTP id z10so5523979pdj.3 for ; Sat, 20 Jul 2013 17:08:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=5PqiF2vctRp8mjQVlHh0IOJwiylu+E8z4n8S+rOl7gk=; b=RUmJzi4JUG9iUW2t7tzmTQE5Y5hqe5JAmtXkgGdfzXHJ7pq+k60JJdAa70pzrxGJF9 wvumzqEt/hCj/Dq+wAWb5DV71uanaxtrCEk/kE1UOUCQveC1Z2Ff8KvInfdWk7NHGYh3 LmroJmHH0RABI5j96DzTv1aoI4CXoHkJtxlql/Gks4A0i/KsYMfUF/4O1s0URmSVRuNR loMP00ifq+DTSgiFxqh4Rp8SgpnvLkMXaeOP0Ap2RVnI2T6C4pN+vUqGmG0xOKATnNl8 3PBaSDUc8hDRJW+k/29pOTV/Vbq3dMpEOhj+o2vUOdzQtE8uinuVUxdlzgNPLaitPQqc hqBw== X-Received: by 10.66.21.37 with SMTP id s5mr25464790pae.103.1374365289095; Sat, 20 Jul 2013 17:08:09 -0700 (PDT) Received: from localhost (215.42.233.220.static.exetel.com.au. [220.233.42.215]) by mx.google.com with ESMTPSA id z14sm27407712pbt.0.2013.07.20.17.08.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sat, 20 Jul 2013 17:08:08 -0700 (PDT) From: Peter Wang To: notmuch@notmuchmail.org Subject: [PATCH 3/3] test: test insert --must-index Date: Sun, 21 Jul 2013 10:07:34 +1000 Message-Id: <1374365254-13227-3-git-send-email-novalazy@gmail.com> X-Mailer: git-send-email 1.7.12.1 In-Reply-To: <1374365254-13227-1-git-send-email-novalazy@gmail.com> References: <1374365254-13227-1-git-send-email-novalazy@gmail.com> 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: Sun, 21 Jul 2013 00:08:37 -0000 Test the new insert --must-index option. --- test/insert | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/insert b/test/insert index 021edb6..938753e 100755 --- a/test/insert +++ b/test/insert @@ -26,6 +26,9 @@ test_expect_code 1 "Insert zero-length file" \ test_expect_code 0 "Insert non-message" \ "echo bad_message | notmuch insert" +test_expect_code 2 "Insert non-message, --must-index" \ + "echo bad_message | notmuch insert --must-index" + test_begin_subtest "Database empty so far" test_expect_equal "0" "`notmuch count --output=messages '*'`" -- 1.7.12.1