<feed xmlns='http://www.w3.org/2005/Atom'>
<title>notmuch/test/T000-basic.sh, branch debian/0.25-1</title>
<subtitle>thread-based email index, search, and tagging</subtitle>
<id>https://git.notmuchmail.org/git/notmuch/atom?h=debian%2F0.25-1</id>
<link rel='self' href='https://git.notmuchmail.org/git/notmuch/atom?h=debian%2F0.25-1'/>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/'/>
<updated>2017-03-09T13:03:40Z</updated>
<entry>
<title>test: require test_begin_subtest before test_expect_code</title>
<updated>2017-03-09T13:03:40Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-02-26T13:43:01Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=0497d695ca796c4d19ad5ec08788bbb1f400c58c'/>
<id>urn:sha1:0497d695ca796c4d19ad5ec08788bbb1f400c58c</id>
<content type='text'>
Unify the subtests by requiring test_begin_subtest before
test_expect_code. (Similar change for test_expect_success has already
been done.)

This increases clarity in the test scripts by having a separate line
for the start of the subtest with the heading, and makes it possible
to simplify the test infrastructure by making all subtests similar.
</content>
</entry>
<entry>
<title>test: require test_begin_subtest before test_expect_success</title>
<updated>2017-03-09T13:01:21Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-02-26T13:43:00Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=d0cd253b37646d9364d046e1d3edb022a58c105a'/>
<id>urn:sha1:d0cd253b37646d9364d046e1d3edb022a58c105a</id>
<content type='text'>
Unify the subtests by requiring test_begin_subtest before
test_expect_success. (Similar change for test_expect_code will
follow.)

This increases clarity in the test scripts by having a separate line
for the start of the subtest with the heading, and makes it possible
to simplify the test infrastructure by making all subtests similar.
</content>
</entry>
<entry>
<title>test: drop the implicit prereq check mechanism from test_expect_*</title>
<updated>2017-03-09T13:00:16Z</updated>
<author>
<name>Jani Nikula</name>
<email>jani@nikula.org</email>
</author>
<published>2017-02-26T13:42:59Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=b8f12bd3717aa446ef04197734af7a055e6909fe'/>
<id>urn:sha1:b8f12bd3717aa446ef04197734af7a055e6909fe</id>
<content type='text'>
The only place where we use the implicit prereq check is T000-basic.sh
where we check that it works. It's an added complication that we don't
use. Remove it.

The test_have_prereq function can still be used for the same effect in
subtests that use test_begin_subtest. For now, this will make it
impossible to have prereqs in one-line subtests that don't require
test_begin_subtest. This will be fixed in follow-up work.
</content>
</entry>
<entry>
<title>test/T000-basic: replaced use of which(1) with shell builtin command -v</title>
<updated>2016-10-12T01:43:17Z</updated>
<author>
<name>Tomi Ollila</name>
<email>tomi.ollila@iki.fi</email>
</author>
<published>2016-10-09T18:48:29Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=6a3ce94aaf637db0308e87354b013ad7fd54705d'/>
<id>urn:sha1:6a3ce94aaf637db0308e87354b013ad7fd54705d</id>
<content type='text'>
Some minimal chroot/container environments don't have which(1) installed.
</content>
</entry>
<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>configure: add debug flags by default.</title>
<updated>2014-10-05T05:27:49Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2014-10-03T20:22:10Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=68dd804544378e6b27630ea207801a0d569039a3'/>
<id>urn:sha1:68dd804544378e6b27630ea207801a0d569039a3</id>
<content type='text'>
This makes development (in particular the test suite) easier. Those
concerned about the extra diskspace can override the default or use
strip.
</content>
</entry>
<entry>
<title>test: check for debug symbols in notmuch</title>
<updated>2014-10-05T05:24:56Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2014-10-03T20:22:09Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=5916c4634c7f36a42b59c261b4fb76212fbc4c96'/>
<id>urn:sha1:5916c4634c7f36a42b59c261b4fb76212fbc4c96</id>
<content type='text'>
In the future, tests may rely on debug symbols being present in
notmuch, so we plan to switch the default flags.

The main purpose of this test is to help explain the perhaps
mysterious failures of other tests which rely on symbols being
present.
</content>
</entry>
<entry>
<title>test: use test_expect_equal for PATH test, update message</title>
<updated>2014-04-17T22:53:57Z</updated>
<author>
<name>David Bremner</name>
<email>david@tethera.net</email>
</author>
<published>2014-04-13T12:42:49Z</published>
<link rel='alternate' type='text/html' href='https://git.notmuchmail.org/git/notmuch/commit/?id=320f86c30a51017c2afd1b5ac02aaf2cb0affcd7'/>
<id>urn:sha1:320f86c30a51017c2afd1b5ac02aaf2cb0affcd7</id>
<content type='text'>
- The old test was quite impossible to debug; the new one shows the difference
  between the two directories, if any.

- "repository" doesn't make sense for out of tree builds. Or tarball
  builds, for that matter.
</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>
