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