<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib.sh, branch 0.31_rc1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.31_rc1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.31_rc1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2020-08-10T00:14:36Z</updated>
<entry>
<title>test: Fix indentation</title>
<updated>2020-08-10T00:14:36Z</updated>
<author>
<name>Jonas Bernoulli</name>
<email>jonas@bernoul.li</email>
</author>
<published>2020-08-08T11:49:57Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=bb15524c12a73e2cd6cdffe0561ba493706d65de'/>
<id>urn:sha1:bb15524c12a73e2cd6cdffe0561ba493706d65de</id>
<content type='text'>
Fix it to consistently match the style we have configured in
".dir-locals.el".
</content>
</entry>
<entry>
<title>test: drop use of db_ending</title>
<updated>2020-08-01T23:27:30Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-07-30T00:01:30Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=99a7aac8f2af6f3adb8f816be46ee33eb1d57515'/>
<id>urn:sha1:99a7aac8f2af6f3adb8f816be46ee33eb1d57515</id>
<content type='text'>
This will allow the dropping of the test for the default ending from
configure.
</content>
</entry>
<entry>
<title>test: Explicitly state that we want to sign with sender</title>
<updated>2020-07-28T11:40:30Z</updated>
<author>
<name>Jonas Bernoulli</name>
<email>jonas@bernoul.li</email>
</author>
<published>2020-07-27T15:25:03Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=8b162b40f84e891afa340b72c50b98f62ae57106'/>
<id>urn:sha1:8b162b40f84e891afa340b72c50b98f62ae57106</id>
<content type='text'>
Since Emacs 27 'mml-secure-epg-sign' errors out if we don't opt-in to
signing as the sender using 'mml-secure-openpgp-sign-with-sender'.
</content>
</entry>
<entry>
<title>test: sanitize line numbers in exception reports</title>
<updated>2020-07-22T22:52:55Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2020-07-22T11:35:42Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=1a8060b81f2fbba324d4156f4733a7f1deb14d60'/>
<id>urn:sha1:1a8060b81f2fbba324d4156f4733a7f1deb14d60</id>
<content type='text'>
Prevent test suite churn when reported line numbers change.
</content>
</entry>
<entry>
<title>tests/ruby: Ensure that test works for out-of-tree builds</title>
<updated>2020-05-31T16:52:33Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2020-05-26T17:06:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b624b406ff004909e30903593e6b4f7dd889c9dc'/>
<id>urn:sha1:b624b406ff004909e30903593e6b4f7dd889c9dc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test/test-lib.sh: fix two out of tree test issues</title>
<updated>2020-05-30T15:42:14Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2020-04-23T21:26:43Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c9e55a712e1ab4d5e84ba15d07d094865e72ffa1'/>
<id>urn:sha1:c9e55a712e1ab4d5e84ba15d07d094865e72ffa1</id>
<content type='text'>
json_check_nodes.py exists in source tree, not in out of tree
build tree. Added -B to the execution so source tree is not
"polluted" by a .pyc file when json_check_nodes.py is executed.

When creating run_emacs.sh make it load .elc files from out of
tree build tree, not from source tree if such files existed.
If existed, those may be outdated, or even created by some other
emacs than the one that was used to build .elc files in out of
tree build dir.
</content>
</entry>
<entry>
<title>test-lib: mark function variables as local</title>
<updated>2020-05-09T11:32:51Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2020-05-08T23:24:38Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=627460d7bbbb6b95a07084c2b6fc7f647a5547e1'/>
<id>urn:sha1:627460d7bbbb6b95a07084c2b6fc7f647a5547e1</id>
<content type='text'>
Several functions in test/test-lib.sh used variable names that are
also used outside of those functions (e.g. $output and $expected are
used in many of the test scripts), but they are not expected to
communicate via those variables.

We mark those variables "local" within test-lib.sh so that they do not
get clobbered when used outside test-lib.

We also move the local variable declarations to beginning of each
function, to avoid weird gotchas with local variable declarations as
described in https://tldp.org/LDP/abs/html/localvar.html.

Signed-off-by: Daniel Kahn Gillmor &lt;dkg@fifthhorseman.net&gt;
</content>
</entry>
<entry>
<title>tests: disable CRL checks from gpgsm</title>
<updated>2020-04-30T21:02:38Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2020-03-19T04:15:08Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=9055dfdae41ba762b12434fe678fc524ea3ed618'/>
<id>urn:sha1:9055dfdae41ba762b12434fe678fc524ea3ed618</id>
<content type='text'>
GPGME has a strange failure mode when it is in offline mode, and/or
when certificates don't have any CRLs: in particular, it refuses to
accept the validity of any certificate other than a "root" cert.

This can be worked around by setting the `disable-crl-checks`
configuration variable for gpgsm.

I've reported this to the GPGME upstream at
https://dev.gnupg.org/T4883, but I have no idea how it will be
resolved.  In the meantime, we'll just work around it.

Note that this fixes the test for verification of
id:smime-multipart-signed@protected-headers.example, because
multipart/signed messages are already handled correctly (one-part
PKCS#7 messages will get fixed later).

Signed-off-by: Daniel Kahn Gillmor &lt;dkg@fifthhorseman.net&gt;
</content>
</entry>
<entry>
<title>test-lib.sh: add test_valid_json</title>
<updated>2020-04-30T20:57:16Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2020-04-28T18:57:20Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=488e91f42b95c116b387212c90ea47c43c716f5b'/>
<id>urn:sha1:488e91f42b95c116b387212c90ea47c43c716f5b</id>
<content type='text'>
This test does exactly what it says on the tin.  It expects JSON data
to be parseable by Python, at least.

Signed-off-by: Daniel Kahn Gillmor &lt;dkg@fifthhorseman.net&gt;
</content>
</entry>
<entry>
<title>tests/smime: include secret key material for Bob</title>
<updated>2020-04-30T20:55:11Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2020-04-30T19:35:21Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=7c7cebffe6f05c8bbb07c3714fde08562444c72e'/>
<id>urn:sha1:7c7cebffe6f05c8bbb07c3714fde08562444c72e</id>
<content type='text'>
This is taken from the same Internet Draft that test/smime/ca.crt
comes from.  See that draft for more details.
https://www.ietf.org/id/draft-dkg-lamps-samples-02.html#name-pkcs12-object-for-bob

We don't use it yet, but it will be used to decrypt other messages in
the test suite.

Note that we include it here with an empty passphrase, rather than
with the passphrase "bob" that it is supplied with in the I-D.  The
underlying cryptographic material is the same, but this way we can
import cleanly into gpgsm without having a passphrase set on it (gpgsm
converts an empty-string passphrase into no passphrase at all on
import).

Signed-off-by: Daniel Kahn Gillmor &lt;dkg@fifthhorseman.net&gt;
</content>
</entry>
</feed>
