<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib.sh, branch 0.11.1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.11.1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.11.1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2011-12-18T10:33:27Z</updated>
<entry>
<title>test: optionally print subtest number</title>
<updated>2011-12-18T10:33:27Z</updated>
<author>
<name>David Bremner</name>
<email>bremner@debian.org</email>
</author>
<published>2011-12-13T19:56:47Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=451c57d19aeff5420839701460691e8e20d13049'/>
<id>urn:sha1:451c57d19aeff5420839701460691e8e20d13049</id>
<content type='text'>
The idea is that $test_count could be used in tests to label
intermediate files. The output enabled by this patch (and --debug)
helps figure out which OUTPUT.nn file belongs to which test in case
several subtests write to OUTPUT.$test_count
</content>
</entry>
<entry>
<title>test: use python2 instead of python if available</title>
<updated>2011-12-11T14:43:16Z</updated>
<author>
<name>Thomas Jost</name>
<email>schnouki@schnouki.net</email>
</author>
<published>2011-12-07T09:46:18Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ae13d612c14f654d4bc12c93481227e4d24fda82'/>
<id>urn:sha1:ae13d612c14f654d4bc12c93481227e4d24fda82</id>
<content type='text'>
Some distros (Arch Linux) ship Python as python2 and Python 3 as python.
Checking for python2 is necessary for the Python tests to work on these
platforms.
</content>
</entry>
<entry>
<title>test: add a function to run Python tests</title>
<updated>2011-12-11T14:40:14Z</updated>
<author>
<name>Thomas Jost</name>
<email>schnouki@schnouki.net</email>
</author>
<published>2011-12-07T09:46:17Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2621f6cef19acc99745c389f5e324fea55f655d8'/>
<id>urn:sha1:2621f6cef19acc99745c389f5e324fea55f655d8</id>
<content type='text'>
The new test_python() function makes writing Python tests a little easier:
- it sets the environment variables as needed
- it redirects stdout to the OUTPUT file (like test_emacs()).

This commit also declares python as an external prereq.

The stdout redirection is required to avoid trouble when running commands like
"python 'script' | sort &gt; OUTPUT": in such a case, any error due to a missing
external prereq would be "swallowed" by sort, resulting to a failed test instead
of a skipped one.
</content>
</entry>
<entry>
<title>test: add functions to count how much times notmuch was called</title>
<updated>2011-12-08T00:03:00Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-11-29T21:19:52Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e994bb28df895ae06ebaab54b4ef226f5bd8bb95'/>
<id>urn:sha1:e994bb28df895ae06ebaab54b4ef226f5bd8bb95</id>
<content type='text'>
The patch adds two auxiliary functions and a variable:

  notmuch_counter_reset
  $notmuch_counter_command
  notmuch_counter_value

They allow to count how many times notmuch binary is called.
notmuch_counter_reset() function generates a script that counts how
many times it is called and resets the counter to zero.  The function
sets $notmuch_counter_command variable to the path to the generated
script that should be called instead of notmuch to do the counting.
The notmuch_counter_value() function returns the current counter
value.
</content>
</entry>
<entry>
<title>test: fix error messages for missing binary dependencies</title>
<updated>2011-12-01T01:26:10Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-11-28T22:41:07Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=de3d46e93cd5384e4fd0015a107a175accdffe5a'/>
<id>urn:sha1:de3d46e93cd5384e4fd0015a107a175accdffe5a</id>
<content type='text'>
The fake missing binary functions check if the binary has already be
added to the diagnostic message to avoid duplicates.  Unfortunately,
this check was buggy because the message string does not have the
trailing space.
</content>
</entry>
<entry>
<title>test: fix spurious output from missing external binaries functions</title>
<updated>2011-12-01T01:25:24Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-11-28T22:41:06Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5635977543bdf9ce03c78d749d7a6d4fd41ae698'/>
<id>urn:sha1:5635977543bdf9ce03c78d749d7a6d4fd41ae698</id>
<content type='text'>
The grep(1) command used in the fake binary functions was missing the
quiet option.
</content>
</entry>
<entry>
<title>test: add missing escape backslash in test_declare_external_prereq()</title>
<updated>2011-12-01T01:23:00Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-11-28T22:41:05Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=571810f71762ab8debeea3c5cffeb7dac665b2dd'/>
<id>urn:sha1:571810f71762ab8debeea3c5cffeb7dac665b2dd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test: fix test_require_external_prereq()</title>
<updated>2011-12-01T01:22:28Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-11-28T22:41:04Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=716e9a45b9cfc44618edfcc2fbf9b7a066b37f1a'/>
<id>urn:sha1:716e9a45b9cfc44618edfcc2fbf9b7a066b37f1a</id>
<content type='text'>
test_missing_external_prereq_${binary}_ variable indicates that the
binary is missing.  It must be set in test_declare_external_prereq()
outside of the fake $binary() function.
</content>
</entry>
<entry>
<title>test: check if emacs is available in the beginning of test_emacs</title>
<updated>2011-11-27T19:33:13Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-11-27T18:36:18Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5af65f65e8a32fb7f11f5b1c2036e35a4c4809e2'/>
<id>urn:sha1:5af65f65e8a32fb7f11f5b1c2036e35a4c4809e2</id>
<content type='text'>
Unfortunately, this is needed to avoid the emacs waiting loop.
</content>
</entry>
<entry>
<title>test: add function to explicitly check for external dependencies</title>
<updated>2011-11-27T19:32:52Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-11-27T18:36:17Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=f0fbdad04bd60990ed556232a3acd61cd1c60fcf'/>
<id>urn:sha1:f0fbdad04bd60990ed556232a3acd61cd1c60fcf</id>
<content type='text'>
Useful when binary is called indirectly (e.g. from emacs).
</content>
</entry>
</feed>
