<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib.sh, branch 0.25.1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.25.1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.25.1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2017-06-01T00:54:08Z</updated>
<entry>
<title>test: define GMime version dependant breakage</title>
<updated>2017-06-01T00:54:08Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2017-05-27T16:51:18Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6ac3d8c27f8edc8b3b84440900771053d6efd9dd'/>
<id>urn:sha1:6ac3d8c27f8edc8b3b84440900771053d6efd9dd</id>
<content type='text'>
We have some tests where the gmime 3 behaviour seems like a bug fix,
others where it's less clear, so we allow both possibilities.
</content>
</entry>
<entry>
<title>test-lib.sh: add "atexit" functionality</title>
<updated>2017-05-26T10:25:55Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2017-05-23T18:54:24Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=eb157f8841b93a0df241b815e30ac54ca81cc83d'/>
<id>urn:sha1:eb157f8841b93a0df241b815e30ac54ca81cc83d</id>
<content type='text'>
New function at_exit_function registers given function to be called
at script termination.

Functions so registered are called in the reverse order of their
registration; no arguments are passed.

Function is called only once; re-adding with function name already
registered will remove previous registration.

New function rm_exit_function can be used to remove registration.

Modules (and possibly test-lib.sh functions) in future commits will
register such functions.
</content>
</entry>
<entry>
<title>fix out of tree tests</title>
<updated>2017-03-12T12:19:23Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2017-03-12T11:59:14Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=936c35da86aebf76b14f4ba198f760403455cfe0'/>
<id>urn:sha1:936c35da86aebf76b14f4ba198f760403455cfe0</id>
<content type='text'>
Use $NOTMUCH_SRCDIR/ instead of $TEST_DIRECTORY/../ (in those 2 places)
where reference to source directory instead of build directory is
required.
</content>
</entry>
<entry>
<title>test: require test_begin_subtest before test_expect_code</title>
<updated>2017-03-09T13:03:40Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-02-26T13:43:01Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0497d695ca796c4d19ad5ec08788bbb1f400c58c'/>
<id>urn:sha1:0497d695ca796c4d19ad5ec08788bbb1f400c58c</id>
<content type='text'>
Unify the subtests by requiring test_begin_subtest before
test_expect_code. (Similar change for test_expect_success has already
been done.)

This increases clarity in the test scripts by having a separate line
for the start of the subtest with the heading, and makes it possible
to simplify the test infrastructure by making all subtests similar.
</content>
</entry>
<entry>
<title>test: require test_begin_subtest before test_expect_success</title>
<updated>2017-03-09T13:01:21Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-02-26T13:43:00Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d0cd253b37646d9364d046e1d3edb022a58c105a'/>
<id>urn:sha1:d0cd253b37646d9364d046e1d3edb022a58c105a</id>
<content type='text'>
Unify the subtests by requiring test_begin_subtest before
test_expect_success. (Similar change for test_expect_code will
follow.)

This increases clarity in the test scripts by having a separate line
for the start of the subtest with the heading, and makes it possible
to simplify the test infrastructure by making all subtests similar.
</content>
</entry>
<entry>
<title>test: drop the implicit prereq check mechanism from test_expect_*</title>
<updated>2017-03-09T13:00:16Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-02-26T13:42:59Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b8f12bd3717aa446ef04197734af7a055e6909fe'/>
<id>urn:sha1:b8f12bd3717aa446ef04197734af7a055e6909fe</id>
<content type='text'>
The only place where we use the implicit prereq check is T000-basic.sh
where we check that it works. It's an added complication that we don't
use. Remove it.

The test_have_prereq function can still be used for the same effect in
subtests that use test_begin_subtest. For now, this will make it
impossible to have prereqs in one-line subtests that don't require
test_begin_subtest. This will be fixed in follow-up work.
</content>
</entry>
<entry>
<title>test: ensure test_begin_subtest has been called before test_expect_*</title>
<updated>2017-03-09T12:58:28Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-02-26T13:42:58Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e563b8cafd394f673f0a768d46c18dd5da7411a5'/>
<id>urn:sha1:e563b8cafd394f673f0a768d46c18dd5da7411a5</id>
<content type='text'>
This is the expectation, increase robustness of the test suite by
requiring it.
</content>
</entry>
<entry>
<title>test: only accept short and long options, not silly in-betweens</title>
<updated>2017-03-09T12:55:38Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-02-26T13:42:57Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=13a59c4a8fc4ee418424e0b7ee4c8bbd5aae5da2'/>
<id>urn:sha1:13a59c4a8fc4ee418424e0b7ee4c8bbd5aae5da2</id>
<content type='text'>
It's not notmuch style to accept sloppy parameter names.
</content>
</entry>
<entry>
<title>test: remove unused and no-op --long-tests parameter</title>
<updated>2017-03-09T12:55:17Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-02-26T13:42:56Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=de66230b460c5ee2eb32d9fa33fe8247e3b5dec0'/>
<id>urn:sha1:de66230b460c5ee2eb32d9fa33fe8247e3b5dec0</id>
<content type='text'>
It's been unused since its introduction in commit 0083854b1204 ("Copy
test framework from Git").
</content>
</entry>
<entry>
<title>test: remove unused test_external and test_external_without_stderr</title>
<updated>2017-03-09T12:55:06Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-02-26T13:42:55Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=8af6fc5e6e82911a9e0c2d865064aed870c45d59'/>
<id>urn:sha1:8af6fc5e6e82911a9e0c2d865064aed870c45d59</id>
<content type='text'>
They've been unused since their introduction in commit 0083854b1204
("Copy test framework from Git"), only causing maintenance burden.
</content>
</entry>
</feed>
