From: Mark Walters Date: Fri, 26 Jun 2015 22:50:35 +0000 (+0100) Subject: [PATCH 4/4] test: tree: fix and a test for tree sort order changes X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9a86b5359043d5136a77ec9fc6d1ccaf70119827;p=notmuch-archives.git [PATCH 4/4] test: tree: fix and a test for tree sort order changes --- diff --git a/82/b5e8d31c8fe8da5dc984c2e3dc8e0bea0c9c2f b/82/b5e8d31c8fe8da5dc984c2e3dc8e0bea0c9c2f new file mode 100644 index 000000000..39270e5b4 --- /dev/null +++ b/82/b5e8d31c8fe8da5dc984c2e3dc8e0bea0c9c2f @@ -0,0 +1,167 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id F16C56DE15DD + for ; Fri, 26 Jun 2015 15:51:10 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.126 +X-Spam-Level: +X-Spam-Status: No, score=0.126 tagged_above=-999 required=5 tests=[AWL=0.696, + DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, + RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, + RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id a8xNv1C3dpbB for ; + Fri, 26 Jun 2015 15:51:09 -0700 (PDT) +Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com + [209.85.212.179]) + by arlo.cworth.org (Postfix) with ESMTPS id 496AA6DE13DB + for ; Fri, 26 Jun 2015 15:50:54 -0700 (PDT) +Received: by wicgi11 with SMTP id gi11so29276023wic.0 + for ; Fri, 26 Jun 2015 15:50:52 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:cc:subject:date:message-id:in-reply-to:references + :mime-version:content-type:content-transfer-encoding; + bh=puwZbM9HwNwNk1bmi0al0oWX5JVnuk+1u+sGjQz1hOE=; + b=av2Ram0KNjK5rVNfLODbvKOvamuw5TjMbxV9iZzaxTEW9u+PcIzWHDampHxTSqXGf6 + lWSPphwwzMZXrlqnOXFkYFExa5AmB1QK39Rf0XdqsvBh/rV4ikWWUj5IlCSsUp4mzcLR + jDHKf7Ix2kzzx6+1FaoU3bCiFjIi6O+89+RxcG2uRz/LM6EIiITe8ZBRfjYdQiHkSO4l + ey8pB9HzAGooQ1ynJK4iRpVMi3UKVANlWLknIMf5037ORu3Cuwn4ZAkaec09IxiV+cpk + FlCtji9s4lua5JgGNLsMvnPPAgoW/6/Skv/Clqun5wz6OJn9as3KS5jTBpHJE+tsbNSo + 626g== +X-Received: by 10.194.94.101 with SMTP id db5mr6628146wjb.91.1435359052589; + Fri, 26 Jun 2015 15:50:52 -0700 (PDT) +Received: from localhost (5751dfa2.skybroadband.com. [87.81.223.162]) + by mx.google.com with ESMTPSA id pd7sm52250304wjb.27.2015.06.26.15.50.51 + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Fri, 26 Jun 2015 15:50:52 -0700 (PDT) +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: [PATCH 4/4] test: tree: fix and a test for tree sort order changes +Date: Fri, 26 Jun 2015 23:50:35 +0100 +Message-Id: <1435359035-6767-5-git-send-email-markwalters1009@gmail.com> +X-Mailer: git-send-email 2.1.4 +In-Reply-To: <1435359035-6767-1-git-send-email-markwalters1009@gmail.com> +References: <1435359035-6767-1-git-send-email-markwalters1009@gmail.com> +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Fri, 26 Jun 2015 22:51:11 -0000 + +We add a sort order test for tree view. Also, since tree-view inherits +the sort order from search view when called with +notmuch-tree-from-search-current-query one of the tests coming from +search now has oldest-first sort order so update it appropriately. +--- + test/T460-emacs-tree.sh | 11 ++++- + .../notmuch-tree-tag-inbox-oldest-first | 53 ++++++++++++++++++++++ + 2 files changed, 63 insertions(+), 1 deletion(-) + create mode 100644 test/tree.expected-output/notmuch-tree-tag-inbox-oldest-first + +diff --git a/test/T460-emacs-tree.sh b/test/T460-emacs-tree.sh +index 8e9f37c..ae075c5 100755 +--- a/test/T460-emacs-tree.sh ++++ b/test/T460-emacs-tree.sh +@@ -23,6 +23,15 @@ test_emacs '(notmuch-tree "tag:inbox") + (delete-other-windows)' + test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox + ++test_begin_subtest "Oldest first notmuch-tree view in emacs" ++test_emacs '(notmuch-tree "tag:inbox") ++ (notmuch-test-wait) ++ (notmuch-tree-toggle-order) ++ (notmuch-test-wait) ++ (test-output) ++ (delete-other-windows)' ++test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox-oldest-first ++ + # In the following tag tests we make sure the display is updated + # correctly and, in a separate test, that the database is updated + # correctly. +@@ -98,7 +107,7 @@ test_emacs '(notmuch-hello) + (notmuch-test-wait) + (test-output) + (delete-other-windows)' +-test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox ++test_expect_equal_file OUTPUT $EXPECTED/notmuch-tree-tag-inbox-oldest-first + + test_begin_subtest "Tree view of a single thread (from search)" + test_emacs '(notmuch-hello) +diff --git a/test/tree.expected-output/notmuch-tree-tag-inbox-oldest-first b/test/tree.expected-output/notmuch-tree-tag-inbox-oldest-first +new file mode 100644 +index 0000000..588fc58 +--- /dev/null ++++ b/test/tree.expected-output/notmuch-tree-tag-inbox-oldest-first +@@ -0,0 +1,53 @@ ++ 2009-11-17 Mikhail Gusarov ┬►[notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox unread) ++ 2009-11-17 Mikhail Gusarov ├─►[notmuch] [PATCH 2/2] Include to get uint32_t in C++ file with gcc 4.4 (inbox unread) ++ 2009-11-17 Carl Worth ╰┬►[notmuch] [PATCH 1/2] Close message file after parsing message headers (inbox unread) ++ 2009-11-17 Keith Packard ╰┬► ... (inbox unread) ++ 2009-11-18 Carl Worth ╰─► ... (inbox unread) ++ 2009-11-17 Lars Kellogg-Stedman ┬►[notmuch] Working with Maildir storage? (inbox signed unread) ++ 2009-11-17 Mikhail Gusarov ├┬► ... (inbox signed unread) ++ 2009-11-17 Lars Kellogg-Stedman │╰┬► ... (inbox signed unread) ++ 2009-11-17 Mikhail Gusarov │ ├─► ... (inbox unread) ++ 2009-11-17 Keith Packard │ ╰┬► ... (inbox unread) ++ 2009-11-18 Lars Kellogg-Stedman │ ╰─► ... (inbox signed unread) ++ 2009-11-18 Carl Worth ╰─► ... (inbox unread) ++ 2009-11-17 Alex Botero-Lowry ┬►[notmuch] preliminary FreeBSD support (attachment inbox unread) ++ 2009-11-17 Carl Worth ╰─► ... (inbox unread) ++ 2009-11-17 Mikhail Gusarov ─►[notmuch] [PATCH] Handle rename of message file (inbox unread) ++ 2009-11-17 Keith Packard ┬►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox unread) ++ 2009-11-18 Carl Worth ╰─►[notmuch] [PATCH] Make notmuch-show 'X' (and 'x') commands remove inbox (and unread) tags (inbox unread) ++ 2009-11-17 Jan Janak ┬►[notmuch] [PATCH] Older versions of install do not support -C. (inbox unread) ++ 2009-11-18 Carl Worth ╰─► ... (inbox unread) ++ 2009-11-17 Jan Janak ┬►[notmuch] What a great idea! (inbox unread) ++ 2009-11-17 Jan Janak ├─► ... (inbox unread) ++ 2009-11-18 Carl Worth ╰─► ... (inbox unread) ++ 2009-11-17 Israel Herraiz ┬►[notmuch] New to the list (inbox unread) ++ 2009-11-18 Keith Packard ├─► ... (inbox unread) ++ 2009-11-18 Carl Worth ╰─► ... (inbox unread) ++ 2009-11-17 Adrian Perez de Cast ┬►[notmuch] Introducing myself (inbox signed unread) ++ 2009-11-18 Keith Packard ├─► ... (inbox unread) ++ 2009-11-18 Carl Worth ╰─► ... (inbox unread) ++ 2009-11-17 Aron Griffis ┬►[notmuch] archive (inbox unread) ++ 2009-11-18 Keith Packard ╰┬► ... (inbox unread) ++ 2009-11-18 Carl Worth ╰─► ... (inbox unread) ++ 2009-11-17 Ingmar Vanhassel ┬►[notmuch] [PATCH] Typsos (inbox unread) ++ 2009-11-18 Carl Worth ╰─► ... (inbox unread) ++ 2009-11-18 Alex Botero-Lowry ┬►[notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (attachment inbox unread) ++ 2009-11-18 Carl Worth ╰─►[notmuch] [PATCH] Error out if no query is supplied to search instead of going into an infinite loop (inbox unread) ++ 2009-11-18 Lars Kellogg-Stedman ┬►[notmuch] "notmuch help" outputs to stderr? (attachment inbox signed unread) ++ 2009-11-18 Lars Kellogg-Stedman ╰─► ... (attachment inbox signed unread) ++ 2009-11-18 Stewart Smith ─►[notmuch] [PATCH] Fix linking with gcc to use g++ to link in C++ libs. (inbox unread) ++ 2009-11-18 Stewart Smith ─►[notmuch] [PATCH 2/2] Read mail directory in inode number order (inbox unread) ++ 2009-11-18 Stewart Smith ─►[notmuch] [PATCH] count_files: sort directory in inode order before statting (inbox unread) ++ 2009-11-18 Jjgod Jiang ┬►[notmuch] Mac OS X/Darwin compatibility issues (inbox unread) ++ 2009-11-18 Alexander Botero-Low ╰┬► ... (inbox unread) ++ 2009-11-18 Jjgod Jiang ╰┬► ... (inbox unread) ++ 2009-11-18 Alexander Botero-Low ╰─► ... (inbox unread) ++ 2009-11-18 Jan Janak ─►[notmuch] [PATCH] notmuch new: Support for conversion of spool subdirectories into tags (inbox unread) ++ 2009-11-18 Rolland Santimano ─►[notmuch] Link to mailing list archives ? (inbox unread) ++ 2009-11-18 Alexander Botero-Low ─►[notmuch] request for pull (inbox unread) ++ 2009-11-18 Keith Packard ┬►[notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox unread) ++ 2009-11-18 Alexander Botero-Low ╰─►[notmuch] [PATCH] Create a default notmuch-show-hook that highlights URLs and uses word-wrap (inbox unread) ++ 2009-11-18 Chris Wilson ─►[notmuch] [PATCH 1/2] Makefile: evaluate pkg-config once (inbox unread) ++ 2010-12-16 Olivier Berger ─►Essai accentué (inbox unread) ++ 2010-12-29 François Boulogne ─►[aur-general] Guidelines: cp, mkdir vs install (inbox unread) ++End of search results. +-- +2.1.4 +