]> git.notmuchmail.org Git - notmuch/commit
test: make it possible to have multiple corpora
authorJani Nikula <jani@nikula.org>
Tue, 13 Sep 2016 17:14:08 +0000 (20:14 +0300)
committerDavid Bremner <david@tethera.net>
Sat, 17 Sep 2016 11:39:34 +0000 (08:39 -0300)
commit971cdc72cdb80f060193bc0914dc9badcc29696b
treef9d074ee0fdd271b1ca8578b8c03fa573f9be82b
parent89c8d279480aa618bed5ef074f9166dbf818e6eb
test: make it possible to have multiple corpora

We largely use the corpus under test/corpus for
testing. Unfortunately, many of our tests have grown to depend on
having exactly this set of messages, making it hard to add new message
files for testing specific cases.

We do use a lot of add_message from within the tests, but it's not
possible to use that for adding broken messages, and adding several
messages at once can get unwieldy.

Move the basic corpus under tests/corpora/default, and make it
possible to add new, independent corpora along its side. This means
tons of renames with a few tweaks to add_email_corpus function in
test-lib.sh to let tests specify which corpus to use.
107 files changed:
test/corpora/default/01:2, [new file with mode: 0644]
test/corpora/default/02:2, [new file with mode: 0644]
test/corpora/default/bar/17:2, [new file with mode: 0644]
test/corpora/default/bar/18:2, [new file with mode: 0644]
test/corpora/default/bar/baz/05:2, [new file with mode: 0644]
test/corpora/default/bar/baz/23:2, [new file with mode: 0644]
test/corpora/default/bar/baz/24:2, [new file with mode: 0644]
test/corpora/default/bar/baz/cur/25:2, [new file with mode: 0644]
test/corpora/default/bar/baz/cur/26:2, [new file with mode: 0644]
test/corpora/default/bar/baz/new/27:2, [new file with mode: 0644]
test/corpora/default/bar/baz/new/28:2, [new file with mode: 0644]
test/corpora/default/bar/cur/19:2, [new file with mode: 0644]
test/corpora/default/bar/cur/20:2, [new file with mode: 0644]
test/corpora/default/bar/new/21:2, [new file with mode: 0644]
test/corpora/default/bar/new/22:2, [new file with mode: 0644]
test/corpora/default/cur/29:2, [new file with mode: 0644]
test/corpora/default/cur/30:2, [new file with mode: 0644]
test/corpora/default/cur/31:2, [new file with mode: 0644]
test/corpora/default/cur/32:2, [new file with mode: 0644]
test/corpora/default/cur/33:2, [new file with mode: 0644]
test/corpora/default/cur/34:2, [new file with mode: 0644]
test/corpora/default/cur/35:2, [new file with mode: 0644]
test/corpora/default/cur/36:2, [new file with mode: 0644]
test/corpora/default/cur/37:2, [new file with mode: 0644]
test/corpora/default/cur/38:2, [new file with mode: 0644]
test/corpora/default/cur/39:2, [new file with mode: 0644]
test/corpora/default/cur/40:2, [new file with mode: 0644]
test/corpora/default/cur/41:2, [new file with mode: 0644]
test/corpora/default/cur/42:2, [new file with mode: 0644]
test/corpora/default/cur/43:2, [new file with mode: 0644]
test/corpora/default/cur/44:2, [new file with mode: 0644]
test/corpora/default/cur/45:2, [new file with mode: 0644]
test/corpora/default/cur/46:2, [new file with mode: 0644]
test/corpora/default/cur/47:2, [new file with mode: 0644]
test/corpora/default/cur/48:2, [new file with mode: 0644]
test/corpora/default/cur/49:2, [new file with mode: 0644]
test/corpora/default/cur/50:2, [new file with mode: 0644]
test/corpora/default/cur/51:2, [new file with mode: 0644]
test/corpora/default/cur/52:2, [new file with mode: 0644]
test/corpora/default/cur/53:2, [new file with mode: 0644]
test/corpora/default/foo/06:2, [new file with mode: 0644]
test/corpora/default/foo/baz/11:2, [new file with mode: 0644]
test/corpora/default/foo/baz/12:2, [new file with mode: 0644]
test/corpora/default/foo/baz/cur/13:2, [new file with mode: 0644]
test/corpora/default/foo/baz/cur/14:2, [new file with mode: 0644]
test/corpora/default/foo/baz/new/15:2, [new file with mode: 0644]
test/corpora/default/foo/baz/new/16:2, [new file with mode: 0644]
test/corpora/default/foo/cur/07:2, [new file with mode: 0644]
test/corpora/default/foo/cur/08:2, [new file with mode: 0644]
test/corpora/default/foo/new/03:2, [new file with mode: 0644]
test/corpora/default/foo/new/09:2, [new file with mode: 0644]
test/corpora/default/foo/new/10:2, [new file with mode: 0644]
test/corpora/default/new/04:2, [new file with mode: 0644]
test/corpus/01:2, [deleted file]
test/corpus/02:2, [deleted file]
test/corpus/bar/17:2, [deleted file]
test/corpus/bar/18:2, [deleted file]
test/corpus/bar/baz/05:2, [deleted file]
test/corpus/bar/baz/23:2, [deleted file]
test/corpus/bar/baz/24:2, [deleted file]
test/corpus/bar/baz/cur/25:2, [deleted file]
test/corpus/bar/baz/cur/26:2, [deleted file]
test/corpus/bar/baz/new/27:2, [deleted file]
test/corpus/bar/baz/new/28:2, [deleted file]
test/corpus/bar/cur/19:2, [deleted file]
test/corpus/bar/cur/20:2, [deleted file]
test/corpus/bar/new/21:2, [deleted file]
test/corpus/bar/new/22:2, [deleted file]
test/corpus/cur/29:2, [deleted file]
test/corpus/cur/30:2, [deleted file]
test/corpus/cur/31:2, [deleted file]
test/corpus/cur/32:2, [deleted file]
test/corpus/cur/33:2, [deleted file]
test/corpus/cur/34:2, [deleted file]
test/corpus/cur/35:2, [deleted file]
test/corpus/cur/36:2, [deleted file]
test/corpus/cur/37:2, [deleted file]
test/corpus/cur/38:2, [deleted file]
test/corpus/cur/39:2, [deleted file]
test/corpus/cur/40:2, [deleted file]
test/corpus/cur/41:2, [deleted file]
test/corpus/cur/42:2, [deleted file]
test/corpus/cur/43:2, [deleted file]
test/corpus/cur/44:2, [deleted file]
test/corpus/cur/45:2, [deleted file]
test/corpus/cur/46:2, [deleted file]
test/corpus/cur/47:2, [deleted file]
test/corpus/cur/48:2, [deleted file]
test/corpus/cur/49:2, [deleted file]
test/corpus/cur/50:2, [deleted file]
test/corpus/cur/51:2, [deleted file]
test/corpus/cur/52:2, [deleted file]
test/corpus/cur/53:2, [deleted file]
test/corpus/foo/06:2, [deleted file]
test/corpus/foo/baz/11:2, [deleted file]
test/corpus/foo/baz/12:2, [deleted file]
test/corpus/foo/baz/cur/13:2, [deleted file]
test/corpus/foo/baz/cur/14:2, [deleted file]
test/corpus/foo/baz/new/15:2, [deleted file]
test/corpus/foo/baz/new/16:2, [deleted file]
test/corpus/foo/cur/07:2, [deleted file]
test/corpus/foo/cur/08:2, [deleted file]
test/corpus/foo/new/03:2, [deleted file]
test/corpus/foo/new/09:2, [deleted file]
test/corpus/foo/new/10:2, [deleted file]
test/corpus/new/04:2, [deleted file]
test/test-lib.sh