]> git.notmuchmail.org Git - notmuch/commit
test: aggregate-results updates
authorTomi Ollila <tomi.ollila@iki.fi>
Mon, 17 May 2021 08:11:09 +0000 (11:11 +0300)
committerDavid Bremner <david@tethera.net>
Mon, 7 Jun 2021 23:16:33 +0000 (20:16 -0300)
commit6f0f83660e222cfdd05b05ad134763a7ab26f097
tree5e95ce0a8fb9a8e02014683782ee96b4d6952173
parent651a1b085be106aa9761c464429d88e34157fc2a
test: aggregate-results updates

notmuch-test will now call aggregate-results.sh with file list
that it compiles based on the test ran, and aggregate-results
will report failure is any of the test files are missing.

With this notmuch-test no longer has to exit in non-parallel
run if some test fail to write its report file -- so it works
as parallel tests in this sense.

Changed test_done() in test-lib.sh write report file in one write(2),
so there is (even) less chance it being partially written. Also,
now it writes 'total' last and aggregate-results.sh expects this
line to exist in all report files for reporting to be successful.

Added 'set -eu' to notmuch-test and modified code to work with
these settings. That makes it harder to get mistakes slipped
into committed code.
test/aggregate-results.sh
test/notmuch-test
test/test-lib.sh