From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IMSRKq/Q42LcawEAbAwnHQ (envelope-from ) for ; Fri, 29 Jul 2022 14:21:03 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id iLKfKq/Q42KQWQEA9RJhRA (envelope-from ) for ; Fri, 29 Jul 2022 14:21:03 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 46B9141AB6 for ; Fri, 29 Jul 2022 14:21:03 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 18ABF5F38D; Fri, 29 Jul 2022 12:20:23 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 926AC5F371 for ; Fri, 29 Jul 2022 12:20:19 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id EDE7D5FC0D; Fri, 29 Jul 2022 08:20:18 -0400 (EDT) Received: (nullmailer pid 1557183 invoked by uid 1000); Fri, 29 Jul 2022 12:20:10 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 2/6] test: add test for creating database in various configurations. Date: Fri, 29 Jul 2022 09:19:57 -0300 Message-Id: <20220729122001.1556787-3-david@tethera.net> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220729122001.1556787-1-david@tethera.net> References: <20220729122001.1556787-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: ZNVRQTBUC7REYJLRAKM2K475N6QWZ4UV X-Message-ID-Hash: ZNVRQTBUC7REYJLRAKM2K475N6QWZ4UV 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; digests; suspicious-header CC: spwhitton@spwhitton.name X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659097263; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=T12705oMQMtbk9N+J67eUuQo/4eylfGsdCnqDeP1wX8=; b=ATPMmtXyLfNfLdd1TJDDG0zkeTfABriFPVtK3cBTGCxq1PcmyV1unTcQ7lJ132df+MRPfF FLbV+ZTNE0mHc1rHwJMLi7kScHZqdA15rWxSwaN8DVNX6pn+NQArmxcc3krmw17XpxIYvP iZpsmoP5kYBNrVRM7ldI/mfRJhktbYf0F0zTXubMsz4p/ve2J7GjQScSwjErTDkFuKAe2K XhwJFq4V8Aun4P7HNeeBqSRdYzXPxmTCJrTCH9+bUVUgs4K9ecs7t2h+r7iTj+LrwM1vMu xOCVoLIivMHYJwh+1Hs2X1A2Dn+bhs/R7cNl1JOZNHI4MsB4GnAu9l4f7MyWOA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659097263; a=rsa-sha256; cv=none; b=VEzOiU3qw6eCdeJATKMZWybMTT4fE+cJbO/EGz8fuApRN2F8pHevD84795iNvzUj4qjD0+ NU+MllFWwSwOzF1NVM6qt2nb3oNL5/Tv6tBpC23vY35xHPKBKFMiQYzf7Wgj+356l6KBen dOYkImkiGa0C7BW87/WzANFz0HCMoiMRtPIQGK5h7XJ77jZ8NcieigqhNAcWp8WZ7XUFmj GabRyQ+UIs9A2f21DeBkgC4g+vDsZtMVWpVSxOYH5C+rFWy2xQ3N30TKMDy+S7d2b9XTlw DirbqBIU5g+rMpz2he3xjvyLmEmPNB/0o77ypXKIjFYgAv+kr+UUslgxRk14RQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.10 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 46B9141AB6 X-Spam-Score: -2.10 X-Migadu-Scanner: scn0.migadu.com X-TUID: bp8oYhFWC36B The existing database creation (via add_email_corpus) was always done in the traditional configuration. The use of xapian-metadata is just to portably ensure that there is a database created where we expect there to be. --- 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 58c824a2..45545d88 100755 --- a/test/T055-path-config.sh +++ b/test/T055-path-config.sh @@ -313,6 +313,12 @@ user.other_email user.primary_email EOF test_expect_equal_file EXPECTED OUTPUT + + test_begin_subtest "create database ($config)" + rm -r ${XAPIAN_PATH} + notmuch new + test_expect_equal "$(xapian-metadata get ${XAPIAN_PATH} version)" 3 + case $config in XDG*) test_begin_subtest "Set shadowed config value in database ($config)" -- 2.35.2