<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib.el, branch 0.13.1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.13.1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.13.1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2012-01-26T12:35:15Z</updated>
<entry>
<title>test: `notmuch-test-run' should protect against buffer switching.</title>
<updated>2012-01-26T12:35:15Z</updated>
<author>
<name>David Edmondson</name>
<email>dme@dme.org</email>
</author>
<published>2012-01-26T07:19:38Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2f50524e27db2ca58f6543a2c73a5719d8d7f491'/>
<id>urn:sha1:2f50524e27db2ca58f6543a2c73a5719d8d7f491</id>
<content type='text'>
The body of the test may cause the current buffer to change. Ensure
that the output goes to the correct buffer by switching back before
inserting it.
</content>
</entry>
<entry>
<title>test: `visible-buffer-substring' should not return text properties.</title>
<updated>2012-01-26T12:35:02Z</updated>
<author>
<name>David Edmondson</name>
<email>dme@dme.org</email>
</author>
<published>2012-01-26T07:19:37Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c70c7f86b83601231bac94db8a6596a1d729ae24'/>
<id>urn:sha1:c70c7f86b83601231bac94db8a6596a1d729ae24</id>
<content type='text'>
When using `visible-buffer-substring' to examine a buffer, the text
properties are not useful, so don't include them.
</content>
</entry>
<entry>
<title>test: Add more helpers for emacs tests.</title>
<updated>2012-01-25T11:26:47Z</updated>
<author>
<name>David Edmondson</name>
<email>dme@dme.org</email>
</author>
<published>2012-01-24T16:14:06Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f92d7dee8fcf399bda361df82187523598bb09b4'/>
<id>urn:sha1:f92d7dee8fcf399bda361df82187523598bb09b4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test: Add `test_emacs_expect_t'.</title>
<updated>2012-01-25T11:25:44Z</updated>
<author>
<name>David Edmondson</name>
<email>dme@dme.org</email>
</author>
<published>2012-01-24T16:14:05Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=260975e8aff635b6b99db835ee8d40ec33ee916c'/>
<id>urn:sha1:260975e8aff635b6b99db835ee8d40ec33ee916c</id>
<content type='text'>
Add a new test function to allow simpler testing of emacs
functionality.

`test_emacs_expect_t' takes one argument - a lisp expression to
evaluate. The test passes if the expression returns `t', otherwise it
fails and the output is reported to the tester.
</content>
</entry>
<entry>
<title>test: make (kill-emacs) from emacsclient work with emacs 23.(1|2)</title>
<updated>2012-01-22T13:18:20Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2012-01-13T08:17:28Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a04642043fa8f071e0dbc73a204fcc91dc3c8401'/>
<id>urn:sha1:a04642043fa8f071e0dbc73a204fcc91dc3c8401</id>
<content type='text'>
emacsclient --eval '(kill-emacs)' makes emacs versions 23.1
and 23.2 ask user input from running emacs. Redefining
yes-or-no-p function when kill-emacs is executed for these
emacs versions in test-lib.el avoids this test problem.
</content>
</entry>
<entry>
<title>test: add test for `notmuch-hello-refresh-hook'</title>
<updated>2011-12-22T10:57:46Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-12-21T18:18:26Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9a0b61da56ede4d0ff79a064d92d8c1a16cf636b'/>
<id>urn:sha1:9a0b61da56ede4d0ff79a064d92d8c1a16cf636b</id>
<content type='text'>
Test that `notmuch-hello-refresh-hook' is called once when
`notmuch-hello' is called and twice when calling
`notmuch-hello-update' after that.

The tests are very similar to tests for `notmuch-hello-mode-hook'.
</content>
</entry>
<entry>
<title>test: add general Emacs hook counter</title>
<updated>2011-12-22T10:57:32Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-12-21T18:18:25Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=eb8638ba2e6cbb25bab2e16cdfb8568e1af617cb'/>
<id>urn:sha1:eb8638ba2e6cbb25bab2e16cdfb8568e1af617cb</id>
<content type='text'>
Replace `notmuch-hello-mode-hook-counter' with general `hook-counter'
and `add-hook-counter' functions to allow counting calls for any hook.
</content>
</entry>
<entry>
<title>test: add `notmuch-hello-mode-hook-counter'</title>
<updated>2011-12-20T11:41:51Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-12-18T00:21:18Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=33735c28a42d8b4a5432507430aa0000bc9d4ada'/>
<id>urn:sha1:33735c28a42d8b4a5432507430aa0000bc9d4ada</id>
<content type='text'>
Add `notmuch-hello-mode-hook-counter' hook to count how many times
`notmuch-hello-mode-hook' was called.  The counter function increments
`notmuch-hello-mode-hook-counter' variable value if it is bount,
otherwise it does nothing.
</content>
</entry>
<entry>
<title>test: do not set frame width in emacs</title>
<updated>2011-11-06T00:55:57Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-07-01T04:55:18Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=95cf33cc78c318e9833e9c9fe0a656b6a80e6bea'/>
<id>urn:sha1:95cf33cc78c318e9833e9c9fe0a656b6a80e6bea</id>
<content type='text'>
No need for `set-frame-width' in emacs tests since it runs in
screen now.
</content>
</entry>
<entry>
<title>test: use emacsclient(1) for Emacs tests</title>
<updated>2011-06-29T00:10:55Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-06-28T04:56:17Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a854d06e92645350b7ec3f6cd1a10a2f6933104f'/>
<id>urn:sha1:a854d06e92645350b7ec3f6cd1a10a2f6933104f</id>
<content type='text'>
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.
</content>
</entry>
</feed>
