<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib-common.sh, branch 0.37_rc0</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.37_rc0</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.37_rc0'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2022-02-25T12:38:03Z</updated>
<entry>
<title>perf-test: allow running test_emacs from performance test suite.</title>
<updated>2022-02-25T12:38:03Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-02-12T20:27:35Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b21fa0e43371b8281b9aa8ea532088800bb37712'/>
<id>urn:sha1:b21fa0e43371b8281b9aa8ea532088800bb37712</id>
<content type='text'>
test_require_external prereq has to move to test-lib-common.sh, and
the new shell functions print_emacs_header and time_emacs are provided.

The somewhat indirect way of printing the output is to avoid the extra
"" present on string values from emacsclient.
</content>
</entry>
<entry>
<title>test: more style fixes</title>
<updated>2021-05-17T10:28:01Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2021-05-15T20:47:40Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4561f694e94aff47e7065186c4efaf2c6b010a41'/>
<id>urn:sha1:4561f694e94aff47e7065186c4efaf2c6b010a41</id>
<content type='text'>
In order to fit the git coding style.

Signed-off-by: Felipe Contreras &lt;felipe.contreras@gmail.com&gt;
</content>
</entry>
<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>
</feed>
