[PATCH 4/4] contrib: pick: test: buffer movement
authorMark Walters <markwalters1009@gmail.com>
Tue, 3 Sep 2013 14:05:00 +0000 (15:05 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:56:52 +0000 (09:56 -0800)
2a/d085f3c960d0a45115704616b63f6d40bd662d [new file with mode: 0644]

diff --git a/2a/d085f3c960d0a45115704616b63f6d40bd662d b/2a/d085f3c960d0a45115704616b63f6d40bd662d
new file mode 100644 (file)
index 0000000..6b134a1
--- /dev/null
@@ -0,0 +1,118 @@
+Return-Path: <markwalters1009@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id B85E5429E35\r
+       for <notmuch@notmuchmail.org>; Tue,  3 Sep 2013 07:05:25 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+       RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 9NAgDb1uxL0t for <notmuch@notmuchmail.org>;\r
+       Tue,  3 Sep 2013 07:05:20 -0700 (PDT)\r
+Received: from mail-wi0-f182.google.com (mail-wi0-f182.google.com\r
+       [209.85.212.182]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id A58FD431FC9\r
+       for <notmuch@notmuchmail.org>; Tue,  3 Sep 2013 07:05:14 -0700 (PDT)\r
+Received: by mail-wi0-f182.google.com with SMTP id ez12so2603734wid.15\r
+       for <notmuch@notmuchmail.org>; Tue, 03 Sep 2013 07:05:13 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
+       bh=htliea/qkpkTMxYt2+l7mzSPMaxhkKnOnHlVFWdA6zM=;\r
+       b=eLOR3/hAkOgYTh3IK8o7tfRAkcTj5VGtFTRBsxIFfK8hTgoIJn4UfsBS1ozMi9ERrZ\r
+       SMVzzNaG14B/LmXkS6M8rvkhvb/bZwMLdfQnhcXXKY0TfWY5h5ck8g7SEf1/UyfxUGq0\r
+       5McRrXQUka1RCgu8tHJHZ1rOU7okq8e6oEI0faHCsFcOXGT0G0EMttw2cRYGaFHJU2nr\r
+       L1gFvlS9uaRgejtbM0qeJPdG4xTFojP4Tki25xOV23I61ttzlBRDnsfg133WyK06xASW\r
+       OIg3Xuy3nwXY8AB+zrmekpkEU4rU8muQfzydQNxN+T1JLrLK/XsWJGC6MWJd/mn+PwSY\r
+       5qyg==\r
+X-Received: by 10.180.109.10 with SMTP id ho10mr18417843wib.14.1378217113577; \r
+       Tue, 03 Sep 2013 07:05:13 -0700 (PDT)\r
+Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
+       by mx.google.com with ESMTPSA id v7sm25960462wiy.11.1969.12.31.16.00.00\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Tue, 03 Sep 2013 07:05:13 -0700 (PDT)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 4/4] contrib: pick: test: buffer movement\r
+Date: Tue,  3 Sep 2013 15:05:00 +0100\r
+Message-Id: <1378217100-27533-5-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <1378217100-27533-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1378217100-27533-1-git-send-email-markwalters1009@gmail.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 03 Sep 2013 14:05:26 -0000\r
+\r
+---\r
+ contrib/notmuch-pick/test/emacs-pick |   40 ++++++++++++++++++++++++++++++++++\r
+ 1 files changed, 40 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/contrib/notmuch-pick/test/emacs-pick b/contrib/notmuch-pick/test/emacs-pick\r
+index 6834998..a802d0e 100755\r
+--- a/contrib/notmuch-pick/test/emacs-pick\r
++++ b/contrib/notmuch-pick/test/emacs-pick\r
+@@ -167,4 +167,44 @@ output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
+                    (notmuch-show-stash-message-id)')\r
+ test_expect_equal "$output" "\"Stashed: id:1258498485-sup-142@elly\""\r
\r
++test_begin_subtest "Move to next matching message"\r
++output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
++                   (require (quote notmuch-pick))\r
++                   (notmuch-pick "from:cworth")\r
++                   (notmuch-test-wait)\r
++                   (notmuch-pick-next-matching-message)\r
++                   (notmuch-show-stash-message-id)')\r
++test_expect_equal "$output" "\"Stashed: id:878we4qdqf.fsf@yoom.home.cworth.org\""\r
++\r
++test_begin_subtest "Move to next thread"\r
++output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
++                   (require (quote notmuch-pick))\r
++                   (notmuch-pick "tag:inbox")\r
++                   (notmuch-test-wait)\r
++                   (forward-line 26)\r
++                   (notmuch-pick-next-thread)\r
++                   (notmuch-show-stash-message-id)')\r
++test_expect_equal "$output" "\"Stashed: id:1258471718-6781-1-git-send-email-dottedmag@dottedmag.net\""\r
++\r
++test_begin_subtest "Move to previous thread"\r
++output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
++                   (require (quote notmuch-pick))\r
++                   (notmuch-pick "tag:inbox")\r
++                   (notmuch-test-wait)\r
++                   (forward-line 26)\r
++                   (notmuch-pick-prev-thread)\r
++                   (notmuch-show-stash-message-id)')\r
++test_expect_equal "$output" "\"Stashed: id:20091117190054.GU3165@dottiness.seas.harvard.edu\""\r
++\r
++test_begin_subtest "Move to previous previous thread"\r
++output=$(test_emacs '(add-to-list (quote load-path) "'$PICK_DIR'")\r
++                   (require (quote notmuch-pick))\r
++                   (notmuch-pick "tag:inbox")\r
++                   (notmuch-test-wait)\r
++                   (forward-line 26)\r
++                   (notmuch-pick-prev-thread)\r
++                   (notmuch-pick-prev-thread)\r
++                   (notmuch-show-stash-message-id)')\r
++test_expect_equal "$output" "\"Stashed: id:1258493565-13508-1-git-send-email-keithp@keithp.com\""\r
++\r
+ test_done\r
+-- \r
+1.7.9.1\r
+\r