<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib.sh, branch 0.12</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.12</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.12'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2012-02-29T11:34:54Z</updated>
<entry>
<title>test: Add test for searching of uncommonly encoded messages</title>
<updated>2012-02-29T11:34:54Z</updated>
<author>
<name>Michal Sojka</name>
<email>sojkam1@fel.cvut.cz</email>
</author>
<published>2012-02-24T00:33:15Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=74f8f15adc1e6fce2d3fcc34b7e9ef0b65d926db'/>
<id>urn:sha1:74f8f15adc1e6fce2d3fcc34b7e9ef0b65d926db</id>
<content type='text'>
Emails that are encoded differently than as ASCII or UTF-8 are not
indexed properly by notmuch. It is not possible to search for non-ASCII
words within those messages.
</content>
</entry>
<entry>
<title>test: always report missing prereqs, independent of `--verbose' option</title>
<updated>2012-02-21T03:24:20Z</updated>
<author>
<name>Pieter Praet</name>
<email>pieter@praet.org</email>
</author>
<published>2012-01-18T12:19:41Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e3fb62f59b7cf93c818f382a62c37eea2d1b4f74'/>
<id>urn:sha1:e3fb62f59b7cf93c818f382a62c37eea2d1b4f74</id>
<content type='text'>
When tests are skipped due to missing prereqs, those prereqs are only
displayed when running with the `--verbose' option.  This is essential
information when troubleshooting, so always send to stdout.
</content>
</entry>
<entry>
<title>test: auto load elisp tests file in test_emacs if available</title>
<updated>2012-02-12T16:58:20Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2012-01-29T03:36:02Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=754ddbb578175b986b10099cb4a11517080579f7'/>
<id>urn:sha1:754ddbb578175b986b10099cb4a11517080579f7</id>
<content type='text'>
This allows us to simplify shell part of tests written in elisp.
</content>
</entry>
<entry>
<title>test: Add `test_emacs_expect_t'.</title>
<updated>2012-01-25T11:25:44Z</updated>
<author>
<name>David Edmondson</name>
<email>dme@dme.org</email>
</author>
<published>2012-01-24T16:14:05Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=260975e8aff635b6b99db835ee8d40ec33ee916c'/>
<id>urn:sha1:260975e8aff635b6b99db835ee8d40ec33ee916c</id>
<content type='text'>
Add a new test function to allow simpler testing of emacs
functionality.

`test_emacs_expect_t' takes one argument - a lisp expression to
evaluate. The test passes if the expression returns `t', otherwise it
fails and the output is reported to the tester.
</content>
</entry>
<entry>
<title>test: Don't return the result of checking for running emacs to the tester.</title>
<updated>2012-01-25T11:25:25Z</updated>
<author>
<name>David Edmondson</name>
<email>dme@dme.org</email>
</author>
<published>2012-01-24T16:14:04Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2903b32f79dcf7789a2b015c48194cb40ac71462'/>
<id>urn:sha1:2903b32f79dcf7789a2b015c48194cb40ac71462</id>
<content type='text'>
When checking for a running emacs, test_emacs evaluates the empty list
'()'. This returns 'nil' when emacs is running, which is then
prepended to the actual test result. Given that it is not part of the
actual test output the test harness can incorrectly report test
failure (or success).
</content>
</entry>
<entry>
<title>test: whitespace-cleanup for most test/* files</title>
<updated>2012-01-22T13:12:12Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2012-01-11T16:53:59Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=da9f39216555934327a91ebc6b3b726b0a989dcf'/>
<id>urn:sha1:da9f39216555934327a91ebc6b3b726b0a989dcf</id>
<content type='text'>
Used emacs (whitespace-cleanup) function to "cleanup blank problems"
in test files where that could be done without breaking tests;
test/emacs was partially, and test/multipart was fully reverted.
</content>
</entry>
<entry>
<title>test: don't bail out of `run_emacs' too early when missing prereqs</title>
<updated>2012-01-16T02:37:07Z</updated>
<author>
<name>Pieter Praet</name>
<email>pieter@praet.org</email>
</author>
<published>2012-01-14T09:09:37Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=42e8f66edf91095bb87b3ee7713b94002ffd3edc'/>
<id>urn:sha1:42e8f66edf91095bb87b3ee7713b94002ffd3edc</id>
<content type='text'>
When running the Emacs tests in verbose mode, only the first missing
prereq is reported because the `run_emacs' function is short-circuited
early:

  #+begin_example
    emacs: Testing emacs interface
     missing prerequisites: [0]  emacs(1)
     skipping test: [0]  Basic notmuch-hello view in emacs
     SKIP   [0]  Basic notmuch-hello view in emacs
  #+end_example

This can lead to situations reminiscent of "dependency hell", so instead
of returning based on each individual `test_require_external_prereq's exit
status, we now do so only after checking all the prereqs:

  #+begin_example
    emacs: Testing emacs interface
     missing prerequisites: [0]  dtach(1) emacs(1) emacsclient(1)
     skipping test: [0]  Basic notmuch-hello view in emacs
     SKIP   [0]  Basic notmuch-hello view in emacs
  #+end_example

Also added missing prereq for dtach(1).
</content>
</entry>
<entry>
<title>test: Remove #! line from test-lib.sh</title>
<updated>2011-12-29T22:03:00Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2011-12-29T02:34:56Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f4996c3f04e3c975edb3b2171cbce78002ae628d'/>
<id>urn:sha1:f4996c3f04e3c975edb3b2171cbce78002ae628d</id>
<content type='text'>
It makes no sense to run test-lib.sh, so it makes no sense to give it
an interpreter.  This is particularly annoying for Emacs users who
have executable-insert set, since the presence of the #! line will
cause Emacs to mark test-lib.sh executable when saving it, which will
in turn case the 'basic' test to fail.
</content>
</entry>
<entry>
<title>test: Make generated message date a real date</title>
<updated>2011-12-29T21:47:21Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2011-12-29T02:34:43Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=66ecd9063f041329d50f6ca2f9260e3b724eb868'/>
<id>urn:sha1:66ecd9063f041329d50f6ca2f9260e3b724eb868</id>
<content type='text'>
January 5, 2001 was a Tuesday, not a Friday.  Jameson fixed this exact
problem for the multipart test in ec2b0a98cc, but not for
generate_message itself.

As Jameson pointed out in ec2b0a98cc, if we want to test date parsing,
we should do it separately.
</content>
</entry>
<entry>
<title>test: allow user to choose which emacs to run tests with.</title>
<updated>2011-12-28T19:50:04Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2011-12-28T17:08:21Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=bed6022ed1076803d89260762dd4d90e639f2756'/>
<id>urn:sha1:bed6022ed1076803d89260762dd4d90e639f2756</id>
<content type='text'>
As we start to pay more attention to emacs24, it helps to be able to
select a different version of emacs to run the tests with to verify
version specific bugs.

A separate variable TEST_EMACS is needed to avoid being overwritten by the
make variable EMACS in Makefile.config

For what it's worth, the value of emacs is chosen at the time
tmp.emacs/run_emacs is created, so is fixed for all subtests.
</content>
</entry>
</feed>
