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 ms0.migadu.com with LMTPS id 3l24DiFFCGHKYQEAgWs5BA (envelope-from ) for ; Mon, 02 Aug 2021 21:18:57 +0200 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 KLOsCSFFCGEWWQAAbx9fmQ (envelope-from ) for ; Mon, 02 Aug 2021 19:18:57 +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 71F3CC141 for ; Mon, 2 Aug 2021 21:18:56 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 482D92C066; Mon, 2 Aug 2021 15:18:51 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id E68072C047 for ; Mon, 2 Aug 2021 15:18:48 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id A3F555FD5C; Mon, 2 Aug 2021 15:18:48 -0400 (EDT) Received: (nullmailer pid 3337661 invoked by uid 1000); Mon, 02 Aug 2021 19:18:47 -0000 From: David Bremner To: Milton Vandersloot , "notmuch@notmuchmail.org" Cc: David Bremner Subject: [PATCH 1/2] test/count: mark subtests needing gdb. Date: Mon, 2 Aug 2021 16:18:34 -0300 Message-Id: <20210802191835.3337610-1-david@tethera.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: References: MIME-Version: 1.0 Message-ID-Hash: P3GTHY4EYF5HIT44737F7ZWRKME2NMMA X-Message-ID-Hash: P3GTHY4EYF5HIT44737F7ZWRKME2NMMA 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=1627931936; 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=FXRy2nlXuXLdjMLVd4AnvrbDAmGBwBS8lTOjBA0IRuU=; b=PG+2TeslsJeYhbmPt5AmoRzA69Vjs8GohkvtJmA1XOpF0w08K3DTK5XTpkI8c0bDSBozJ2 B2GEV4VF2EX70UYUpesMQNdGfiWhtfDvXucOzLCE4btisslOtxHPqZgTpJl1Cg0eQLGzPy zga0G0m89VW7i+8h3rbZrrk3Q9n/pbE5y2t/1ZrN8yyeF5mCCHaRbMkW8FcAtx6jPkcThT wevVaHlZhS1EPgYNlm/jp26o62cewystk27bx6RuAwl6u9WaZKq8ysxRju6oIM4xxIl4Q2 nTMQpyxWts1M+pEw2Eyn+SgEdg1++03YPiOIKlzNlyirlHtGXWGBch85BLLt3A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627931936; a=rsa-sha256; cv=none; b=DwDdjqRat20WUalkgN8bvCu7lrVFLu1KUHVkFZyDy0XG1uhzAAAcQOydJ6oUHHgnA+k/JF 4oGgmsKNit9eRqqoxnMCsn2adh6fhp9+dgbnBW7K0iPEOdX6Fj7qvNKl0EJGc50v6ZcpHX GngCuUPMofj3n2lUIP3HYpx2WByo6KGCfN4R69Ij1Z53sMqQVNGQKkruEWNddhLjZkriVF BrH9puPgkmrpEIHumxjjZBdYXf0qIcnPO3zIMg78VUZK0m/RUqb/PSyQOmh/jFRmXkoRnr k9LLjtvx164f5fKYTLpJK92JAW9ghb1SMeBZMdoH5p2QfcRDf3Wcw/LfZbn3Pw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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.02 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: 71F3CC141 X-Spam-Score: -1.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: Rg7Q0zDgkagB The tests will otherwise fail if gdb is not installed. Thanks to Milton Vandersloot for pointing out the problem [1]: id:ztMWvyn1Vw0FloPT7NYTkFoY9Fm1Ez4YgMfYh99Te-Y6yXRtAXuEIfVrodhRKDSxjg-zOJa_RTQ68AtSbSO-ESla5BFLfG7sw5RTGRhEQwI=@protonmail.com --- test/T060-count.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/T060-count.sh b/test/T060-count.sh index a1ebf8ba..a1557e33 100755 --- a/test/T060-count.sh +++ b/test/T060-count.sh @@ -95,6 +95,7 @@ test_expect_equal_file EXPECTED OUTPUT backup_database test_begin_subtest "error message for database open" +test_require_external_prereq ${TEST_GDB} target=(${MAIL_DIR}/.notmuch/xapian/postlist.*) dd if=/dev/zero of="$target" count=3 notmuch count '*' 2>OUTPUT 1>/dev/null @@ -116,6 +117,7 @@ EOF backup_database test_begin_subtest "error message from query_search_messages" +test_require_external_prereq ${TEST_GDB} ${TEST_GDB} --batch-silent --return-child-result -x count-files.gdb \ --args notmuch count --output=files '*' 2>OUTPUT 1>/dev/null cat < EXPECTED -- 2.30.2