<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib.sh, branch 0.10.2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.10.2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.10.2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2011-11-17T23:35:32Z</updated>
<entry>
<title>test: create dtach's session socket in $TEST_TMPDIR</title>
<updated>2011-11-17T23:35:32Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2011-11-16T20:50:06Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=8efdc0518d1887737f79d3eb37c461f0d314f5e1'/>
<id>urn:sha1:8efdc0518d1887737f79d3eb37c461f0d314f5e1</id>
<content type='text'>
Due to 108-character limit in unix domain socket path this change
is required; it is more probable that length of ${TMPDIR:-/tmp} is
shorter than length of path to the current directory of notmuch test
source directory. One can expect to create reasonable-length unix
domain sockets wherever $TMPDIR points to.
</content>
</entry>
<entry>
<title>test: create TEST_TMPDIR for holding temporary files</title>
<updated>2011-11-17T23:35:32Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2011-11-16T19:09:00Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a0ec104f13f66611b6e51cd9b49f4306f4fce8b7'/>
<id>urn:sha1:a0ec104f13f66611b6e51cd9b49f4306f4fce8b7</id>
<content type='text'>
The TEST_TMPDIR if first needed to hold dtach's socket (due
to 108-character limit in socket file names). Later it can be
used to hold other temporary files; directory deleted at exit.
</content>
</entry>
<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>
</feed>
