<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib.sh, branch 0.23_rc0</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.23_rc0</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.23_rc0'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2016-09-24T13:10:40Z</updated>
<entry>
<title>test: test-lib.sh: use $BASH instead of ${SHELL-sh} to relaunch</title>
<updated>2016-09-24T13:10:40Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2016-09-24T12:43:27Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b57426a43549ac5434c0f793e184f1b0b955f7e0'/>
<id>urn:sha1:b57426a43549ac5434c0f793e184f1b0b955f7e0</id>
<content type='text'>
In case of the test script is to be relaunced under valgrind, or --tee
is requested, use the $BASH shell variable to locate the command
interpreter. The $SHELL variable is re-set by non-interactive shells
so in case the shell uses some other shell (e.g. zsh) for interactive
use these bash scripts continue to work.
</content>
</entry>
<entry>
<title>test: make it possible to have multiple corpora</title>
<updated>2016-09-17T11:39:34Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2016-09-13T17:14:08Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=971cdc72cdb80f060193bc0914dc9badcc29696b'/>
<id>urn:sha1:971cdc72cdb80f060193bc0914dc9badcc29696b</id>
<content type='text'>
We largely use the corpus under test/corpus for
testing. Unfortunately, many of our tests have grown to depend on
having exactly this set of messages, making it hard to add new message
files for testing specific cases.

We do use a lot of add_message from within the tests, but it's not
possible to use that for adding broken messages, and adding several
messages at once can get unwieldy.

Move the basic corpus under tests/corpora/default, and make it
possible to add new, independent corpora along its side. This means
tons of renames with a few tweaks to add_email_corpus function in
test-lib.sh to let tests specify which corpus to use.
</content>
</entry>
<entry>
<title>test: factor out some boilerplate from C tests</title>
<updated>2016-06-14T00:52:33Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2016-06-04T12:29:14Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=cc1a6d2a947ef8c2577a77027d69fce012ae91fd'/>
<id>urn:sha1:cc1a6d2a947ef8c2577a77027d69fce012ae91fd</id>
<content type='text'>
The trick of having a common header file doesn't work to share between
test scripts, so make an include file in the test directory.

The use of #include &lt;notmuch-test.h&gt; looks slightly pretentious, but
the include file is not actually in the current (temporary) directory.
</content>
</entry>
<entry>
<title>test: test_python: set PYTHONPATH to the python execution environment</title>
<updated>2016-06-11T16:12:08Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2016-05-25T21:37:41Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2333a44ab7280a286af38e589a4bbc712bc3589a'/>
<id>urn:sha1:2333a44ab7280a286af38e589a4bbc712bc3589a</id>
<content type='text'>
Place PYTHONPATH to the environment when python is executed in a way
that current shell environment is not affected. This also allows adding
the old value of PYTHONPATH to the end of the new value (otherwise it
would have been appended again and again when test_python is called).

At the same time, use -B option to avoid writing .pyc files to
bindings/python/* (which are not cleared out by distclean).

Drop the (unused) prefix code which preserved the original stdout of the
python program and opened sys.stdout to OUTPUT. In place of that there
is now note how (debug) information can be printed to original stdout.
</content>
</entry>
<entry>
<title>test: set LD_LIBRARY_PATH early and keep its old contents</title>
<updated>2016-06-11T16:11:49Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2016-05-25T21:37:40Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f0e5317bcdc856739c5107705e3bc86b31b01d38'/>
<id>urn:sha1:f0e5317bcdc856739c5107705e3bc86b31b01d38</id>
<content type='text'>
Previously LD_LIBRARY_PATH was exported (and environment changed)
in the middle of test case execution, when a function setting it
was called.

Previously the old contents of LD_LIBRARY_PATH was lost (if any)
when it was re-set and exported. In some systems the old contents of
LD_LIBRARY_PATH was needed to e.g. locate suitable gmime library.
</content>
</entry>
<entry>
<title>test: add function die () and have use of it in add_email_corpus ()</title>
<updated>2016-06-11T16:03:09Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2016-05-28T12:39:29Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d53b417d1f5935a924b0f0127e64750c8448ac3a'/>
<id>urn:sha1:d53b417d1f5935a924b0f0127e64750c8448ac3a</id>
<content type='text'>
Added die() function to test-lib.sh with the following first use of it:

If notmuch new fails during email corpus addition the database is
most probably inexistent or broken and the added corpus would be
unusable while running single tests, giving misleading failures
("only" full 'make test' cleans out old corpus).
</content>
</entry>
<entry>
<title>test-lib.sh: renamed die...()s to trap...()s and exit...()</title>
<updated>2016-06-11T16:03:00Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2016-05-28T12:39:28Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1ca752fa362e7c245d88b6cc742d178824f2a50c'/>
<id>urn:sha1:1ca752fa362e7c245d88b6cc742d178824f2a50c</id>
<content type='text'>
Now the function names more accurately describes what the functions do.
</content>
</entry>
<entry>
<title>Use https instead of http where possible</title>
<updated>2016-06-05T11:32:17Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2016-06-02T16:26:14Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6a833a6e83865f6999707cc30768d07e1351c2cb'/>
<id>urn:sha1:6a833a6e83865f6999707cc30768d07e1351c2cb</id>
<content type='text'>
Many of the external links found in the notmuch source can be resolved
using https instead of http.  This changeset addresses as many as i
could find, without touching the e-mail corpus or expected outputs
found in tests.
</content>
</entry>
<entry>
<title>CLI: add notmuch-config support for named queries</title>
<updated>2016-05-25T10:40:44Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2016-03-22T10:54:52Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2d2a13966c74ffe86fc10abfbe1ac4c9798788ce'/>
<id>urn:sha1:2d2a13966c74ffe86fc10abfbe1ac4c9798788ce</id>
<content type='text'>
Most of the infrastructure here is general, only the validation/dispatch
is hardcoded to a particular prefix.

A notable change in behaviour is that notmuch-config now opens the
database e.g. on every call to list, which fails with an error message
if the database doesn't exit yet.
</content>
</entry>
<entry>
<title>CLI: add optional config data to dump output.</title>
<updated>2016-05-25T10:07:56Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2016-03-22T10:54:50Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e042a25a3fd8706b6e1ee7bdf527bb17ecb74c6a'/>
<id>urn:sha1:e042a25a3fd8706b6e1ee7bdf527bb17ecb74c6a</id>
<content type='text'>
Note that it changes the default dump output format, but doesn't break
existing notmuch-restore. It might break user scripts though.
</content>
</entry>
</feed>
