<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib.sh, branch 0.29.2</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.29.2</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.29.2'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2019-05-29T11:03:21Z</updated>
<entry>
<title>test: new test framework to compare json parts</title>
<updated>2019-05-29T11:03:21Z</updated>
<author>
<name>Jameson Graef Rollins</name>
<email>jrollins@finestructure.net</email>
</author>
<published>2019-05-27T18:35:10Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=03839a8110054c51b406a7ce96fa532a72476466'/>
<id>urn:sha1:03839a8110054c51b406a7ce96fa532a72476466</id>
<content type='text'>
This makes it easier to write fairly compact, readable tests of json
output, without needing to sanitize away parts that we don't care
about.

Signed-off-by: Daniel Kahn Gillmor &lt;dkg@fifthhorseman.net&gt;
</content>
</entry>
<entry>
<title>test-lib.sh: colors to test output when parallel(1) is run on tty</title>
<updated>2019-05-23T11:00:31Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2019-05-08T18:51:47Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=3563079be37737aab084e957b494070eaea9c2f6'/>
<id>urn:sha1:3563079be37737aab084e957b494070eaea9c2f6</id>
<content type='text'>
Done via $COLORS_WITHOUT_TTY environment variable as passing options
to commands through parallel(1) does not look trivial.

Reorganized color checking in test-lib.sh a bit for this (perhaps
were not fully necessary but rest still an improvement):

  - color checking commands in subshell are not run before arg parsing
    (args may disable colors with --no-color)

  - [ -t 1 ] is checked before forking subshell
</content>
</entry>
<entry>
<title>test-lib.sh: "tidied" emacs_deliver_message ()</title>
<updated>2019-05-23T11:00:13Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2019-05-16T20:43:51Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a1aea7272e3dd98c389402791617a00b92783f86'/>
<id>urn:sha1:a1aea7272e3dd98c389402791617a00b92783f86</id>
<content type='text'>
Added initialization and checking of smtp_dummy_port
like it was done with smtp_dummy_pid.

Made those function-local variables.

One 8 spaces to tab consistency conversion.

And last, but definitely not least; while doing above
noticed that there were quite a few double-quoted strings
where $@ was in the middle of it -- replaced those with $*
for robustness ("...$@..." expands params to separate words,
"...$*..." params expands to single word).
</content>
</entry>
<entry>
<title>test: redirect STDIN from /dev/null</title>
<updated>2019-05-22T11:47:17Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2019-05-21T20:17:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f33053023b2a3f42ba7d87e3ed58b58673bf08ad'/>
<id>urn:sha1:f33053023b2a3f42ba7d87e3ed58b58673bf08ad</id>
<content type='text'>
Without this stdin may be anything that parent process provided for it.

Test processes might have tried to read something from it, which would
have caused undeterministic behavior.

E.g. gdb(1) tries to do tty related ioctls on fd 0 (and fd 1 and fd 2,
but those are redirected to 'test.output' before test runs).
</content>
</entry>
<entry>
<title>test: let the OS choose a port for smtp-dummy</title>
<updated>2019-05-10T09:56:22Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2019-05-07T10:20:49Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f2425a11a3735a726bab60d4942ce82f77c47950'/>
<id>urn:sha1:f2425a11a3735a726bab60d4942ce82f77c47950</id>
<content type='text'>
This should avoid potential collisions if we start running multiple
smtp-dummy processes in parallel.
</content>
</entry>
<entry>
<title>tests: remove entangling corpus index optimization</title>
<updated>2019-05-07T09:53:57Z</updated>
<author>
<name>Jameson Graef Rollins</name>
<email>jrollins@finestructure.net</email>
</author>
<published>2019-05-04T20:57:43Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=591388ccd1d7c631d1f98694543d1a80fc521d9f'/>
<id>urn:sha1:591388ccd1d7c631d1f98694543d1a80fc521d9f</id>
<content type='text'>
The add_email_corpus test utility includes logic that tries to re-use
an index of the corpus if available.  This was seemingly done as an
optimization, so that every test that uses the corpus didn't have to
create it's own index of the corpus.  However, this has the perverse
side effect of entangling tests together, and breaks parallelization.

Forcing each test to do it's own index does increase the overall time
of the test slightly (~6%), but this will be more than made up for in
the next patch that introduces paraellization.
</content>
</entry>
<entry>
<title>test/crypto: add_gnupg_home should have ultimate trust on "its own" key</title>
<updated>2019-05-07T09:42:21Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2019-05-04T21:33:28Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=7d48604157477054624d010fca496f7eb0d1168b'/>
<id>urn:sha1:7d48604157477054624d010fca496f7eb0d1168b</id>
<content type='text'>
The typical use case for gpg is that if you control a secret key, you
mark it with "ultimate" ownertrust.

The opaque --import-ownertrust mechanism is GnuPG's standard mechanism
to set up ultimate ownertrust (the ":6:" means "ultimate", for
whatever reason).

We adjust the test suite to match this change, inverting the sense of
one test: since the default is now that the user ID of the suite's own
key is valid, we change the test to make sure that the user ID is not
emitted when it is *not* valid.

Signed-off-by: Daniel Kahn Gillmor &lt;dkg@fifthhorseman.net&gt;
</content>
</entry>
<entry>
<title>test: simplify user ID handling</title>
<updated>2019-05-07T09:42:11Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2019-05-04T21:33:27Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=93e699e5c86bb93b2992f4ab3a15680824b7ee2d'/>
<id>urn:sha1:93e699e5c86bb93b2992f4ab3a15680824b7ee2d</id>
<content type='text'>
The user ID on the self-test is a little bit clunky-looking.  It also
may end up showing up elsewhere in the test suite.  Centralizing the
user ID in one place should make it easier to handle if it ever
changes, and should make tests easier to read.

Signed-off-by: Daniel Kahn Gillmor &lt;dkg@fifthhorseman.net&gt;
</content>
</entry>
<entry>
<title>gmime-cleanup: tests should only care about gmime 3</title>
<updated>2019-05-03T09:55:44Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2019-05-02T13:19:38Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=652baa6fe6a93e401463e17a4ce6577efd3f7fea'/>
<id>urn:sha1:652baa6fe6a93e401463e17a4ce6577efd3f7fea</id>
<content type='text'>
note that "notmuch-show for message with invalid From" is still broken
in T310-emacs.sh.  It would be good to debug what's going on there and
try to get it fixed!

signed-off-by: Daniel Kahn Gillmor &lt;dkg@fifthhorseman.net&gt;
</content>
</entry>
<entry>
<title>tests: move FINGERPRINT definition to add_gnupg_home</title>
<updated>2019-04-24T10:16:46Z</updated>
<author>
<name>Daniel Kahn Gillmor</name>
<email>dkg@fifthhorseman.net</email>
</author>
<published>2019-04-20T17:40:39Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=22ec4a36e60052b7de70a7b88df212ccaf249374'/>
<id>urn:sha1:22ec4a36e60052b7de70a7b88df212ccaf249374</id>
<content type='text'>
If a test has added a GnuPG homedir, it may well want to know the
fingerprint.  This saves us from having to redefine this magic string
in multiple places when more tests eventually use the GnuPG homedir.
</content>
</entry>
</feed>
