From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 8L8LF2Q/31+fJAAA0tVLHw (envelope-from ) for ; Sun, 20 Dec 2020 12:11:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YTrQEmQ/319jLgAAbx9fmQ (envelope-from ) for ; Sun, 20 Dec 2020 12:11:16 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1AD019401BC for ; Sun, 20 Dec 2020 12:11:16 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 5692829CAA; Sun, 20 Dec 2020 07:10:43 -0500 (EST) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id A6CA128536 for ; Sun, 20 Dec 2020 07:10:33 -0500 (EST) Received: by fethera.tethera.net (Postfix, from userid 1001) id 9E5195FC36; Sun, 20 Dec 2020 07:10:33 -0500 (EST) Received: (nullmailer pid 1122977 invoked by uid 1000); Sun, 20 Dec 2020 12:10:27 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 5/6] test: add regression test for searching with alternate config Date: Sun, 20 Dec 2020 08:10:23 -0400 Message-Id: <20201220121024.1122362-6-david@tethera.net> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201220121024.1122362-1-david@tethera.net> References: <20201220121024.1122362-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: BBJBCLVMFTZK3TPVMLOSMGPYKH2QXZRO X-Message-ID-Hash: BBJBCLVMFTZK3TPVMLOSMGPYKH2QXZRO X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.66 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 1AD019401BC X-Spam-Score: 0.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: /xw0H3UizJ3t Make sure upcoming changes to config handling do not break command line specification. --- test/T140-excludes.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/T140-excludes.sh b/test/T140-excludes.sh index 0cf69975..cef07095 100755 --- a/test/T140-excludes.sh +++ b/test/T140-excludes.sh @@ -39,6 +39,16 @@ deleted_id=$gen_msg_id output=$(notmuch search subject:deleted | notmuch_search_sanitize) test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Not deleted (inbox unread)" +test_begin_subtest "Search, exclude \"deleted\" messages; alternate config file" +cp ${NOTMUCH_CONFIG} alt-config +notmuch config set search.exclude_tags +notmuch --config=alt-config search subject:deleted | notmuch_search_sanitize > OUTPUT +cp alt-config ${NOTMUCH_CONFIG} +cat < EXPECTED +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Not deleted (inbox unread) +EOF +test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest "Search, exclude \"deleted\" messages from message search" output=$(notmuch search --output=messages subject:deleted | notmuch_search_sanitize) test_expect_equal "$output" "id:$not_deleted_id" -- 2.29.2