<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib-common.sh, branch 0.26</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.26</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.26'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2017-12-05T01:04:38Z</updated>
<entry>
<title>test: unbreak performance tests</title>
<updated>2017-12-05T01:04:38Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2017-12-02T12:53:04Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1e4e8e3bf564ea190b42e9347b22c62fa6b78396'/>
<id>urn:sha1:1e4e8e3bf564ea190b42e9347b22c62fa6b78396</id>
<content type='text'>
In 8e7fb88237aedea22 Jani replaced the use of $(pwd -P) to find the
TEST_DIRECTORY in order to better support out of tree
builds. Unfortunately the performance-tests need a different value for
the variable and were thus broken.

This commit splits out the setting of this variable for the two sets
of tests.  Performance tests still don't work out of tree, because
the handling of the downloaded corpus needs to be updated.
</content>
</entry>
<entry>
<title>test: fix test database backup/restore location</title>
<updated>2017-10-29T16:30:30Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-10-24T18:36:11Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1b91884296f7e423f2e190ccf7f590ccb3028fdd'/>
<id>urn:sha1:1b91884296f7e423f2e190ccf7f590ccb3028fdd</id>
<content type='text'>
backup_database() and restore_database() used to store the backups in
the test specific temporary directory, through the current working
directory being there. Commit 8e7fb88237ae ("test: use source and
build paths in test-lib-common.sh") started using a test specific
backup directories under the build tree test directory. This was in
error. Switch back to the old location, but using paths to the
location instead of relying on current working directory.

Reported by Daniel Kahn Gillmor &lt;dkg@fifthhorseman.net&gt;.
</content>
</entry>
<entry>
<title>test: remove --root option and fix TMP_DIRECTORY cleanup</title>
<updated>2017-10-21T14:32:20Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-10-21T11:58:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d455c8b74a2a63454779445e14ac3e81141b204a'/>
<id>urn:sha1:d455c8b74a2a63454779445e14ac3e81141b204a</id>
<content type='text'>
The primary motivation here is to fix TMP_DIRECTORY cleanup prior to
running each test when the current working directory is not the test
subdirectory. Tests with failures would leave their TMP_DIRECTORY
directory behind for debugging, and repeated out-of-tree test runs
would have old temp directories. (This lead to e.g. T310-emacs.sh
hanging because emacs would prompt for overwriting files.)

We remove the likely anyway defunct --root test option while at it,
just to be on the safe side when doing 'rm -rf' on the TMP_DIRECTORY.
</content>
</entry>
<entry>
<title>test: mkdir and cd to $TMP_DIRECTORY instead of $test for testing</title>
<updated>2017-10-20T22:55:10Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-09-25T20:38:26Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=8dfa116010adba3a41b6a4248d1706b34ffae600'/>
<id>urn:sha1:8dfa116010adba3a41b6a4248d1706b34ffae600</id>
<content type='text'>
$TMP_DIRECTORY is a full path, while $test is not.
</content>
</entry>
<entry>
<title>test: use source and build paths in test-lib-common.sh</title>
<updated>2017-10-20T22:54:43Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-09-25T20:38:25Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=8e7fb88237aedea22ecb70b0195984c2f177bbeb'/>
<id>urn:sha1:8e7fb88237aedea22ecb70b0195984c2f177bbeb</id>
<content type='text'>
Make a distinction between source and build directories.

The expectation is that anyone sourcing test-lib-common.sh has sourced
export-dirs.sh.
</content>
</entry>
<entry>
<title>test: move generate_message, add_message into test-lib-common.sh</title>
<updated>2017-08-20T11:34:03Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2017-08-18T23:50:04Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1092c747ef99b757b7e31f8a0b8f12f0d5e556d3'/>
<id>urn:sha1:1092c747ef99b757b7e31f8a0b8f12f0d5e556d3</id>
<content type='text'>
The plan is to use at least the former in the perf test suite.
</content>
</entry>
<entry>
<title>tests: add compatibility layer</title>
<updated>2017-03-25T10:56:52Z</updated>
<author>
<name>Mikhail</name>
<email>mp39590@gmail.com</email>
</author>
<published>2017-03-09T13:32:43Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9b7dbed58ebd3aeee16b044fdffda6b39e90643e'/>
<id>urn:sha1:9b7dbed58ebd3aeee16b044fdffda6b39e90643e</id>
<content type='text'>
Make test-lib-common.sh load test-lib-&lt;$PLATFORM&gt;.sh to create
additional shim for platform specifics.

Use test-lib-FREEBSD.sh to call GNU utilities instead of native ones.

- amended by db following Tomi's suggestions
</content>
</entry>
<entry>
<title>test: move GNUPGHOME to TEST_TMPDIR</title>
<updated>2017-02-28T00:01:42Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2017-02-27T23:53:56Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1044775fc003914ee63b53254b7ca8700983a6e7'/>
<id>urn:sha1:1044775fc003914ee63b53254b7ca8700983a6e7</id>
<content type='text'>
We already use this directory for dtach sockets, so it makes sense to
put gnupg sockets there as well. There doesn't seem to be a clean way
to put a fully functional socket in a different location than
GNUPGHOME.
</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: fix die() in test-lib-common.sh</title>
<updated>2016-06-11T16:03:44Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2016-05-28T12:39:30Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=36492f20a71906413d9922dbad5e18571059f57a'/>
<id>urn:sha1:36492f20a71906413d9922dbad5e18571059f57a</id>
<content type='text'>
In scripts that include test-lib-common.sh but not test-lib.sh
the die() implementation needs to be a bit different due to
fd redirection differences. test-lib-common.sh implements die()
only if it was not implemented already.
</content>
</entry>
</feed>
