From: David Bremner Date: Sun, 12 Jan 2014 00:10:21 +0000 (+2000) Subject: [PATCH] test: add test for syntax of emacs test library X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2196b1dfcda6c0299dd4af8a632e4ba7456f1ddf;p=notmuch-archives.git [PATCH] test: add test for syntax of emacs test library --- diff --git a/78/49b4f69dce82b6dd50766ba1706ccd519450c1 b/78/49b4f69dce82b6dd50766ba1706ccd519450c1 new file mode 100644 index 000000000..431e2b513 --- /dev/null +++ b/78/49b4f69dce82b6dd50766ba1706ccd519450c1 @@ -0,0 +1,73 @@ +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 A4CFA431FD0 + for ; Sat, 11 Jan 2014 16:10:42 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + 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 pDm3O3EJRxdJ for ; + Sat, 11 Jan 2014 16:10:37 -0800 (PST) +Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id E5DBA431FC3 + for ; Sat, 11 Jan 2014 16:10:37 -0800 (PST) +Received: from remotemail by yantan.tethera.net with local (Exim 4.80) + (envelope-from ) + id 1W28dJ-0006f3-TA; Sat, 11 Jan 2014 20:10:29 -0400 +Received: (nullmailer pid 7866 invoked by uid 1000); Sun, 12 Jan 2014 + 00:10:25 -0000 +From: David Bremner +To: notmuch@notmuchmail.org +Subject: [PATCH] test: add test for syntax of emacs test library +Date: Sat, 11 Jan 2014 20:10:21 -0400 +Message-Id: <1389485421-7824-1-git-send-email-david@tethera.net> +X-Mailer: git-send-email 1.8.5.2 +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 Jan 2014 00:10:42 -0000 + +If there is a syntax error in the emacs test library, it causes other +tests to hang or crash without a useful error message. + +This test could be eliminated if the error reporting for emacs tests +was somehow improved. +--- + test/emacs | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/test/emacs b/test/emacs +index 863219d..7dc9a8e 100755 +--- a/test/emacs ++++ b/test/emacs +@@ -7,6 +7,10 @@ EXPECTED=$TEST_DIRECTORY/emacs.expected-output + + add_email_corpus + ++# syntax errors in test-lib.el cause mysterious failures ++test_expect_success 'Syntax of emacs test library' \ ++ "${TEST_EMACS} -Q --batch --load $TEST_DIRECTORY/test-lib.el" ++ + test_begin_subtest "Basic notmuch-hello view in emacs" + test_emacs '(notmuch-hello) + (test-output)' +-- +1.8.5.2 +