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 7138D431FB6 for ; Sat, 5 May 2012 07:41:48 -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 X8zRmL6X-zrP for ; Sat, 5 May 2012 07:41:48 -0700 (PDT) Received: from mail-lpp01m010-f53.google.com (mail-lpp01m010-f53.google.com [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id B00D7431FAE for ; Sat, 5 May 2012 07:41:47 -0700 (PDT) Received: by lahc1 with SMTP id c1so2892836lah.26 for ; Sat, 05 May 2012 07:41:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:x-mailer; bh=PA+xmKGeDPDHSACtUR8pSdMF+nefMo/KgtRq2ArkTQ8=; b=z6RxJJvtu40Y05S8zzTT8ARJhafFiGvq2Vb3t1lLGw0rrjOhFWkD/CaHUDIdYsLfV5 Wj8MC8Ag/Nt3XLi44hTkjA1i9tLzbihbWNyIWwoDI2cu3w5qkDxfpmTR/zYfU4Gx9Z71 uCroK9lkBR6LiZ48bK8l0lEM5mjLzWp6bvYdh4uCPvtiIg5QOexh0r3yyBi0zkZ2aW5p 8OA5iXWQJBU8wWrozxuRTZ33KESp8b3FBKeo7DKgBs9SUIb82x6hSuxFksbnNrOlaXbs 1gH0yuAm1EoNhSyez4OLkj/VaDi9/kYq64opUU/N0R7DMCkPQlRdSFMMeJs/nLas7E2Z KpRw== Received: by 10.152.129.74 with SMTP id nu10mr8925280lab.50.1336228906150; Sat, 05 May 2012 07:41:46 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id gw17sm12578084lab.11.2012.05.05.07.41.44 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 05 May 2012 07:41:45 -0700 (PDT) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH 1/2] test: add Emacs notmuch-hello tests for custom tags and queries section. Date: Sat, 5 May 2012 18:39:46 +0400 Message-Id: <1336228787-24936-1-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.10 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, 05 May 2012 14:41:48 -0000 The tests use default values from customization widgets to make sure that these customization widgets work (at least on basic level). The custom queries section test is currently broken. --- test/emacs-hello | 15 +++++++++++++++ .../notmuch-hello-empty-custom-queries-section | 3 +++ .../notmuch-hello-empty-custom-tags-section | 5 +++++ 3 files changed, 23 insertions(+) create mode 100644 test/emacs.expected-output/notmuch-hello-empty-custom-queries-section create mode 100644 test/emacs.expected-output/notmuch-hello-empty-custom-tags-section diff --git a/test/emacs-hello b/test/emacs-hello index be66ba4..936d00e 100755 --- a/test/emacs-hello +++ b/test/emacs-hello @@ -44,6 +44,21 @@ test_emacs "(let ((notmuch-hello-sections (test-output))" test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-section-counts +test_begin_subtest "Empty custom tags section" +test_emacs "(let* ((widget (widget-create 'notmuch-hello-tags-section)) + (notmuch-hello-sections (list (widget-value widget)))) + (notmuch-hello) + (test-output))" +test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-empty-custom-tags-section + +test_begin_subtest "Empty custom queries section" +test_subtest_known_broken +test_emacs "(let* ((widget (widget-create 'notmuch-hello-query-section)) + (notmuch-hello-sections (list (widget-value widget)))) + (notmuch-hello) + (test-output))" +test_expect_equal_file OUTPUT $EXPECTED/notmuch-hello-empty-custom-queries-section + test_begin_subtest "Column alignment for tag/queries with long names" tag=a-very-long-tag # length carefully calculated for 80 characters window width notmuch tag +$tag '*' diff --git a/test/emacs.expected-output/notmuch-hello-empty-custom-queries-section b/test/emacs.expected-output/notmuch-hello-empty-custom-queries-section new file mode 100644 index 0000000..cd0fdf0 --- /dev/null +++ b/test/emacs.expected-output/notmuch-hello-empty-custom-queries-section @@ -0,0 +1,3 @@ +: [hide] + + diff --git a/test/emacs.expected-output/notmuch-hello-empty-custom-tags-section b/test/emacs.expected-output/notmuch-hello-empty-custom-tags-section new file mode 100644 index 0000000..b56fd67 --- /dev/null +++ b/test/emacs.expected-output/notmuch-hello-empty-custom-tags-section @@ -0,0 +1,5 @@ +: [hide] + + 4 attachment 7 signed + 52 inbox 52 unread + -- 1.7.10