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 ms0.migadu.com with LMTPS id eMOcIh0llWC1NgEAgWs5BA (envelope-from ) for ; Fri, 07 May 2021 13:31:41 +0200 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 qBJoHh0llWA8egAA1q6Kng (envelope-from ) for ; Fri, 07 May 2021 11:31:41 +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)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 20E9212424 for ; Fri, 7 May 2021 13:31:41 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 1E4E727E26; Fri, 7 May 2021 07:31:15 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 08EE9271E9 for ; Fri, 7 May 2021 07:31:03 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id DE26460016; Fri, 7 May 2021 07:31:02 -0400 (EDT) Received: (nullmailer pid 2687424 invoked by uid 1000); Fri, 07 May 2021 11:30:57 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 6/9] test: test explicit configuration of backup directory Date: Fri, 7 May 2021 08:30:26 -0300 Message-Id: <20210507113029.2685184-7-david@tethera.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210507113029.2685184-1-david@tethera.net> References: <20210507113029.2685184-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: ZQRVWJ5VAPICCG7IRPQPBS5JOB3QMBZZ X-Message-ID-Hash: ZQRVWJ5VAPICCG7IRPQPBS5JOB3QMBZZ 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=1620387101; 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=4wrCOnrV8hbYAV9oLpaJktOGBCkYjyu6EN5h7XGwcj4=; b=E+L4iJ32998VcqbWQSzO77c4RcB2EosQaILendBxRSy2vYqfHeROaCwklNrdfBfp23qXse DV6njCcXnUeL4bBgRcCeeZj/SZX9raIvcNa386JcJ9dB4JgKGGpYM5dZ7rHJzCJsFLh6tJ O5E1A2E847OzPdmkDhPrgL0IdUOxaaZVUSqKMJlj+yft7HNwX6uPq0S37pl2vN6iFWcJnG 2gQDxy/WhA81gLpMHTW4j2E6Kj6afVxSZE0DDVkpPLEaDXjFiYZgNLiZEZc45bc4fza3iq 7aWk6erV+gsDcwzfQxz4AW7MGN02ME4uLdkJSLabnx1gAySf+McwqnlIDndR3w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620387101; a=rsa-sha256; cv=none; b=MlUQ8vH6TDPDCAAjdz2OsU3rd+ixAQe3Q1ehPQMbnlrZop4xCFy+lDSunr6z3/c9EZGpuq wdjACzJlTolHgFOmpBahlOJIgxCe+O26IwCwoE5wOIgi6JOXpNPRC4ydSoaOLn2qrLuTYS 1Ba069CWIeXq3gKtZTUe4lv+HrdiQF55Q4bTqlU02kCPPKhYpUj8P9x54eJRonHUoSnnAB ZW0vPyIvdAWYjyFUTTFvUvamy7I/mVDwLYG0YbgU2K1+Twe3UQay+QoLQemnbenni5hFuf rQEihV4vIwZHZ50GsjKN4SbmSjGpYlbXvjg312KObt0gxxo8flkFvm1z3tnCog== 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: 0.61 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: 20E9212424 X-Spam-Score: 0.61 X-Migadu-Scanner: scn0.migadu.com X-TUID: T3QMIQCm4TeX Including the relative path that was broken until a recent commit. --- test/T530-upgrade.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test/T530-upgrade.sh b/test/T530-upgrade.sh index cce29f45..5f0de2ed 100755 --- a/test/T530-upgrade.sh +++ b/test/T530-upgrade.sh @@ -54,4 +54,23 @@ for key in 'from/subject/message-ID in database' \ restore_database done +test_begin_subtest "upgrade with configured backup dir" +notmuch config set database.backup_dir ${HOME}/backups +delete_feature 'modification tracking' +notmuch new | grep Backing | notmuch_dir_sanitize | sed 's/dump-[0-9T]*/dump-XXX/' > OUTPUT +cat < EXPECTED +Backing up tags to CWD/home/backups/dump-XXX.gz... +EOF +test_expect_equal_file EXPECTED OUTPUT + +test_begin_subtest "upgrade with relative configured backup dir" +notmuch config set database.backup_dir ${HOME}/backups +delete_feature 'modification tracking' +notmuch new | grep Backing | notmuch_dir_sanitize | sed 's/dump-[0-9T]*/dump-XXX/' > OUTPUT +cat < EXPECTED +Backing up tags to CWD/home/backups/dump-XXX.gz... +EOF +test_expect_equal_file EXPECTED OUTPUT + + test_done -- 2.30.2