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 oJeyJAeJIGD3DQAA0tVLHw (envelope-from ) for ; Mon, 08 Feb 2021 00:42:47 +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 cNiCIAeJIGDFawAAbx9fmQ (envelope-from ) for ; Mon, 08 Feb 2021 00:42:47 +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 4EC4E94029C for ; Mon, 8 Feb 2021 00:42:47 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 4ADCA20664; Sun, 7 Feb 2021 19:41:51 -0500 (EST) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 2FB581FE81 for ; Sun, 7 Feb 2021 19:41:31 -0500 (EST) Received: by fethera.tethera.net (Postfix, from userid 1001) id 27673606DB; Sun, 7 Feb 2021 19:41:31 -0500 (EST) Received: (nullmailer pid 1193288 invoked by uid 1000); Mon, 08 Feb 2021 00:41:15 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 18/23] CLI/show: add tests for raw output in split config Date: Sun, 7 Feb 2021 20:41:04 -0400 Message-Id: <20210208004109.1192719-19-david@tethera.net> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210208004109.1192719-1-david@tethera.net> References: <20210208004109.1192719-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: TJCE755DVV4WEARIQSWIVDGWTFTPIHJS X-Message-ID-Hash: TJCE755DVV4WEARIQSWIVDGWTFTPIHJS 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.95 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: 4EC4E94029C X-Spam-Score: -0.95 X-Migadu-Scanner: scn0.migadu.com X-TUID: EdwDu4Iv+PWr This is a case where the CLI accesses both the database and the raw mail file --- test/T055-path-config.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/T055-path-config.sh b/test/T055-path-config.sh index 1bae1b1b..e5036400 100755 --- a/test/T055-path-config.sh +++ b/test/T055-path-config.sh @@ -110,6 +110,12 @@ for config in traditional split+prefix split XDG XDG+profile; do cur_msg_filename=$(notmuch search --output=files "subject:insert-subject") test_expect_equal_file "$cur_msg_filename" "$gen_msg_filename" + test_begin_subtest "Show a raw message ($config)" + add_message + notmuch show --format=raw id:$gen_msg_id > OUTPUT + test_expect_equal_file $gen_msg_filename OUTPUT + rm -f $gen_msg_filename + restore_config done -- 2.30.0