<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib.sh, branch 0.5</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.5</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.5'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2010-11-10T21:09:32Z</updated>
<entry>
<title>Tests for maildir synchronization</title>
<updated>2010-11-10T21:09:32Z</updated>
<author>
<name>Michal Sojka</name>
<email>sojkam1@fel.cvut.cz</email>
</author>
<published>2010-10-31T21:29:18Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=736ac42c45f62103e99ef18ef06b201d0bcd546f'/>
<id>urn:sha1:736ac42c45f62103e99ef18ef06b201d0bcd546f</id>
<content type='text'>
Signed-off-by: Michal Sojka &lt;sojkam1@fel.cvut.cz&gt;
</content>
</entry>
<entry>
<title>test: Don't strip portions of test name after '-' for temporary files.</title>
<updated>2010-11-10T21:09:31Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-11-10T20:15:46Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=08c735c58e9cc1074d31f21b8e6042adeb8d8844'/>
<id>urn:sha1:08c735c58e9cc1074d31f21b8e6042adeb8d8844</id>
<content type='text'>
We have test names like maildir-sync now, so it's cleaner if the
temporary files created are named things like maildir-sync-10.out
rather than maildir-10.out. Presumably the extra stripping here came
from naming conventions in git's test suite.
</content>
</entry>
<entry>
<title>test: Don't mess with user's HOME directory</title>
<updated>2010-11-06T00:43:27Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-11-06T00:43:27Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=fd16b37dc1b59dac765d459459ce00907506d559'/>
<id>urn:sha1:fd16b37dc1b59dac765d459459ce00907506d559</id>
<content type='text'>
This was too rude of a thing to do and could easily introduce
problems, (as reported by Rob Browning whose environment required some
HOME-specific things for shell startup).

Instead, implement more focused changes to ensure that particular file
in $HOME don't cause problems. Specifically, we fix known problems
with ~/.signature and ~/.mailrc here.
</content>
</entry>
<entry>
<title>test: Generate a little run_emacs script to help debug any failures.</title>
<updated>2010-11-06T00:19:51Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-11-05T21:20:52Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a09921bdfb47ff15f32bcea9f24e8399b1b8db36'/>
<id>urn:sha1:a09921bdfb47ff15f32bcea9f24e8399b1b8db36</id>
<content type='text'>
After any emacs test failure, the tmp.emacs directory will have this
run_emacs script in it which the user can use to run emacs within the
test suite environment, (pointing at the test suite's notmuch
database, using the local notmuch command-line program, and the local
notmuch emacs lisp code).
</content>
</entry>
<entry>
<title>test: Emit a friendly error message if run with bash &lt; 4.0.</title>
<updated>2010-10-28T19:07:42Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-10-28T19:07:42Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=20018a0c094f576589ea82d5ca5116dfd3c0ea55'/>
<id>urn:sha1:20018a0c094f576589ea82d5ca5116dfd3c0ea55</id>
<content type='text'>
The bash code in the test suite is using associative arrays which were
only added to bash as of release 4.0.

If the test suite is run with an older bash, we now immediately error
out and explain the situation, (instead of emitting confusing error
messages and failing dozens of tests, which is what happened before
this change).
</content>
</entry>
<entry>
<title>test: Set alternate HOME during tests.</title>
<updated>2010-10-27T17:40:44Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-10-27T17:40:44Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f30200a4296f972474f9254dc3cba89570cd7bc0'/>
<id>urn:sha1:f30200a4296f972474f9254dc3cba89570cd7bc0</id>
<content type='text'>
We set the HOME environment variable to the test directory to avoid
the tests relying on any configuration files from the test author's
own home directory, (such as ${HOME}/.emacs or similar).
</content>
</entry>
<entry>
<title>test: Add simple tests for navigating notmuch-hello and notmuch-search views</title>
<updated>2010-10-23T00:02:07Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-10-23T00:02:07Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a8aa437bbcd9df6ba739ddd4d0ba402d65847d01'/>
<id>urn:sha1:a8aa437bbcd9df6ba739ddd4d0ba402d65847d01</id>
<content type='text'>
We simulate the act of selecting the "inbox" saved search from
notmuch-hello and the act of selecting a desired thread from the
notmuch-search results.

The test for the navigation of notmuch-hello is currently marked as
BROKEN since its output is in the opposite order compared to the
'(notmuch-search "tag:inbox")' test. This question of ordering is a
currently open issue on the notmuch mailing list, so we'll let the
test suite reflect that for now.

Finally, this commit also abstracts some common emacs lisp code,
(waiting for the current buffer's process to complete), into a new
notmuch-test-wait function that is made available to anything calling
test_emacs.
</content>
</entry>
<entry>
<title>test: Add a new test_expect_equal_failure</title>
<updated>2010-10-23T00:01:34Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-10-23T00:01:34Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6307f306fd162cae12a39df3f291ecba2823fc58'/>
<id>urn:sha1:6307f306fd162cae12a39df3f291ecba2823fc58</id>
<content type='text'>
Which allows us to have a known-broken test that would otherwise use
test_expect_equal.
</content>
</entry>
<entry>
<title>test: Add a new test_emacs function to test-lib.sh</title>
<updated>2010-10-22T19:09:56Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-10-22T19:05:17Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=209e756cd4571964821221d5d4d8447b0aadd43d'/>
<id>urn:sha1:209e756cd4571964821221d5d4d8447b0aadd43d</id>
<content type='text'>
This should be quite handy for doing automated testing of the
emacs-based functionality in notmuch. This function invokes emacs with
the necessary command-line arguments, (to run in batch mode with no
local initialization, to load the notmuch code from the source
directory, and to ensure an 80-column width).
</content>
</entry>
<entry>
<title>test: Fix add_email_corpus function to be quiet.</title>
<updated>2010-10-22T19:04:41Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-10-22T19:04:41Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b97a763dc110f4bc74390e34acb29033c0c8bc90'/>
<id>urn:sha1:b97a763dc110f4bc74390e34acb29033c0c8bc90</id>
<content type='text'>
This simply avoids some unneeded noise in the "make test" output.
</content>
</entry>
</feed>
