<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test, branch 0.3.1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.3.1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.3.1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2010-04-27T18:06:00Z</updated>
<entry>
<title>test: Exercise magic-from guessing with a single configured address</title>
<updated>2010-04-27T18:06:00Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-04-27T17:13:04Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=467f819827e2e52fabd2dfdd3890fe538b22cbe3'/>
<id>urn:sha1:467f819827e2e52fabd2dfdd3890fe538b22cbe3</id>
<content type='text'>
Immediately after releasing 0.3 we learned that the magic-from-guessing
code could hang in an infinite loop in some cases. The bug occurred
only when the user had configured only a primary email addresss and no
other email addresses.

The test suite wasn't previously covering this case, so address this
shortcoming.
(cherry picked from commit e0f561049809f2b29068d59b38fce3213131bbd6)
</content>
</entry>
<entry>
<title>Add tests for author name reordering in search results</title>
<updated>2010-04-26T18:45:17Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>hohndel@infradead.org</email>
</author>
<published>2010-04-24T18:20:56Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a35a9a77af1b5e5afa6d78fcc461a60acafb31b6'/>
<id>urn:sha1:a35a9a77af1b5e5afa6d78fcc461a60acafb31b6</id>
<content type='text'>
This should be required for all patches :-)

Signed-off-by: Dirk Hohndel &lt;hohndel@infradead.org&gt;
</content>
</entry>
<entry>
<title>test: Comment why we need to set TZ</title>
<updated>2010-04-26T15:05:57Z</updated>
<author>
<name>Michal Sojka</name>
<email>sojkam1@fel.cvut.cz</email>
</author>
<published>2010-04-26T10:12:13Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=969f1c46213e0cca6be28ffd066f80fa8353d5c9'/>
<id>urn:sha1:969f1c46213e0cca6be28ffd066f80fa8353d5c9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>fix expected test result to include Bcc lines</title>
<updated>2010-04-24T00:01:49Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>hohndel@infradead.org</email>
</author>
<published>2010-04-21T21:55:58Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=8adaad690e19351f63c38c1c2e28d37608300612'/>
<id>urn:sha1:8adaad690e19351f63c38c1c2e28d37608300612</id>
<content type='text'>
this test actually tests behavior that I consider as broken.
The Bcc should be to the same address as used in the From line,
otherwise we are creating a potential information leak as email
that is related to one email account (say, work) is copied to
a different account

Signed-off-by: Dirk Hohndel &lt;hohndel@infradead.org&gt;
Reviewed-by: Carl Worth &lt;cworth@cworth.org&gt;

These tests don't actually pass yet, since the feature being tested
has not been merged. But gettting these tests in first will let us
more easily test that the feature actually works, (and will help us
ensure we don't forget the feature before the next release).
</content>
</entry>
<entry>
<title>add From guessing tests to test suite</title>
<updated>2010-04-24T00:01:19Z</updated>
<author>
<name>Dirk Hohndel</name>
<email>hohndel@infradead.org</email>
</author>
<published>2010-04-21T21:55:57Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=037cfc5f5a79e541ecd3789e0ec815c9d88c0223'/>
<id>urn:sha1:037cfc5f5a79e541ecd3789e0ec815c9d88c0223</id>
<content type='text'>
right now these are not trying to be overly fancy
simply one test per strategy that we apply to figure out the best
from address - including the fallback if there's nothing to go on

Signed-off-by: Dirk Hohndel &lt;hohndel@infradead.org&gt;
</content>
</entry>
<entry>
<title>test: Set fixed time zone</title>
<updated>2010-04-23T20:28:33Z</updated>
<author>
<name>Michal Sojka</name>
<email>sojkam1@fel.cvut.cz</email>
</author>
<published>2010-04-23T07:36:45Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f106db3e9b146b4a032fbeeca8e3cf864abc1894'/>
<id>urn:sha1:f106db3e9b146b4a032fbeeca8e3cf864abc1894</id>
<content type='text'>
When the test suite is run in a different time zone that where Carl
lives, some tests may fail depending on the time when the test suite is
run. For example, just now I get:

     Search for all messages ("*"):...			FAIL
    --- test-031.expected	2010-04-23 09:33:47.898634822 +0200
    +++ test-031.output	2010-04-23 09:33:47.898634822 +0200
    @@ -1,5 +1,5 @@
    -thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Test message #6 (inbox unread)
    -thread:XXX   2001-01-05 [1/1] Notmuch Test Suite; Test message #14 (inbox unread)
    +thread:XXX   2001-01-06 [1/1] Notmuch Test Suite; Test message #6 (inbox unread)
    +thread:XXX   2001-01-06 [1/1] Notmuch Test Suite; Test message #14 (inbox unread)
     thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; body search (inbox unread)
     thread:XXX   2000-01-01 [1/1] searchbyfrom; search by from (inbox unread)
     thread:XXX   2000-01-01 [1/1] Notmuch Test Suite; search by to (inbox unread)

By setting a fixed time zone in the test script, these problems should
be eliminated.

Signed-off-by: Michal Sojka &lt;sojkam1@fel.cvut.cz&gt;
</content>
</entry>
<entry>
<title>test: Put the json tests into their own section.</title>
<updated>2010-04-23T00:17:11Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-04-23T00:17:11Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ec6d78acf12d5c8fe6d10d091adee6516bf48d8a'/>
<id>urn:sha1:ec6d78acf12d5c8fe6d10d091adee6516bf48d8a</id>
<content type='text'>
Not that the sections actually mean anything yet, but it makes for
clean output.
</content>
</entry>
<entry>
<title>First tests for JSON output and UTF-8 in mail body and subject</title>
<updated>2010-04-23T00:10:23Z</updated>
<author>
<name>Gregor Hoffleit</name>
<email>gregor@hoffleit.de</email>
</author>
<published>2010-04-13T16:37:57Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=08deef5f7571d7207039e374307605de8e97ddac'/>
<id>urn:sha1:08deef5f7571d7207039e374307605de8e97ddac</id>
<content type='text'>
The test suite doesn't yet cover --format=json output nor UTF-8 in
subject or body.

This patch starts with test cases for 'search --format=json' and
'show --format=json'.

Furthermore, it has test cases for a search for a UTF-8 string in a mail
body for a UTF-8 string in a mail subject.

Finally, it has a test case for --format=json with UTF-8 messages,
demonstrating the fix in 1267697893-sup-4538@sam.mediasupervision.de.

Reviewed-by: Carl Worth &lt;cworth@cworth.org&gt;
Updated tests to current implementation of the test suite.
These tests demonstrate a bug in the current implementation
of "notmuch show --format=json", (timestamp output is changed
depending on current timezone).
</content>
</entry>
<entry>
<title>test: Make existing "notmuch show" test more resilient</title>
<updated>2010-04-23T00:08:08Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-04-23T00:08:08Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e31aa92a4c97b0527cbdb93ed9027d77c2bff70f'/>
<id>urn:sha1:e31aa92a4c97b0527cbdb93ed9027d77c2bff70f</id>
<content type='text'>
If future updates to the test suite add more messages to the database
before this "notmuch show" test, then the message-ID numbers in the
expected output will all change. But we can at least compute the
numbers so that this test will continue to pass.
</content>
</entry>
<entry>
<title>test: Add a test to demonstrate message-sorting regression.</title>
<updated>2010-04-22T20:26:37Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-04-22T20:26:37Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5106df9f6b3101eb1ea4250efefa3f0408acbfc6'/>
<id>urn:sha1:5106df9f6b3101eb1ea4250efefa3f0408acbfc6</id>
<content type='text'>
In the recent change to rename threads based on changing subject
lines, I broke message ordering within "notmuch show" output. But our
test suite didn't catch that regressions, because we didn't have any
tests of "notmuch show".

This adds one "notmuch show" test along with the thread-naming
tests. It's not a whole suite of "notmuch show" testing, but it does
catch this regression at least.
</content>
</entry>
</feed>
