From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 7B71C429E26 for ; Sun, 12 Jun 2011 16:31:39 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.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 3Nq2p3qYW-vt for ; Sun, 12 Jun 2011 16:31:37 -0700 (PDT) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id A353B429E2E for ; Sun, 12 Jun 2011 16:31:37 -0700 (PDT) Received: by mail-fx0-f53.google.com with SMTP id 8so2672136fxm.26 for ; Sun, 12 Jun 2011 16:31:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=pbdDKuxfk07iCrlBy+VhhcrStw0KAhqmJeSLDFTt7Eg=; b=LQ163jtIIlRr1ZXhWmejV6fDNCE64JOtW+0XlFUGA1Lw53nerjjOdWNnBeD7Hn+odb 4WtayrV+HpF8oKLWTPnIH6v4D0KQTkYke7JRJlrLMDIzMNzsMUNB0132RY/2+0osYnXo H39P9y05BZtFOrsd2C1L0cA2C0Nq5CZnKLifE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=u7gEVNF6eudFXtxGwbx/T2RWqfNzUOXszcuKP7BjqB+vcVC4LSNaakyqpy3e92jGBG U0WdEPA8iXUz6u7VlL6kXqsvJm0NnBAA78DPvYDDcJMYSxJqmop7PYedofIoSKdXwbf/ e3GYNFNHWSUFosVSqaMsbJA+3ErQu/dUsQb+g= Received: by 10.223.68.193 with SMTP id w1mr3666444fai.42.1307921497279; Sun, 12 Jun 2011 16:31:37 -0700 (PDT) Received: from localhost (dslb-088-068-023-159.pools.arcor-ip.net [88.68.23.159]) by mx.google.com with ESMTPS id o23sm1864704faa.33.2011.06.12.16.31.35 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 12 Jun 2011 16:31:36 -0700 (PDT) From: Daniel Schoepe To: notmuch@notmuchmail.org Subject: [PATCH 3/3] emacs: Test for thread-outlining Date: Mon, 13 Jun 2011 01:31:20 +0200 Message-Id: <1307921480-17130-4-git-send-email-daniel.schoepe@googlemail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1307921480-17130-1-git-send-email-daniel.schoepe@googlemail.com> References: <1307921480-17130-1-git-send-email-daniel.schoepe@googlemail.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: Sun, 12 Jun 2011 23:31:39 -0000 --- test/emacs | 5 +++++ .../notmuch-show-thread-outline | 7 +++++++ 2 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 test/emacs.expected-output/notmuch-show-thread-outline diff --git a/test/emacs b/test/emacs index f2e9598..8d3a3c5 100755 --- a/test/emacs +++ b/test/emacs @@ -31,6 +31,11 @@ maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU316 test_emacs "(notmuch-show \"$maildir_storage_thread\") (princ (buffer-string))" >OUTPUT test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-maildir-storage +test_begin_subtest "Thread outlining in notmuch-show" +maildir_storage_thread=$(notmuch search --output=threads id:20091117190054.GU3165@dottiness.seas.harvard.edu) +test_emacs "(notmuch-show \"$maildir_storage_thread\") (notmuch-show-outline) (switch-to-buffer (notmuch-show-outline-buffer-name)) (princ (buffer-string))" >OUTPUT +test_expect_equal_file OUTPUT $EXPECTED/notmuch-show-thread-outline + test_begin_subtest "notmuch-show for message with invalid From" add_message "[subject]=\"message-with-invalid-from\"" "[from]=\"\\\"Invalid \\\" From\\\" \"" thread=$(notmuch search --output=threads subject:message-with-invalid-from) diff --git a/test/emacs.expected-output/notmuch-show-thread-outline b/test/emacs.expected-output/notmuch-show-thread-outline new file mode 100644 index 0000000..b210ba7 --- /dev/null +++ b/test/emacs.expected-output/notmuch-show-thread-outline @@ -0,0 +1,7 @@ +Lars Kellogg-Stedman - 2009-11-17 + Mikhail Gusarov - 2009-11-17 + Lars Kellogg-Stedman - 2009-11-17 + "Mikhail Gusarov" - 2009-11-17 + "Keith Packard" - 2009-11-17 + Lars Kellogg-Stedman - 2009-11-18 + "Carl Worth" - 2009-11-18 -- 1.7.5.4