<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/T070-insert.sh, branch 0.22_rc0</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=0.22_rc0</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=0.22_rc0'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2015-08-07T19:56:39Z</updated>
<entry>
<title>test: make script exit (1) if it "fails" to source (.) a file</title>
<updated>2015-08-07T19:56:39Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2015-08-06T09:13:36Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=02a2eeb427d6b424029f6e5e5ddad4c6ec987741'/>
<id>urn:sha1:02a2eeb427d6b424029f6e5e5ddad4c6ec987741</id>
<content type='text'>
The files (test) scripts source (with builtin command `.`) provides
information which the scripts depend, and without the `source` to
succeed allowing script to continue may lead to dangerous situations
(e.g. rm -rf "${undefined_variable}"/*).

At the end of all source (.) lines construct ' || exit 1' was added;
In our case the script script will exit if it cannot find (or read) the
file to be sourced. Additionally script would also exits if the last
command of the sourced file exited nonzero.
</content>
</entry>
<entry>
<title>lib: add NOTMUCH_STATUS_PATH_ERROR</title>
<updated>2015-06-12T05:34:47Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2015-06-10T05:58:44Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b59ad1a9cc6ea03764b1cd3d038920581ac5a9c4'/>
<id>urn:sha1:b59ad1a9cc6ea03764b1cd3d038920581ac5a9c4</id>
<content type='text'>
The difference with FILE_ERROR is that this is for things that are
wrong with the path before looking at the disk.

Add some 3 tests; two broken as a reminder to actually use this new
code.
</content>
</entry>
<entry>
<title>test: remove redundant 'file' command from gdb scripts.</title>
<updated>2015-05-31T16:56:10Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2015-05-31T16:56:10Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5df1b1bb81b1983578e636ac62000e280d241139'/>
<id>urn:sha1:5df1b1bb81b1983578e636ac62000e280d241139</id>
<content type='text'>
Quoting Debian bug 787341

   It failed to build on arm64: the last ten tests in T070-insert
   failed.

   What's happening here is that GDB is segfaulting in response to
   the
   "file" command. GDB on arm64 can be a bit buggy.

   However, the "file" command is redundant here as GDB has already
   got
   the file from the --args on the command line.
</content>
</entry>
<entry>
<title>test: check for gdb in insert tests</title>
<updated>2014-10-18T06:13:42Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2014-10-18T06:13:42Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=dd8373fb571f93cf3bf824777e00278979ef2e21'/>
<id>urn:sha1:dd8373fb571f93cf3bf824777e00278979ef2e21</id>
<content type='text'>
Commits a6cee01 and c48b12f otherwise break the build for people
without gdb.
</content>
</entry>
<entry>
<title>test/insert: check that indexing errors are accepted with --keep</title>
<updated>2014-10-18T05:58:42Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2014-10-03T21:19:00Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=c48b12f18a4b9e0b46ec40ad7bab19a8086493fd'/>
<id>urn:sha1:c48b12f18a4b9e0b46ec40ad7bab19a8086493fd</id>
<content type='text'>
This is overkill for the current code path, but should provide some
robustness for future changes in error handling.
</content>
</entry>
<entry>
<title>cli/insert: require succesful message indexing for success status</title>
<updated>2014-10-18T05:54:25Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2014-10-03T21:18:59Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=dc20a0eedc80477c0db7b7dea9efef90860ec9fb'/>
<id>urn:sha1:dc20a0eedc80477c0db7b7dea9efef90860ec9fb</id>
<content type='text'>
Add --keep option to keep any remaining stuff in index or file. We
could distinguish between failures to index and failures to apply tags
or maildir sync, but for simplicity just have one.
</content>
</entry>
<entry>
<title>test/insert: add known broken tests for indexing failures</title>
<updated>2014-10-18T05:51:18Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2014-10-03T21:18:57Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a6cee01b4e537e22b008f838d4af4e9d2f012f22'/>
<id>urn:sha1:a6cee01b4e537e22b008f838d4af4e9d2f012f22</id>
<content type='text'>
These tests are written with the assumption that we want all indexing
failures to be considered as failures by notmuch insert.
</content>
</entry>
<entry>
<title>test: make insert test use the path: prefix</title>
<updated>2014-03-11T22:51:22Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2014-01-06T21:48:24Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=2a865351dd44fea69a580978baf325353b13d4cb'/>
<id>urn:sha1:2a865351dd44fea69a580978baf325353b13d4cb</id>
<content type='text'>
This is a more strict test for the insert test.
</content>
</entry>
<entry>
<title>test: add tests for invalid new.tags</title>
<updated>2014-03-06T11:42:37Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2014-02-23T16:55:23Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=07fdac912f8b60d1de085e2733cc72eaee6707b8'/>
<id>urn:sha1:07fdac912f8b60d1de085e2733cc72eaee6707b8</id>
<content type='text'>
Similar tests for both notmuch new and insert.
</content>
</entry>
<entry>
<title>test: renamed test scripts to format T\d\d\d-name.sh</title>
<updated>2014-01-13T18:16:46Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2014-01-09T15:18:59Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=a755c9d6a9099366cc82ba3a4bee8e6d2b83d529'/>
<id>urn:sha1:a755c9d6a9099366cc82ba3a4bee8e6d2b83d529</id>
<content type='text'>
All test scripts to be executed are now named as T\d\d\d-name.sh,
numers in increments of 10.

This eases adding new tests and developers to see which are test scripts
that are executed by test suite and in which order.
</content>
</entry>
</feed>
