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 3766A429E21 for ; Sun, 3 Jul 2011 19:00:32 -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 i2KOBvA1JxxG for ; Sun, 3 Jul 2011 19:00:29 -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 A4AEF431FB6 for ; Sun, 3 Jul 2011 19:00:29 -0700 (PDT) Received: by bwg12 with SMTP id 12so4396763bwg.26 for ; Sun, 03 Jul 2011 19:00:28 -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; bh=W4iOjwCKYCdhIcFaOVlbEbkQYxEfuSc97x/nHrLfe1M=; b=gWosMqUV9wYFdUiwUxnEy6vTEce1P23nSNXUI7KrF1+0zwn79Dlj8mEBfPljzyHVKg 2pIloNXqQwbsLXgaYkUY28/rmvnIPAoqbrgOwbv/eqSAq22jTwXozSIx/rlcBoi2/n1m lBrzfR3fq04d2DGTDtvO95ChSU8tqbH+BveHM= Received: by 10.204.79.67 with SMTP id o3mr52318bkk.19.1309744828018; Sun, 03 Jul 2011 19:00:28 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id t9sm5108321bkn.8.2011.07.03.19.00.26 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 03 Jul 2011 19:00:27 -0700 (PDT) From: Dmitry Kurochkin To: notmuch@notmuchmail.org Subject: [PATCH 1/3] test: update documentation for test_emacs in test/README Date: Mon, 4 Jul 2011 05:59:01 +0400 Message-Id: <1309744743-8556-1-git-send-email-dmitry.kurochkin@gmail.com> X-Mailer: git-send-email 1.7.5.4 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 02:00:32 -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