<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test, branch debian/0.6_254</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=debian%2F0.6_254</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=debian%2F0.6_254'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2011-06-23T10:05:25Z</updated>
<entry>
<title>tests: add a test for symbol hiding side effects</title>
<updated>2011-06-23T10:05:25Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2011-06-22T11:58:01Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=fba968dbfa806dc517fc55d1f28cf208f0316863'/>
<id>urn:sha1:fba968dbfa806dc517fc55d1f28cf208f0316863</id>
<content type='text'>
The worry here is that a binary linking with libnotmuch might lose
access to Xapian::Error symbols because libnotmuch hides them.

We are careful here to create ./fakedb/.notmuch in order to trigger a
Xapian exception, and not just a missing file check.

Thanks to jrollins and amddragon for suggestions.
(cherry picked from commit 66f37f5f6864a988f94ddb893e3a176af57f6c8e)
</content>
</entry>
<entry>
<title>smtp-dummy: Prefer return rather than exit() in main.</title>
<updated>2011-06-22T13:38:33Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2011-06-21T21:54:10Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b0ba84f9e71b0f117dc0bdf0b790c6e2341d3949'/>
<id>urn:sha1:b0ba84f9e71b0f117dc0bdf0b790c6e2341d3949</id>
<content type='text'>
The main() function should be written as just another function with a
return value. This allows for more reliable code reuse. Imagine that
main() grows too large and needs to be factored into multiple
functions. At that point, exit() is probably the wrong thing, yet can
also be hard to notice as it's in less-frequently-tested exceptional
cases.
</content>
</entry>
<entry>
<title>Fix compilation warnings in test/smtp-dummy.c.</title>
<updated>2011-06-22T13:38:33Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-06-16T10:32:08Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=41a094624a079f4a145aba37e8059f8774dfaec6'/>
<id>urn:sha1:41a094624a079f4a145aba37e8059f8774dfaec6</id>
<content type='text'>
* Remove unused variables in main(): buf, bytes and greeting.
* Replace return with no value in main() with exit(3).
</content>
</entry>
<entry>
<title>tests: Add optional use of timeout utility, if present.</title>
<updated>2011-06-22T11:11:32Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2011-05-28T09:50:11Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=114eb1c52095487caed1de8746f2741da7a3ead1'/>
<id>urn:sha1:114eb1c52095487caed1de8746f2741da7a3ead1</id>
<content type='text'>
Each top level test (basic, corpus, etc...) is run with a fixed
timeout of 2 minutes.

The goal here is to treat a hung test as a failure. The emacs test for
sending mail is known to be problematic on the Debian
autobuilders. This is both a bandaid fix for that, and a sensible long
term feature.
(cherry picked from commit 5f99c80e02736c90495558d9b88008a768876b29)
</content>
</entry>
<entry>
<title>test emacs: Add tests for hiding messages in notmuch-show view</title>
<updated>2011-06-15T14:07:32Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-05-26T21:38:34Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=59b251ef940609dac7e17528065a39544463e0b4'/>
<id>urn:sha1:59b251ef940609dac7e17528065a39544463e0b4</id>
<content type='text'>
This test is expected to fail as it exposes a current bug, (which we
hope to fix soon).
</content>
</entry>
<entry>
<title>test: Fix from-guessing to actually span Received headers over multiple lines</title>
<updated>2011-06-11T00:20:22Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2011-06-11T00:18:27Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b7db7ea42056b96578b329db5a184c9c408062c2'/>
<id>urn:sha1:b7db7ea42056b96578b329db5a184c9c408062c2</id>
<content type='text'>
The intent was always to make these Received headers span multiple
lines. But the escapes were causing the shell to ignore the newlines,
so that the result instead was long Received headers on a single line
each.

Fixing the intent here doesn't actually change the test-suite results
at all.
</content>
</entry>
<entry>
<title>test: Extend from-guessing test with a test with multiple Received headers</title>
<updated>2011-06-11T00:03:14Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2011-06-10T23:53:45Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ac43a96988091d1ac7356e618b496ff8eef5a31c'/>
<id>urn:sha1:ac43a96988091d1ac7356e618b496ff8eef5a31c</id>
<content type='text'>
This is much more realistic, as most messages in the wild will have multiple
Received headers. Also, this demonstrates a current bug in the Received
header parsing, (multiple Received headers are not properly concatenated
depending on the order in which headers are parsed in a message).
</content>
</entry>
<entry>
<title>test: Add test that emacs detects and hides top-post quotes of original messages</title>
<updated>2011-06-10T23:28:26Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2011-06-10T23:28:26Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d5edb1122db86dadd0d98dd8ccf3431e4d021337'/>
<id>urn:sha1:d5edb1122db86dadd0d98dd8ccf3431e4d021337</id>
<content type='text'>
This tests the recently-added detection/hiding of top-posted quotations and
in the testing, it takes advantage of the less-recently-added
visible-buffer-string function for emitting only the visible text
from a buffer.
</content>
</entry>
<entry>
<title>test: modify multipart test to use test_expect_equal_file</title>
<updated>2011-06-03T22:24:35Z</updated>
<author>
<name>Jameson Graef Rollins</name>
<email>jrollins@finestructure.net</email>
</author>
<published>2011-05-28T21:16:30Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=61ff61cc2cb12ecc5020477bf8f7c1b4d31f953a'/>
<id>urn:sha1:61ff61cc2cb12ecc5020477bf8f7c1b4d31f953a</id>
<content type='text'>
Again, this is a much cleaner and more thorough test, and in fact
exposes a bug in the format=text output, that will be fixed the next
commit.  Because of this, some of the multipart tests currently fail.
</content>
</entry>
<entry>
<title>test: update emacs test to use test_expect_equal_file</title>
<updated>2011-06-03T21:29:05Z</updated>
<author>
<name>Jameson Graef Rollins</name>
<email>jrollins@finestructure.net</email>
</author>
<published>2011-05-28T20:46:24Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5b0bf70faa57651993b5e80a3a25467c12e5f9cf'/>
<id>urn:sha1:5b0bf70faa57651993b5e80a3a25467c12e5f9cf</id>
<content type='text'>
This is a much cleaner way to do the emacs tests, since we're actually
comparing output against existing files with expected output.  We also
won't miss any trailing newlines this way.

And speaking of which, one of the expected output files was actually
missing a trailing blank line that was actually in one of the original
messages, so this was fixed.
</content>
</entry>
</feed>
