<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib.sh, branch 0.4</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.4</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.4'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2010-10-28T19:07:42Z</updated>
<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>
<entry>
<title>test: Fix the search and dump-restore tests to operator on non-empty mail store.</title>
<updated>2010-09-20T23:40:35Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-09-20T23:40:35Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5497b01c27ed217bc351d9995e0f46c3d6ff2442'/>
<id>urn:sha1:5497b01c27ed217bc351d9995e0f46c3d6ff2442</id>
<content type='text'>
We do this with a new add_email_corpus function that establishes a
mail store with 50 messages from the notmuch mailing list.
</content>
</entry>
<entry>
<title>test: Remove useless NOTMUCH variable (in favor of simply "notmuch")</title>
<updated>2010-09-20T23:15:08Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-09-20T23:13:15Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ba9f9efc9a8ba9d6e509d4041a66e9a2d31171b1'/>
<id>urn:sha1:ba9f9efc9a8ba9d6e509d4041a66e9a2d31171b1</id>
<content type='text'>
When the NOTMUCH variable was originally invented it was used as an
explicit path to the notmuch binary being tested. Today, the test
suite sets the PATH variable instead, so the NOTMUCH variable always
has a value of simply "notmuch".

We simplifying that by using the constant value rather than the
continual variable reference.
</content>
</entry>
<entry>
<title>test: Remove some dead code in test-lib.sh</title>
<updated>2010-09-20T23:09:20Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-09-20T23:09:20Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=129a4417e3e8339074fb07004995ed4240cd68d8'/>
<id>urn:sha1:129a4417e3e8339074fb07004995ed4240cd68d8</id>
<content type='text'>
These assignements weren't being used at all and were just confusing me,
(the real assignments happen later on in the file).
</content>
</entry>
<entry>
<title>test: Print section names, and rename all test sections</title>
<updated>2010-09-20T21:38:56Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-09-20T21:36:31Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=4813ee41d63e8bb6f699303be3123be12dfde3f5'/>
<id>urn:sha1:4813ee41d63e8bb6f699303be3123be12dfde3f5</id>
<content type='text'>
Now that we can usefully pass section names via the NOTMUCH_SKIP_TESTS
environment variable, it's useful to actually print those names out
for the user. Then, since we're now printing these names, let's use
nicer names, (not excessively long but also not using abbreviations
like "msg").
</content>
</entry>
</feed>
