From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id oHszM3wXTmDSEgAA0tVLHw (envelope-from ) for ; Sun, 14 Mar 2021 14:02:36 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id BfH/LnwXTmCeLAAA1q6Kng (envelope-from ) for ; Sun, 14 Mar 2021 14:02:36 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (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 8628F12B06 for ; Sun, 14 Mar 2021 15:02:36 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id B8BD127573; Sun, 14 Mar 2021 10:02:25 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 0C72A26A11 for ; Sun, 14 Mar 2021 10:02:22 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 03BA35FA96; Sun, 14 Mar 2021 10:02:21 -0400 (EDT) Received: (nullmailer pid 183631 invoked by uid 1000); Sun, 14 Mar 2021 14:02:19 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 01/22] test/setup: add check for config exists, but no database. Date: Sun, 14 Mar 2021 11:01:56 -0300 Message-Id: <20210314140217.183425-2-david@tethera.net> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210314140217.183425-1-david@tethera.net> References: <20210314140217.183425-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: 2MS2W4A6AAFFOYD6LPHSL6J5FOALZYGT X-Message-ID-Hash: 2MS2W4A6AAFFOYD6LPHSL6J5FOALZYGT 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615730556; 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-unsubscribe:list-subscribe:list-post; bh=j458RbXmyHaOpqsoEudBOYg8MsiiuCth8qfgzchvhuE=; b=FodL0RkxVxQHNjwJLH3UnXNWMfbgXKYGAsacZsP3b1HaDthH6W2tsx9vJN5+0wWttgAV8N TiVnjiLnV+080Rwz6iJKy+AdQo/9EIRyY0LU1BRVp9gm7AH6D5SheAbpv7MOurgTotMOW+ +TE1LYJaX+NpiqGrdp2iwI1xT0kGV4ynJ4WkitsteXdF9LgqBo3GDmv7ljYaT/7iVFinMv Ocd2vcN4mdl63KWX65xUSoczFvetcs0jWdXMNejQB8Lyu5NB9JbF9s5nog6kOFvKHblwA9 pk/QQFGACHX1Lum985JkKWC7wjgJFlEkUBRmWTLreLQKjpG38qm5tW8q4ixpYQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615730556; a=rsa-sha256; cv=none; b=WojAQ1rVUs+URbDqIvt62mRfz1ynJmrTTxB5LtCfAKP0C4k+wAHh/qHk9WckTPVWh7em1A ug4RpzYiiTLKvrA7vd34FK5MucTTGU8gKT4w3g06+Px4e/MCxmSDAWBu4LFyvX/JVNY6Zc WQZxpED/tGRfKT1D4qH+rSCQE0lWy5vPSf4oUW07XzdrSG8QNyaOv5xZ09NvCQl5bC7AZN pWkFX4MyxNRMdpgHb4fD05UwfU5tU9+TJmMezbFEYe9N8DYV3oNW4dT9uNJ6wpZSITLcth DdSVOennbYGuXYiMrIWMQ0I9S4VBkTgU6nidxHAVRLdUAiVsK56qOzizRE2kow== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.09 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 8628F12B06 X-Spam-Score: -1.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: QZ+IGee9VcI4 This code path is not currently tested, and will need updating if the location of the xapian database changes. --- test/T040-setup.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/T040-setup.sh b/test/T040-setup.sh index 1223ebf7..5eb281d7 100755 --- a/test/T040-setup.sh +++ b/test/T040-setup.sh @@ -34,4 +34,20 @@ built_with.compact=something built_with.field_processor=something built_with.retry_lock=something" +test_begin_subtest "notmuch with a config but without a database suggests notmuch new" +notmuch 2>&1 | notmuch_dir_sanitize > OUTPUT +cat < EXPECTED +Notmuch is configured, but there's not yet a database at + + MAIL_DIR/.notmuch + +You probably want to run "notmuch new" now to create that database. + +Note that the first run of "notmuch new" can take a very long time +and that the resulting database will use roughly the same amount of +storage space as the email being indexed. + +EOF +test_expect_equal_file EXPECTED OUTPUT + test_done -- 2.30.1