]> git.notmuchmail.org Git - notmuch/commit
test: Rework test-suite input to avoid ulti-command strings
authorCarl Worth <cworth@cworth.org>
Fri, 17 Sep 2010 22:25:39 +0000 (15:25 -0700)
committerCarl Worth <cworth@cworth.org>
Fri, 17 Sep 2010 22:25:39 +0000 (15:25 -0700)
commitc92ad8bf6a7a798f5f0dd2861a6b087873fdf8b6
tree92fc85bc0fb1f54740dca08ae36aee1308815c50
parent222926abe1e221a6239ccb9436968af43e1b6fb2
test: Rework test-suite input to avoid ulti-command strings

The original git test suite works by concatenating many commands into
a very long string (each separated by &&). This is painful to work
with since it prevents the editor from helping by parsing the shell
script, indenting, colorizing, etc.

Instead, we switch this back to something like the original notmuch
test suite, and add two new functions to test-lib.sh
(test_begin_subtest and test_expect_equal) to support these.

This also fixes the test suite to once again display the diff when a
test fails to generate the expected input.
13 files changed:
test/t0001-new.sh
test/t0002-search.sh
test/t0003-json.sh
test/t0004-thread-naming.sh
test/t0005-reply.sh
test/t0006-dump-restore.sh
test/t0007-uuencode.sh
test/t0008-threading-out-of-order.sh
test/t0009-author-reordering.sh
test/t0010-from-line-heuristics.sh
test/t0011-long-msgid.sh
test/t0012-encoding-issues.sh
test/test-lib.sh