<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib-common.sh, branch 0.38</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.38</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.38'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2023-07-21T10:41:50Z</updated>
<entry>
<title>test: support testing notmuch as installed</title>
<updated>2023-07-21T10:41:50Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2023-04-09T14:26:26Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ec26eeaeec87781dee7dbf720103a5bc9b6bba5d'/>
<id>urn:sha1:ec26eeaeec87781dee7dbf720103a5bc9b6bba5d</id>
<content type='text'>
We put some effort into testing the built copy rather than some
installed copy. On the other hand for people like packagers, testing
the installed copy is also of interest.

When NOTMUCH_TEST_INSTALLED is set to a nonempty value, tests do not
require a built notmuch tree or running configure.

Some of the tests marked as broken when running against installed
notmuch are probably fixable.
</content>
</entry>
<entry>
<title>test: Guess a value for NOTMUCH_PYTHON</title>
<updated>2023-07-21T10:07:43Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2023-04-09T14:26:25Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=73f3081160fb80345f3953cbdeba340975375325'/>
<id>urn:sha1:73f3081160fb80345f3953cbdeba340975375325</id>
<content type='text'>
python3 will work for many people, and reduce the friction to running
the tests without running configure first.
</content>
</entry>
<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>
</feed>
