From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id aHqnLyrDuGBDwAAAgWs5BA (envelope-from ) for ; Thu, 03 Jun 2021 13:55:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id KP4SKyrDuGCrOQAA1q6Kng (envelope-from ) for ; Thu, 03 Jun 2021 11:55:22 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (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 3B27219310 for ; Thu, 3 Jun 2021 13:55:22 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 7D8F62B239; Thu, 3 Jun 2021 07:55:12 -0400 (EDT) Received: from fethera.tethera.net (fethera.tethera.net [IPv6:2607:5300:60:c5::1]) by mail.notmuchmail.org (Postfix) with ESMTP id 11DBD29C45 for ; Thu, 3 Jun 2021 07:55:08 -0400 (EDT) Received: by fethera.tethera.net (Postfix, from userid 1001) id 34F8B5FD26; Thu, 3 Jun 2021 07:55:07 -0400 (EDT) Received: (nullmailer pid 987721 invoked by uid 1000); Thu, 03 Jun 2021 11:55:04 -0000 From: David Bremner To: notmuch@notmuchmail.org Cc: David Bremner Subject: [PATCH 1/3] test: start test file for emacs unthreaded view. Date: Thu, 3 Jun 2021 08:54:58 -0300 Message-Id: <20210603115500.987504-2-david@tethera.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210603115500.987504-1-david@tethera.net> References: <20210603115500.987504-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: XCODH36B2LHXRBXZBILIQPGUII6RVLOE X-Message-ID-Hash: XCODH36B2LHXRBXZBILIQPGUII6RVLOE 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=1622721322; 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=EYsp+2zNRVCudZEscR5e/VSmBYYgquUcoUci8q02Jco=; b=dBXgwwLiduh/D5nTQe7oYXe6CmRWqNMH4ElOetGJZSKjRnR/HOyfo9Ru/bmnU8KeNFzHYt IToWOGx15Lw5Al7lNZ8nsUAH+Yd1nJyFzlFes/NMToiJBDyYNcGwITe38/RGIy6S5G8FQi zJuWMjknBFV/h1q7lWFdzp+XbRQ7tOYbfT9D/kz4rT1dwbboqvhRfRqd/8ZsaaJuS9VAh5 pUYHVbIIrVr0jkOx6ZIPEa6oAQO+8VfwRmo22qIg6mI4cEx7lvZzJrq3lWulIKoxcxZb7T 3++pR6BApTisAYk8bKUuvil8MV4mYHiFipVGhByTE6uwZUIvPGcq3YvW/UrGvQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622721322; a=rsa-sha256; cv=none; b=XsWPQnCaje/eCWgvdJLisBM9VPRAJW8e7TH4z4ZploF130/dQaoANVYbuhNtiOnrJbXpzs JvVjnHfy0sr45YBosJxAulbT10Fi2ZhHhWBCESpJyaWODR3SeRJyGR6DRCHsWqGx6j0fwC 1LCmCwkILlnNcC2LPHdbzhC27HGhdCW5r6OHOuIQe0RCIGzR04XDsB6VqcZwQzgyMCy3zK z/xfb8XTsu0Pz7Khi/e/r4ZqoY53VRou9+oOiJYK7mD6O0eJ/bwlGDgHmh4XcAX7IBhEYV 1Oq2d9RHkkXPnRH05IaQ7SUOWiIKXMg8bbCSjexuk8JnF8yEeopfEU3sKqlRMw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.04 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 3B27219310 X-Spam-Score: -1.04 X-Migadu-Scanner: scn1.migadu.com X-TUID: RVqq3ABxIegH 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 | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 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..f9abcebd --- /dev/null +++ b/test/T465-emacs-unthreaded.sh @@ -0,0 +1,40 @@ +#!/usr/bin/env bash + +test_description="emacs unthreaded interface" +. $(dirname "$0")/test-lib.sh || exit 1 +. $(dirname "$0")/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 (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 (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