test: rearrange the test corpus into subfolders, fix tests
authorJani Nikula <jani@nikula.org>
Sun, 9 Mar 2014 12:25:37 +0000 (14:25 +0200)
committerDavid Bremner <david@tethera.net>
Tue, 11 Mar 2014 22:50:12 +0000 (19:50 -0300)
commitded713c39d8b0221a3b1b2b52a74966c20c3aba8
tree018da27a979738c09760b5fbbda3253cc5ff998f
parent7630f300ba52f4aab22ee696fe1507d0ef9790bc
test: rearrange the test corpus into subfolders, fix tests

We will need this for improved folder search tests, but having some
folders should exercise our code paths better anyway.

Modify the relevant test accordingly to make it pass.

This reorganization triggers a bug in the test suite, namely that it
expects the output of --output=files to be in a certain order. So we
add the fix for that into the same commit.

This mainly involves sorting, although the case --duplicate=$n
requires more subtlety.
29 files changed:
test/T090-search-output.sh
test/corpus/01:2, [moved from test/corpus/cur/01:2, with 100% similarity]
test/corpus/02:2, [moved from test/corpus/cur/02:2, with 100% similarity]
test/corpus/bar/17:2, [moved from test/corpus/cur/17:2, with 100% similarity]
test/corpus/bar/18:2, [moved from test/corpus/cur/18:2, with 100% similarity]
test/corpus/bar/baz/05:2, [moved from test/corpus/cur/05:2, with 100% similarity]
test/corpus/bar/baz/23:2, [moved from test/corpus/cur/23:2, with 100% similarity]
test/corpus/bar/baz/24:2, [moved from test/corpus/cur/24:2, with 100% similarity]
test/corpus/bar/baz/cur/25:2, [moved from test/corpus/cur/25:2, with 100% similarity]
test/corpus/bar/baz/cur/26:2, [moved from test/corpus/cur/26:2, with 100% similarity]
test/corpus/bar/baz/new/27:2, [moved from test/corpus/cur/27:2, with 100% similarity]
test/corpus/bar/baz/new/28:2, [moved from test/corpus/cur/28:2, with 100% similarity]
test/corpus/bar/cur/19:2, [moved from test/corpus/cur/19:2, with 100% similarity]
test/corpus/bar/cur/20:2, [moved from test/corpus/cur/20:2, with 100% similarity]
test/corpus/bar/new/21:2, [moved from test/corpus/cur/21:2, with 100% similarity]
test/corpus/bar/new/22:2, [moved from test/corpus/cur/22:2, with 100% similarity]
test/corpus/foo/06:2, [moved from test/corpus/cur/06:2, with 100% similarity]
test/corpus/foo/baz/11:2, [moved from test/corpus/cur/11:2, with 100% similarity]
test/corpus/foo/baz/12:2, [moved from test/corpus/cur/12:2, with 100% similarity]
test/corpus/foo/baz/cur/13:2, [moved from test/corpus/cur/13:2, with 100% similarity]
test/corpus/foo/baz/cur/14:2, [moved from test/corpus/cur/14:2, with 100% similarity]
test/corpus/foo/baz/new/15:2, [moved from test/corpus/cur/15:2, with 100% similarity]
test/corpus/foo/baz/new/16:2, [moved from test/corpus/cur/16:2, with 100% similarity]
test/corpus/foo/cur/07:2, [moved from test/corpus/cur/07:2, with 100% similarity]
test/corpus/foo/cur/08:2, [moved from test/corpus/cur/08:2, with 100% similarity]
test/corpus/foo/new/03:2, [moved from test/corpus/cur/03:2, with 100% similarity]
test/corpus/foo/new/09:2, [moved from test/corpus/cur/09:2, with 100% similarity]
test/corpus/foo/new/10:2, [moved from test/corpus/cur/10:2, with 100% similarity]
test/corpus/new/04:2, [moved from test/corpus/cur/04:2, with 100% similarity]