From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AFWlMuYX12D9ZwEAgWs5BA (envelope-from ) for ; Sat, 26 Jun 2021 14:04:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MOZlLuYX12ATXAAA1q6Kng (envelope-from ) for ; Sat, 26 Jun 2021 12:04:54 +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 819C117EB7 for ; Sat, 26 Jun 2021 14:04:54 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id EBD55290CC; Sat, 26 Jun 2021 08:04:44 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 6D200290A8 for ; Sat, 26 Jun 2021 08:04:40 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 5E5DC5FD21; Sat, 26 Jun 2021 08:04:40 -0400 (EDT) Received: (nullmailer pid 153676 invoked by uid 1000); Sat, 26 Jun 2021 12:04:37 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 1/3] test: start test file for emacs unthreaded view. Date: Sat, 26 Jun 2021 09:04:26 -0300 Message-Id: <20210626120428.153445-2-david@tethera.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210626120428.153445-1-david@tethera.net> References: <20210626120428.153445-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: DGXVCKQXBCYXSLDOZBWUEUACL6ON4MPT X-Message-ID-Hash: DGXVCKQXBCYXSLDOZBWUEUACL6ON4MPT 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=1624709094; 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=zp3zsrqSenPIeJ0rLLTrSrHuLJZGp7Cv8AoJikDHdgc=; b=nSYMtPIst8o6rfEyHUfW1LKVyaeYW0CpGfjq3vu7vrC2kYoXWTWDqVqXm4k9CrykwKDYOw SKTp/6ptJJQ1wGxL5jioIuE6CJF+QD8NZBMnTlkv79vrxFCyLAK629XTjqzD+hmL7FtsRK XY6zNGFmYlqupSTfTJf3TUQbFe8W8wTNSVSIkJx9POaOQCVHDht0/D3Fx9y/BUTc1dCN+p jsXrrphdeU9Fq1XFZfDBG69AoTq+dhLCdjaQ3fqT3W8xT4/e61OZTrUkOSQZnjEFDG7xh6 Zp/7DgXaah2FVw9LIbMk1m6qE5+L1MzTnNvy02d35BH1mnJUQ2kQLn1w8RdCbQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624709094; a=rsa-sha256; cv=none; b=SgDRkLOjQ88NyZLWjZyRzo6TOrPlxg2NiMdoOnHXoW87uNxsfxo8LePxeKqwdMXCU7Liij xiF0a2hGmuOUaUWGUYpFVTkat/OwnNJc0+0bblV4NRdx7/uLSg4z6BvAPSRLdcB0Lgor9W UsiLtsxdxQIGHkbv4Izj6uMjOZF7naUwL7yFZZo19VJ6N1iUA1MvHLhZlD2HhibT2bAD0P jWQ3TxupWhPq4f9o3wr8Ra7pz4QH+GZeqSvdYHHum3f8BL9rDErUHOw64Dna8lEMGhP+rh oC2430uR1rk07ag36ZPGZp0f4L8si1Df7pKEFyTe2/TQrBP8RzDfOJ/CjwaIVw== 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.06 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: 819C117EB7 X-Spam-Score: -1.06 X-Migadu-Scanner: scn1.migadu.com X-TUID: fWzBDoh/05PF Initial focus is on behaviour with large threads. The second test replicates a bug reported by Alan Schmitt in id:87lf7sojbq.fsf@m4x.org. --- test/T465-emacs-unthreaded.sh | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 test/T465-emacs-unthreaded.sh diff --git a/test/T465-emacs-unthreaded.sh b/test/T465-emacs-unthreaded.sh new file mode 100755 index 00000000..16ff89a9 --- /dev/null +++ b/test/T465-emacs-unthreaded.sh @@ -0,0 +1,38 @@ +#!/usr/bin/env bash + +test_description="emacs unthreaded interface" +. $(dirname "$0")/test-lib.sh || exit 1 +. $NOTMUCH_SRCDIR/test/test-lib-emacs.sh || exit 1 + +test_require_emacs + +generate_message "[id]=large-thread-1" '[subject]="large thread"' +printf " 2001-01-05 Notmuch Test Suite large thread%43s(inbox unread)\n" >> EXPECTED.unthreaded + +for num in $(seq 2 64); do + prev=$((num - 1)) + generate_message '[subject]="large thread"' "[id]=large-thread-$num" "[in-reply-to]=\" + printf " 2001-01-05 Notmuch Test Suite large thread%43s(inbox unread)\n" >> EXPECTED.unthreaded +done +printf "End of search results.\n" >> EXPECTED.unthreaded + +notmuch new > new.output 2>&1 + +test_begin_subtest "large thread" +test_emacs '(let ((max-lisp-eval-depth 10)) + (notmuch-unthreaded "subject:large-thread") + (notmuch-test-wait) + (test-output))' +test_expect_equal_file EXPECTED.unthreaded OUTPUT + +test_begin_subtest "message from large thread (status)" +test_subtest_known_broken +output=$(test_emacs '(let ((max-lisp-eval-depth 10)) + (notmuch-unthreaded "subject:large-thread") + (notmuch-test-wait) + (notmuch-tree-show-message nil) + (notmuch-test-wait) + "SUCCESS")' ) +test_expect_equal "$output" '"SUCCESS"' + +test_done -- 2.30.2