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 62202429E28 for ; Sun, 3 Jul 2011 21:07:47 -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 wxKopMaS31lZ for ; Sun, 3 Jul 2011 21:07:45 -0700 (PDT) Received: from mail-bw0-f53.google.com (mail-bw0-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 1C52F429E29 for ; Sun, 3 Jul 2011 21:07:42 -0700 (PDT) Received: by mail-bw0-f53.google.com with SMTP id 12so4447816bwg.26 for ; Sun, 03 Jul 2011 21:07:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=W4iOjwCKYCdhIcFaOVlbEbkQYxEfuSc97x/nHrLfe1M=; b=iOLx5n7YPgxjBsUbTJkamPnhdjIX/n3yOa6QuU3dpcZpHebXMESaYr3FEc8zAm8eTf PvGzwCGf6WKVy4oRavkP1jM1Ap/FT5ZRy5B4xwFsENq0DfzctkEgbcdvdPmBbmDgKbeH xbjUm48rzJw0k5E33/I69eoOkpAvdfKCZsQLI= Received: by 10.204.101.10 with SMTP id a10mr5315262bko.183.1309752462797; Sun, 03 Jul 2011 21:07:42 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id k5sm5168256bka.17.2011.07.03.21.07.41 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Jul 2011 21:07:41 -0700 (PDT) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH v2 1/3] test: update documentation for test_emacs in test/README Date: Mon, 4 Jul 2011 08:07:19 +0400 Message-Id: <1309752441-10651-2-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1309752441-10651-1-git-send-email-dmitry.kurochkin@gmail.com> References: <1309744743-8556-1-git-send-email-dmitry.kurochkin@gmail.com> <1309752441-10651-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: Mon, 04 Jul 2011 04:07:47 -0000 Update test_emacs documentation in test/README according to the latest changes in emacs tests. Move the note regarding setting variables from test/emacs to test/README. --- test/README | 10 +++++++--- test/emacs | 5 ----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/test/README b/test/README index f9ac607..a245bf1 100644 --- a/test/README +++ b/test/README @@ -181,9 +181,13 @@ library for your script to use. This function executes the provided emacs lisp script within emacs. The script can be a sequence of emacs lisp expressions, - (that is, they will be evaluated within a progn form). The lisp - expressions can call `message' to generate output on stdout to be - examined by the calling test script. + (that is, they will be evaluated within a progn form). Emacs + stdout and stderr is not available, the common way to get output + is to save it to a file. There are some auxiliary functions + useful in emacs tests provided in test-lib.el. Do not use `setq' + for setting variables in Emacs tests because it affects other + tests that may run in the same Emacs instance. Use `let' instead + so the scope of the changed variables is limited to a single test. test_done diff --git a/test/emacs b/test/emacs index 53f455a..f465e2b 100755 --- a/test/emacs +++ b/test/emacs @@ -1,10 +1,5 @@ #!/usr/bin/env bash -# Note: do not use `setq' for setting variables in Emacs tests because -# it affects other tests that may run in the same Emacs instance. Use -# `let' instead so the scope of the changed variables is limited to a -# single test. - test_description="emacs interface" . test-lib.sh -- 1.7.5.4