<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib.el, branch 0.17_rc2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.17_rc2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.17_rc2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2013-01-29T23:17:07Z</updated>
<entry>
<title>test: delay watchdog checks in emacs.</title>
<updated>2013-01-29T23:17:07Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2013-01-29T23:06:37Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f021a062888b7940fe7ee049a88ae176837bcd96'/>
<id>urn:sha1:f021a062888b7940fe7ee049a88ae176837bcd96</id>
<content type='text'>
Instead of checking immediately for the watched process, delay a
minute, or in the case that process-attributes returns nil, for two
minutes.  This is intended to cope with the case that
process-attributes is unimplimented, and returns always returns nil.
In this case, the watchdog check is the same as the two minute limit
imposed by timeout.
</content>
</entry>
<entry>
<title>test: Test buttonization of id: links</title>
<updated>2012-11-15T22:03:02Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-11-15T19:49:52Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=65801835ee47dc4cada82c8a3ae16e8177a7919a'/>
<id>urn:sha1:65801835ee47dc4cada82c8a3ae16e8177a7919a</id>
<content type='text'>
This matches the current behavior of the buttonizer, so it passes, but
many of these cases are not what you'd want (and some of them aren't
even valid Xapian queries).  The next patch will fix the handling of
these cases and update the test.
</content>
</entry>
<entry>
<title>test: emacs: run list-processes after accept-process-output in emacs 23.1</title>
<updated>2012-08-29T22:06:18Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2012-08-05T11:13:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=3c053bf81cf75ab37b906e748ea1edcf8af4b178'/>
<id>urn:sha1:3c053bf81cf75ab37b906e748ea1edcf8af4b178</id>
<content type='text'>
When running emacs tests using emacs 23.1.1 the tests block (until timeout)
when emacs function (notmuch-test-wait) is called.

There is an emacs bug #2930 titled:
23.0.92; `accept-process-output' and `sleep-for' do not run sentinel

It seems this is present in emacs 23.1.

Calling list-processes after accept-process-output seems work around
this problem; in case Emacs version is 23.1 a defadvice is activated
to do just that.
</content>
</entry>
<entry>
<title>test: emacs: call accept-process-output in notmuch-test-wait</title>
<updated>2012-08-29T22:06:07Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2012-08-05T11:13:01Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f791cc9247dfac8640c8896bad9d9c1a1e70edfc'/>
<id>urn:sha1:f791cc9247dfac8640c8896bad9d9c1a1e70edfc</id>
<content type='text'>
notmuch-test-wait called sleep-for in a loop to wait unconditionally 0.1
seconds while waiting for process to exit.
accept-process-output returns as soon as there is any data available
from process, so using it avoids unnecessary fixed delays.
Both of these functions run process sentinels.
</content>
</entry>
<entry>
<title>test: New test for incremental search output parsing</title>
<updated>2012-07-12T23:39:18Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2012-07-09T21:42:39Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f94a50d80af8c2a5513e58db954dd0b1910eb4a8'/>
<id>urn:sha1:f94a50d80af8c2a5513e58db954dd0b1910eb4a8</id>
<content type='text'>
This advises the search process filter to make it process one
character at a time in order to test the pessimal case for incremental
search output parsing.

The text parser fails this test because it gets tricked into thinking
a parenthetical remark in a subject is the tag list.
</content>
</entry>
<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>
</feed>
