aboutsummaryrefslogtreecommitdiffhomepage
path: root/notmuch-show.c
diff options
context:
space:
mode:
authorGravatar Dmitry Kurochkin <dmitry.kurochkin@gmail.com>2011-06-28 08:56:17 +0400
committerGravatar Carl Worth <cworth@cworth.org>2011-06-28 17:10:55 -0700
commita854d06e92645350b7ec3f6cd1a10a2f6933104f (patch)
tree652225103630b0f9af84a90d6a191ea9acd826dd /notmuch-show.c
parent6ea26cfb81c68526b157a213d00b593d4e7b1335 (diff)
test: use emacsclient(1) for Emacs tests
Before the change, every Emacs test ran in a separate Emacs instance. Starting Emacs many times wastes considerable time and it gets worse as the test suite grows. The patch solves this by using a single Emacs server and emacsclient(1) to run multiple tests. Emacs server is started on the first test_emacs call and stopped when test_done is called. We take care not to leave orphan Emacs processes behind when test is terminated by whatever reason: Emacs server runs a watchdog that periodically checks that the test is still running. Some tests need to provide user input. Before the change, this was done using echo(1) to Emacs stdin. This no longer works and instead `standard-input' variable is set accordingly to make `read' return the appropriate string.
Diffstat (limited to 'notmuch-show.c')
0 files changed, 0 insertions, 0 deletions