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