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 A8D71431FB6 for ; Fri, 3 Feb 2012 23:38:00 -0800 (PST) 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 Xp-l5Rm26sme for ; Fri, 3 Feb 2012 23:38:00 -0800 (PST) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id D524A431FAE for ; Fri, 3 Feb 2012 23:37:59 -0800 (PST) Received: by mail-bk0-f53.google.com with SMTP id 11so4129597bke.26 for ; Fri, 03 Feb 2012 23:37:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; bh=gODIF+BxRLE1vcG3B9uNoSrXGtTBtRDbeGOgZKkJgRk=; b=xRcw09LzQ1X/vmrrDGun4tNi8qu1WvMxyXytu6te2yV7ORESBdhZI8u7rwCpAu9ZhC rDN8mvOiIYqFptdpwZ6P/Gc9bs03IcdtkE+/OUfW7IPEVkmdE5LkiMkRpv3e34TC4r83 Esc/0J/dhKo3gr9vrqEtqYDllsN2VY1lBh4yE= Received: by 10.204.154.92 with SMTP id n28mr4966318bkw.30.1328341079548; Fri, 03 Feb 2012 23:37:59 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id jd17sm23891312bkb.4.2012.02.03.23.37.58 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 03 Feb 2012 23:37:59 -0800 (PST) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH v2 1/2] test: add test for hiding Original Message region at beginning of a message Date: Sat, 4 Feb 2012 11:36:36 +0400 Message-Id: <1328340997-29004-2-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.9 In-Reply-To: <1328340997-29004-1-git-send-email-dmitry.kurochkin@gmail.com> References: <1327926286-16680-1-git-send-email-dmitry.kurochkin@gmail.com> <1328340997-29004-1-git-send-email-dmitry.kurochkin@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: Sat, 04 Feb 2012 07:38:00 -0000 The test is currently broken and will be fixed by a subsequent patch. The patch adds a new file for tests of Emacs notmuch-show view. Based on patch by David Edmondson [1]. [1] id:"1327562380-12894-4-git-send-email-dme@dme.org" --- test/emacs-show | 28 ++++++++++++++++++++++++++++ test/notmuch-test | 1 + 2 files changed, 29 insertions(+), 0 deletions(-) create mode 100755 test/emacs-show diff --git a/test/emacs-show b/test/emacs-show new file mode 100755 index 0000000..9800575 --- /dev/null +++ b/test/emacs-show @@ -0,0 +1,28 @@ +#!/usr/bin/env bash + +test_description="Testing emacs notmuch-show view" +. test-lib.sh + +test_begin_subtest "Hiding Original Message region at beginning of a message" +test_subtest_known_broken +message_id='OriginalMessageHiding.1@notmuchmail.org' +add_message \ + [id]="$message_id" \ + '[subject]="Hiding Original Message region at beginning of a message"' \ + '[body]="-----Original Message----- +Text here."' + +cat <EXPECTED +Notmuch Test Suite (2001-01-05) (inbox) +Subject: Hiding Original Message region at beginning of a message +To: Notmuch Test Suite +Date: Fri, 05 Jan 2001 15:43:57 +0000 + +[ 2-line hidden original message. Click/Enter to show. ] +EOF + +test_emacs "(notmuch-show \"id:$message_id\") + (test-visible-output)" +test_expect_equal_file OUTPUT EXPECTED + +test_done diff --git a/test/notmuch-test b/test/notmuch-test index ced6b47..e14d34e 100755 --- a/test/notmuch-test +++ b/test/notmuch-test @@ -54,6 +54,7 @@ TESTS=" argument-parsing emacs-test-functions emacs-address-cleaning + emacs-show " TESTS=${NOTMUCH_TESTS:=$TESTS} -- 1.7.9