<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib.sh, branch 0.36</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.36</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.36'/>
<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: split variable settings to their own file</title>
<updated>2022-02-25T12:37:14Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-02-12T20:27:33Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=371fa28ced91e0d0036a98403fab61e9f5301ba4'/>
<id>urn:sha1:371fa28ced91e0d0036a98403fab61e9f5301ba4</id>
<content type='text'>
This allows sharing more variable settings between the (correctness)
tests and the performance-tests. Unfortunately it seems a bit tricky
to move settings to test-lib-common.sh, as that is sourced late in
test-lib.sh, and moving it earlier breaks things.
</content>
</entry>
<entry>
<title>test: sanitize generated message files names</title>
<updated>2022-01-27T11:48:27Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-01-21T23:38:48Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0756105832612ad12661d1dd61b7e7b5bfe99c6c'/>
<id>urn:sha1:0756105832612ad12661d1dd61b7e7b5bfe99c6c</id>
<content type='text'>
It is fragile to encode the generated names into tests, as it makes
tests break when e.g. new tests are added.  There is a possibility
that this will hide certain failures; in that case meaningful filenames
should be chosen for the generated messages.
</content>
</entry>
<entry>
<title>test: define test_expect_equal_message_body</title>
<updated>2022-01-26T11:22:09Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-01-20T11:48:35Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b559240bb1cbc3d0b18589bd3e5aa996ac84382d'/>
<id>urn:sha1:b559240bb1cbc3d0b18589bd3e5aa996ac84382d</id>
<content type='text'>
This is a relatively simple sed invocation, but rather than write a
comment everywhere, give it a descriptive name.
</content>
</entry>
<entry>
<title>Merge remote-tracking branch 'origin/release'</title>
<updated>2022-01-12T17:25:29Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-01-12T17:25:29Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f9d8f9c6bae1a9ea60b41755008b71381464e208'/>
<id>urn:sha1:f9d8f9c6bae1a9ea60b41755008b71381464e208</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test/gpgsm: use --with-colons when calculating fingerprint.</title>
<updated>2022-01-12T17:22:51Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2022-01-11T23:52:30Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=114b985ba73da16d953f30dddf014be889db6e50'/>
<id>urn:sha1:114b985ba73da16d953f30dddf014be889db6e50</id>
<content type='text'>
As stressed by the gpg documentation, the non-'with-colons' output
format is subject to change, and indeed it did in 2.3.x (x&lt;=3). This
should make the the test suite more robust against such changes.
</content>
</entry>
<entry>
<title>test: remove directory names from paths in exceptions</title>
<updated>2021-12-23T12:47:40Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-12-05T13:56:03Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=cea1604a087645d07998c6986a8678b2af239322'/>
<id>urn:sha1:cea1604a087645d07998c6986a8678b2af239322</id>
<content type='text'>
These cause failures when building out of tree.
</content>
</entry>
<entry>
<title>test: add python-cffi bindings to path for test_python</title>
<updated>2021-12-04T12:36:23Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-10-30T16:22:33Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5f077bef37462267258f95f7400596a157878b14'/>
<id>urn:sha1:5f077bef37462267258f95f7400596a157878b14</id>
<content type='text'>
This will allow testing the new python bindings using test_python, in
addition to the current invocation of pytest.
</content>
</entry>
<entry>
<title>test/T355-smime: Use key as exported by gpgsm</title>
<updated>2021-09-29T23:04:31Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-09-28T01:30:08Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4760b4470c5d5782e52bd1a7761d9975a1db1fec'/>
<id>urn:sha1:4760b4470c5d5782e52bd1a7761d9975a1db1fec</id>
<content type='text'>
As reported in id:87h7pxiek3.fsf@tethera.net, the previous version of
the test is flaky. There is some so-far undebugged interaction between
openssl and gpgsm that causes the keys to fail to import. As a
potential workaround, use the key as exported by gpgsm, and eliminate
openssl from this particular pipeline.
</content>
</entry>
<entry>
<title>test: add test_expect_equal_file_nonempty</title>
<updated>2021-08-21T21:55:41Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2021-08-04T10:42:32Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=474a7f8e6506ed5c027a5f8e4c11261cda5a17dc'/>
<id>urn:sha1:474a7f8e6506ed5c027a5f8e4c11261cda5a17dc</id>
<content type='text'>
A common bug in tests is that the code used to generate the EXPECTED
file fails, generating no output. When the code generating the OUTPUT
file fails in the same way, the test passes, even though there is a
failure being hidden. Add a new test function that guards against
this.
</content>
</entry>
</feed>
