<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib.sh, branch 0.10_rc1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.10_rc1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.10_rc1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2011-11-13T13:44:36Z</updated>
<entry>
<title>test: do not hide test_emacs errors</title>
<updated>2011-11-13T13:44:36Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-07-01T02:23:48Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5964a760a5d26f94ea1c262a25f80725877e3445'/>
<id>urn:sha1:5964a760a5d26f94ea1c262a25f80725877e3445</id>
<content type='text'>
Do not redirect test_emacs stderr to /dev/null.  Test_emacs uses
emacsclient(1) now and it does not print unwanted messages (like
those from `message') to stderr.  But it does print useful
errors, e.g. when emacs server connection fails, given expression
is not valid or undefined function is called.
</content>
</entry>
<entry>
<title>exec emacs at the end of run_emacs script</title>
<updated>2011-11-13T03:21:44Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2011-11-10T23:43:03Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=085d45e3891a7def705082c21fc112a97d85062e'/>
<id>urn:sha1:085d45e3891a7def705082c21fc112a97d85062e</id>
<content type='text'>
In the last line of run_emacs, exec the emacs process.
With one fork less the process list is (also) neater.
</content>
</entry>
<entry>
<title>test: use dtach(1) instead of screen(1) in emacs tests</title>
<updated>2011-11-11T23:24:53Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2011-11-11T21:33:58Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2f2ea8a49a9e56a1d7d8cfad8d2d109070b04bf7'/>
<id>urn:sha1:2f2ea8a49a9e56a1d7d8cfad8d2d109070b04bf7</id>
<content type='text'>
dtach is simpler than screen and is not setuid/setgid program so
TMPDIR does not get cleared by dynamic loader when executed
</content>
</entry>
<entry>
<title>test: avoid using screen(1) configuration files</title>
<updated>2011-11-06T00:54:40Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-07-01T04:55:17Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=746a13e6f40431ffa931ef51834ac0eb794ee554'/>
<id>urn:sha1:746a13e6f40431ffa931ef51834ac0eb794ee554</id>
<content type='text'>
Set SCREENRC and SYSSCREENRC environment variables to "/dev/null"
as suggested by Jim Paris to avoid potential problems with
screen(1) configuration files.
</content>
</entry>
<entry>
<title>test: run emacs inside screen</title>
<updated>2011-11-05T23:49:27Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-07-01T04:55:16Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a1ea4e914f5392a07ede2e6fc5f4350368e267b1'/>
<id>urn:sha1:a1ea4e914f5392a07ede2e6fc5f4350368e267b1</id>
<content type='text'>
Before the change, emacs run in daemon mode without any visible
buffers.  Turns out that this affects emacs behavior in some
cases.  In particular, `window-end' function returns `point-max'
instead of the last visible position.  That makes it hard or
impossible to implement some tests.  The patch runs emacs in a
detached screen(1) session.  So that it works exactly as if it
has a visible window.

Note: screen terminates when emacs exits.  So the patch does not
introduce new "running processes left behind" issues.
</content>
</entry>
<entry>
<title>test/test-lib.sh: update comments</title>
<updated>2011-10-22T22:43:02Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2011-10-19T20:51:24Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f4148e9d21f391ecd2a2100588adb55d471dac18'/>
<id>urn:sha1:f4148e9d21f391ecd2a2100588adb55d471dac18</id>
<content type='text'>
- explain test_expect_equal_file
- remove mention of test_expect_failure, since that function was removed.

Based on id:"1317317811-29540-1-git-send-email-thomas@schwinge.name"
</content>
</entry>
<entry>
<title>test: Report test failures from test_expect_*</title>
<updated>2011-09-13T02:36:00Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@mit.edu</email>
</author>
<published>2011-05-12T13:11:36Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=003e718020b335f329f852ff1a3da23873d2ff6e'/>
<id>urn:sha1:003e718020b335f329f852ff1a3da23873d2ff6e</id>
<content type='text'>
This makes test_expect_* return non-zero if the test fails, so the
caller can make decisions based on this, such as setting test
prerequisites.
</content>
</entry>
<entry>
<title>test: Fix message when skipping test_expect_equal* tests</title>
<updated>2011-09-13T02:35:59Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@mit.edu</email>
</author>
<published>2011-05-12T13:09:06Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5ae1b9c328518a3b09be827ee59498b0598119ff'/>
<id>urn:sha1:5ae1b9c328518a3b09be827ee59498b0598119ff</id>
<content type='text'>
For these types of tests, the test name is previously recorded in a
variable, not passed to the test function, so pass this variable to
test_skip.
</content>
</entry>
<entry>
<title>test: reset test_subtest_known_broken_ after each success/failure.</title>
<updated>2011-09-13T02:35:21Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2011-09-13T01:40:57Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=22af786838793ed97fa3dbb1d223e90602912b71'/>
<id>urn:sha1:22af786838793ed97fa3dbb1d223e90602912b71</id>
<content type='text'>
This means that test_subtest_known_broken needs to be called before
every known broken subtest, which is no different than what is
documented for the test_begin_subtest case.

The assumption is that every test ends up calling either skipping,
calling test_ok_ or test_failure_ and and the latter in turn delegate
to the known_broken versions in the case where
test_subtest_known_broken_ is set.
</content>
</entry>
<entry>
<title>test: improve known broken tests support</title>
<updated>2011-09-10T13:13:27Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-07-04T04:07:20Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4cc67276885990c38bc2bcc79eedbb0851e2bc8a'/>
<id>urn:sha1:4cc67276885990c38bc2bcc79eedbb0851e2bc8a</id>
<content type='text'>
There is existing support for broken tests.  But it is not convenient
to use.  The primary issue is that we have to maintain a set of
test_expect_*_failure functions which are equivalent to the normal
test_expect_* counterparts except for what functions are called for
result reporting.  The patch adds test_subtest_known_broken function
which marks a subset as broken, making the normal test_expect_*
functions behave as test_expect_*_failure.  All test_expect_*_failure
functions are removed.  Test_known_broken_failure_ is changed to
format details the same way as test_failure_ does.

Another benefit of this change is that the diff when a broken test is
fixed would be small and nice.

Documentation is updated accordingly.
</content>
</entry>
</feed>
