test: add database upgrade test from format version 1 to 2
authorJani Nikula <jani@nikula.org>
Tue, 11 Mar 2014 05:42:49 +0000 (07:42 +0200)
committerDavid Bremner <david@tethera.net>
Tue, 11 Mar 2014 22:51:22 +0000 (19:51 -0300)
commit50345d126314463def025a1ad76397551f8cf177
treeba303d0994cd6f190b97c89c271a31c630ca2b37
parentf93fab368399cc27328beea3128b647ddddcb144
test: add database upgrade test from format version 1 to 2

Test the upgrade from probabilistic to boolean folder: terms, and
addition of path: terms.

The test depends on the pre-built test corpus and database tarball and
checksum file being in place. If it's not, the test is skipped. The
mechanism to fetch the test database will be added later.

At the time of writing, a working test database and checksum file is
available at

   http://notmuchmail.org/releases/test-databases/

It has been noted that some non-GNU environments make lack
sha256sum. We leave this portability issue for a followup patch.
test/T530-upgrade.sh [new file with mode: 0755]