<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib.sh, branch 0.7_rc1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.7_rc1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.7_rc1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2011-06-29T22:26:45Z</updated>
<entry>
<title>test: Nix increment_mtime.</title>
<updated>2011-06-29T22:26:45Z</updated>
<author>
<name>Austin Clements</name>
<email>amdragon@MIT.EDU</email>
</author>
<published>2011-06-29T07:10:55Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=47afbdfb7995d703987a273bccc3a60fedc6dd08'/>
<id>urn:sha1:47afbdfb7995d703987a273bccc3a60fedc6dd08</id>
<content type='text'>
With the fix for the mtime race, this workaround is no longer
necessary.
</content>
</entry>
<entry>
<title>test: use emacsclient(1) for Emacs tests</title>
<updated>2011-06-29T00:10:55Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-06-28T04:56:17Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a854d06e92645350b7ec3f6cd1a10a2f6933104f'/>
<id>urn:sha1:a854d06e92645350b7ec3f6cd1a10a2f6933104f</id>
<content type='text'>
Before the change, every Emacs test ran in a separate Emacs
instance.  Starting Emacs many times wastes considerable time and
it gets worse as the test suite grows.  The patch solves this by
using a single Emacs server and emacsclient(1) to run multiple
tests.  Emacs server is started on the first test_emacs call and
stopped when test_done is called.  We take care not to leave
orphan Emacs processes behind when test is terminated by whatever
reason: Emacs server runs a watchdog that periodically checks
that the test is still running.

Some tests need to provide user input.  Before the change, this
was done using echo(1) to Emacs stdin.  This no longer works and
instead `standard-input' variable is set accordingly to make
`read' return the appropriate string.
</content>
</entry>
<entry>
<title>test: Increment mtime when delivering a message with emacs_deliver_message</title>
<updated>2011-06-29T00:10:55Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2011-06-29T00:06:15Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6ea26cfb81c68526b157a213d00b593d4e7b1335'/>
<id>urn:sha1:6ea26cfb81c68526b157a213d00b593d4e7b1335</id>
<content type='text'>
Without this, mail messages delivered by emacs_deliver_message might
not be seen by the next invocation of "notmuch new", (which can lead
to test-suite failures if emacs_deliver_message is fast enough).
</content>
</entry>
<entry>
<title>test:Improve test behaviors when --root is used</title>
<updated>2011-06-28T23:01:56Z</updated>
<author>
<name>Mark Anderson</name>
<email>ma.skies@gmail.com</email>
</author>
<published>2011-06-28T22:11:32Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=eb4cf465a5c179c711c15649fc90c7377850cb77'/>
<id>urn:sha1:eb4cf465a5c179c711c15649fc90c7377850cb77</id>
<content type='text'>
Change add_email_corpus, emacs_deliver_message and tests to use
$TEST_DIRECTORY instead of '..'.

This improves the behavior of the usage of --root=&lt;dir&gt;, as the
assumption of what '..' means will usually be incorrect.

Document -root option in README and update valgrind to work with
-root.
</content>
</entry>
<entry>
<title>test: generate run_emacs script once on test startup</title>
<updated>2011-06-28T22:06:47Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-06-28T04:45:10Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=273d896097830235eca5f1bc87ac03e381280f1c'/>
<id>urn:sha1:273d896097830235eca5f1bc87ac03e381280f1c</id>
<content type='text'>
Instead of generating auxiliary run_emacs script every time
test_emacs is run, do it once in the beginning of the test.

Also, use absolute paths in the script to make it more robust.
</content>
</entry>
<entry>
<title>test: set variables using `let' instead of `setq' in Emacs tests</title>
<updated>2011-06-28T22:06:47Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-06-28T04:45:09Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0cc5483a9cc496bbaa1a6aef03e99b4a7686f779'/>
<id>urn:sha1:0cc5483a9cc496bbaa1a6aef03e99b4a7686f779</id>
<content type='text'>
Using `setq' for setting variables in Emacs tests affect other
tests that may run in the same Emacs environment.  Currently it
works because each test is run in a separate Emacs instance.  But
in the future multiple tests will run in a single Emacs instance.
The patch changes all variables to use `let', so the scope of the
change is limited to a single test.
</content>
</entry>
<entry>
<title>test: wrap and indent test_emacs calls</title>
<updated>2011-06-28T22:06:47Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-06-28T04:45:05Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=caeb05493d5d0c97859cfd6303d8c64071dd69ea'/>
<id>urn:sha1:caeb05493d5d0c97859cfd6303d8c64071dd69ea</id>
<content type='text'>
Most test_emacs calls have long arguments that consist of many
expressions.  Putting them on a single line makes it hard to read
and produces poor diff when they are changed.  The patch puts
every expression in test_emacs calls on a separate line.
</content>
</entry>
<entry>
<title>test: cleanup test_emacs</title>
<updated>2011-06-28T22:06:47Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-06-28T04:45:04Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=dd7572392145ed00f938e276d38d2ab3a1427055'/>
<id>urn:sha1:dd7572392145ed00f938e276d38d2ab3a1427055</id>
<content type='text'>
Move auxiliary function definition and configuration from command
line to test-lib.el.
</content>
</entry>
<entry>
<title>test: do not set `message-signature' in test_emacs</title>
<updated>2011-06-28T22:06:47Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-06-28T04:45:03Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5806c471de1d3893d94fb15ba3a0f4faaaa29ffa'/>
<id>urn:sha1:5806c471de1d3893d94fb15ba3a0f4faaaa29ffa</id>
<content type='text'>
It is no longer needed since tests are run in a temporary home
directory instead of the user's one.
</content>
</entry>
<entry>
<title>fix sum moar typos [comments in source code]</title>
<updated>2011-06-23T22:58:39Z</updated>
<author>
<name>Pieter Praet</name>
<email>pieter@praet.org</email>
</author>
<published>2011-06-20T20:14:21Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=8bb6f7869c4c98190f010d60409938b1c50c5968'/>
<id>urn:sha1:8bb6f7869c4c98190f010d60409938b1c50c5968</id>
<content type='text'>
Various typo fixes in comments within the source code.

Signed-off-by: Pieter Praet &lt;pieter@praet.org&gt;

Edited-by: Carl Worth &lt;cworth@cworth.org&gt; Restricted to just
source-code comments, (and fixed fix of "descriptios" to "descriptors"
rather than "descriptions").
</content>
</entry>
</feed>
