Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 36240431FAF for ; Sat, 24 Nov 2012 22:16:12 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 QqVh2j3ObHAV for ; Sat, 24 Nov 2012 22:16:11 -0800 (PST) Received: from dmz-mailsec-scanner-8.mit.edu (DMZ-MAILSEC-SCANNER-8.MIT.EDU [18.7.68.37]) by olra.theworths.org (Postfix) with ESMTP id 896EF431FAE for ; Sat, 24 Nov 2012 22:16:11 -0800 (PST) X-AuditID: 12074425-b7fcc6d00000091f-5e-50b1b7ab3bec Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP id E8.BB.02335.BA7B1B05; Sun, 25 Nov 2012 01:16:11 -0500 (EST) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id qAP6G5Ac028265; Sun, 25 Nov 2012 01:16:05 -0500 Received: from drake.dyndns.org (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com [209.6.116.242]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id qAP6G3i9006918 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sun, 25 Nov 2012 01:16:04 -0500 (EST) Received: from amthrax by drake.dyndns.org with local (Exim 4.77) (envelope-from ) id 1TcVVb-0008HO-96; Sun, 25 Nov 2012 01:16:03 -0500 From: Austin Clements To: notmuch@notmuchmail.org Subject: [PATCH 2/3] test: Test for ignoring multi-message mbox Date: Sun, 25 Nov 2012 01:16:00 -0500 Message-Id: <1353824161-31717-2-git-send-email-amdragon@mit.edu> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1353824161-31717-1-git-send-email-amdragon@mit.edu> References: <1353824161-31717-1-git-send-email-amdragon@mit.edu> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLIsWRmVeSWpSXmKPExsUixG6nort6+8YAg6ez2SxutHYzWly/OZPZ gcnj2apbzB5bDr1nDmCK4rJJSc3JLEst0rdL4Mr4cXYKY8EPnorjn64wNzB+4upi5OSQEDCR eHrmOCuELSZx4d56ti5GLg4hgX2MEtdfvmOFcDYwSpzYeJ8FwnnEJLH/2g4mkBYhgbmMEj1z 2UFsNgENiW37lzOC2CIC0hI7784GG8ssYClx9Ws7WL2wgL3E0lmP2EBsFgFViXfHesHivAIO Es8bFzJCnKEo0f1sAlgNp4CjxMK+A2wQuxwkzk8+zjKBkX8BI8MqRtmU3Crd3MTMnOLUZN3i 5MS8vNQiXQu93MwSvdSU0k2M4FByUd3BOOGQ0iFGAQ5GJR7eG4kbA4RYE8uKK3MPMUpyMCmJ 8k7dDBTiS8pPqcxILM6ILyrNSS0+xCjBwawkwntgLVCONyWxsiq1KB8mJc3BoiTOeyPlpr+Q QHpiSWp2ampBahFMVoaDQ0mCd/tWoEbBotT01Iq0zJwShDQTByfIcB6g4dLbQYYXFyTmFmem Q+RPMSpKifP+2QaUEABJZJTmwfXCYv0VozjQK8K8giDtPMA0Adf9CmgwE9Dgp7PXgQwuSURI STUwei1Q3vrvn4ux4OcHzyV8pNSzObJMmlede797C3ve1q62i/6ny0snTNPilT00exr3MyGp FY9E8t4YdM+S/m23PcNy5rH9xVw5Bx56NE1RWrA6NGiquJry7utiNgqljy37P/S52H3TrNde +ar8xJ4j00XVu9wOLtu1+NCB+TvZbxnvk8opCpmcrMRSnJFoqMVcVJwIAOVctlzQAgAA 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, 25 Nov 2012 06:16:12 -0000 This test is currently broken. Note that its brokenness cascades and causes the next test to fail as well (because notmuch incorrectly indexes the mbox file). --- test/new | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/new b/test/new index 43d56e4..29f9aff 100755 --- a/test/new +++ b/test/new @@ -178,16 +178,34 @@ test_expect_equal "$output" \ # This test requires that notmuch new has been run at least once. test_begin_subtest "Skip and report non-mail files" +test_subtest_known_broken generate_message mkdir -p "${MAIL_DIR}"/.git && touch "${MAIL_DIR}"/.git/config touch "${MAIL_DIR}"/ignored_file touch "${MAIL_DIR}"/.ignored_hidden_file +cat > "${MAIL_DIR}"/mbox_file < +To: Notmuch Test Suite +Subject: Test mbox message 1 + +Body. + +From test_suite@notmuchmail.org Fri Jan 5 15:43:57 2001 +From: Notmuch Test Suite +To: Notmuch Test Suite +Subject: Test mbox message 2 + +Body 2. +EOF output=$(NOTMUCH_NEW 2>&1) test_expect_equal "$output" \ "Note: Ignoring non-mail file: ${MAIL_DIR}/.git/config Note: Ignoring non-mail file: ${MAIL_DIR}/.ignored_hidden_file Note: Ignoring non-mail file: ${MAIL_DIR}/ignored_file +Note: Ignoring non-mail file: ${MAIL_DIR}/mbox_file Added 1 new message to the database." +rm "${MAIL_DIR}"/mbox_file test_begin_subtest "Ignore files and directories specified in new.ignore" generate_message -- 1.7.10.4