mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
test: update documentation for test_emacs in test/README
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.
This commit is contained in:
parent
c35ac0bdbd
commit
0db3a4d5be
2 changed files with 7 additions and 8 deletions
10
test/README
10
test/README
|
@ -181,9 +181,13 @@ library for your script to use.
|
||||||
|
|
||||||
This function executes the provided emacs lisp script within
|
This function executes the provided emacs lisp script within
|
||||||
emacs. The script can be a sequence of emacs lisp expressions,
|
emacs. The script can be a sequence of emacs lisp expressions,
|
||||||
(that is, they will be evaluated within a progn form). The lisp
|
(that is, they will be evaluated within a progn form). Emacs
|
||||||
expressions can call `message' to generate output on stdout to be
|
stdout and stderr is not available, the common way to get output
|
||||||
examined by the calling test script.
|
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
|
test_done
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/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_description="emacs interface"
|
||||||
. test-lib.sh
|
. test-lib.sh
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue