<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/test-lib.sh, branch 0.6.1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.6.1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.6.1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2011-06-02T00:46:51Z</updated>
<entry>
<title>test: Create and set temporary home directory</title>
<updated>2011-06-02T00:46:51Z</updated>
<author>
<name>Florian Friesdorf</name>
<email>flo@chaoflow.net</email>
</author>
<published>2011-04-18T17:41:39Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=e584c64c5b0788a3b9c1b22f37eb236bb6da7d0d'/>
<id>urn:sha1:e584c64c5b0788a3b9c1b22f37eb236bb6da7d0d</id>
<content type='text'>
In the master branch in test/emacs two tests access the build users home
directory, so does emacs_deliver_message in the crypto branch.

The tests should not touch the build user's home directory. The patch
creates a directory in the temporary test directory and sets home
accordingly.

In case of a non-existent home directory, the tests are failing without
this patch.

Signed-off-by: Jameson Graef Rollins &lt;jrollins@finestructure.net&gt;
</content>
</entry>
<entry>
<title>test: copy files in test_expect_equal_file instead of moving them</title>
<updated>2011-05-31T22:10:23Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-05-10T03:30:50Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=59a9c36316293b161528097a73c72d5f5ed58781'/>
<id>urn:sha1:59a9c36316293b161528097a73c72d5f5ed58781</id>
<content type='text'>
Before the change, test_expect_equal_file moved files it compared
in case of failure.  The patch changes it to copy the files
instead.  This allows testing non-temporary files which are
stored in git.

Note: the change should not result in new temporary files left
after the tests.  Test_expect_equal_file used to move files only
on failure, so callers had to cleanup them anyway.
</content>
</entry>
<entry>
<title>test: add crypto tests for signature verification and decryption</title>
<updated>2011-05-27T23:22:00Z</updated>
<author>
<name>Jameson Graef Rollins</name>
<email>jrollins@finestructure.net</email>
</author>
<published>2011-05-26T01:01:16Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=627d752501b42326b9016271de33a6cb0fa2dc8c'/>
<id>urn:sha1:627d752501b42326b9016271de33a6cb0fa2dc8c</id>
<content type='text'>
This adds a new "crypto" test script to the test suite to test
PGP/MIME signature verification and message decryption.  Included here
is a test GNUPGHOME with a test secret key (passwordless), and test
for:

  * signing/verification
  * signing/verification with full owner trust
  * verification with signer key unavailable
  * encryption/decryption
  * decryption failure with missing key
  * encryption/decryption + signing/verfifying
  * reply to encrypted message
  * verification of signature from revoked key

These tests are not expected to pass now, but will as crypto
functionality is included.
</content>
</entry>
<entry>
<title>test: add notmuch_show_sanitize_all function that is a little more aggressive.</title>
<updated>2011-05-27T23:18:57Z</updated>
<author>
<name>Jameson Graef Rollins</name>
<email>jrollins@finestructure.net</email>
</author>
<published>2011-05-26T01:01:15Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=18967ef7506566c3b7b5332893a3876da051ca5d'/>
<id>urn:sha1:18967ef7506566c3b7b5332893a3876da051ca5d</id>
<content type='text'>
The old notmuch_show_sanitize function only scrubed part of the
filename.  This one scrubs the full filename, as well as the message
id.
</content>
</entry>
<entry>
<title>test: new test-lib function to test for equality between files</title>
<updated>2011-05-27T23:18:57Z</updated>
<author>
<name>Jameson Graef Rollins</name>
<email>jrollins@finestructure.net</email>
</author>
<published>2011-05-26T01:01:14Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b596fbbcd30c82a6487231f01ba1e4d68bd98275'/>
<id>urn:sha1:b596fbbcd30c82a6487231f01ba1e4d68bd98275</id>
<content type='text'>
We need to be able to test for the presence of a newline at the end of
output.  There's no good way to capture trailing newlines in bash, so
redirecting output to a file is the next best thing.  This new
function should be used when testing for output that is expected to
have trailing newlines.

The next commit will demonstrate the use of this.
</content>
</entry>
<entry>
<title>test: change "#!/bin/bash" to "#!/usr/bin/env bash" enhances portability</title>
<updated>2011-05-27T21:03:28Z</updated>
<author>
<name>Joel Borggrén-Franck</name>
<email>jbf@codehouse.se</email>
</author>
<published>2010-12-01T20:27:52Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=3fa843216c918fe4a6151e55947cf3a7f46fcdb5'/>
<id>urn:sha1:3fa843216c918fe4a6151e55947cf3a7f46fcdb5</id>
<content type='text'>
Change #!/bin/bash at start of tests to "#!/usr/bin/env bash". That way
systems running on bash &lt; 4 can prepend bash &gt;= 4 to path before
running the tests.
</content>
</entry>
<entry>
<title>test: add test-lib.el file with `visible-buffer-string' function</title>
<updated>2011-05-26T21:13:48Z</updated>
<author>
<name>Dmitry Kurochkin</name>
<email>dmitry.kurochkin@gmail.com</email>
</author>
<published>2011-05-26T16:27:58Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5297b361d1c5c7dd62b80da0327c091e4c23b140'/>
<id>urn:sha1:5297b361d1c5c7dd62b80da0327c091e4c23b140</id>
<content type='text'>
The patch adds test-lib.el file for Emacs tests auxiliary stuff.
Currently, it implements two functions: `visible-buffer-string'
and `visible-buffer-substring'.  These are similar to standard
counterparts without "visible-" prefix but exclude invisible
text.  The functions are not used anywhere at the moment but
should be useful for testing hiding/showing in the Emacs
interface.

Edited-by: Carl Worth &lt;cworth@cworth.org&gt; Fixed "basic" test to ignore
new test-lib.el file.
</content>
</entry>
<entry>
<title>Clarify usage of `additional_headers' in test/test-lib.sh:generate_message.</title>
<updated>2011-01-28T05:19:19Z</updated>
<author>
<name>Thomas Schwinge</name>
<email>thomas@schwinge.name</email>
</author>
<published>2011-01-27T09:17:21Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=21e97c50d4f124ba42e8b0b30b296dc012008d46'/>
<id>urn:sha1:21e97c50d4f124ba42e8b0b30b296dc012008d46</id>
<content type='text'>
Signed-off-by: Thomas Schwinge &lt;thomas@schwinge.name&gt;
</content>
</entry>
<entry>
<title>Fix misspelling in a comment.</title>
<updated>2011-01-15T23:37:43Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2011-01-15T22:04:38Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=ac1ba43666456a85d59031beceed2c12ef23b777'/>
<id>urn:sha1:ac1ba43666456a85d59031beceed2c12ef23b777</id>
<content type='text'>
Just a simple change I noticed in passing.
</content>
</entry>
<entry>
<title>test: Leave tmp.&lt;testname&gt; for broken tests</title>
<updated>2010-12-08T00:23:20Z</updated>
<author>
<name>Carl Worth</name>
<email>cworth@cworth.org</email>
</author>
<published>2010-12-07T22:24:00Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b41aab78f2380c79512b1ed953f77acd86414dfb'/>
<id>urn:sha1:b41aab78f2380c79512b1ed953f77acd86414dfb</id>
<content type='text'>
Previously, this directory was only preserved for failing tests. But
it's important to be able to easily debug known-broken tests, so
preserve the actual vs. expected output for those as well.
</content>
</entry>
</feed>
