]> git.ipfire.org Git - thirdparty/git.git/commit
t/lib-bitmap.sh: parameterize tests over reverse index source
authorTaylor Blau <me@ttaylorr.com>
Tue, 25 Jan 2022 22:41:15 +0000 (17:41 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Jan 2022 20:07:53 +0000 (12:07 -0800)
commita80f0f91b1d6586abe0b37d19c0bd60ce1843571
tree6d342b015e50758fab019ad8c819a9764e5f7031
parent791170fa2b23cfc49ae0e5949b1f301431a6058b
t/lib-bitmap.sh: parameterize tests over reverse index source

To prepare for reading the reverse index data out of the MIDX itself,
teach the `test_rev_exists` function to take an expected "source" for
the reverse index data.

When given "rev", it asserts that the MIDX's `.rev` file exists, and is
loaded when verifying the integrity of its bitmaps. Otherwise, it
ensures that trace2 reports the source of the reverse index data as the
same string which was given to test_rev_exists().

The following patch will implement reading the reverse index data from
the MIDX itself.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Reviewed-by: Derrick Stolee <dstolee@microsoft.com>
Reviewed-by: Jonathan Tan <jonathantanmy@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-bitmap.sh