libgit2/tests/odb
Patrick Steinhardt f148258a35 tests: odb: add tests with multiple backends
Previous to pulling out and extending the fake backend, it was quite
cumbersome to write tests for very specific scenarios regarding
backends. But as we have made it more generic, it has become much easier
to do so. As such, this commit adds multiple tests for scenarios with
multiple backends for the ODB.

The changes also include a test for a very targeted scenario. When one
backend found a matching object via `read_prefix`, but the last backend
returns `GIT_ENOTFOUND` and when object hash verification is turned off,
we fail to reset the error code to `GIT_OK`. This causes us to segfault
later on, when doing a double-free on the returned object.
2017-06-12 17:24:53 +02:00
..
backend tests: odb: add tests with multiple backends 2017-06-12 17:24:53 +02:00
alternates.c git_futils_mkdir_*: make a relative-to-base mkdir 2015-09-17 10:00:35 -04:00
emptyobjects.c odb: only provide the empty tree 2016-08-05 19:30:56 -04:00
foreach.c revwalk: introduce tests that hide old commits 2016-10-06 11:04:55 +02:00
freshen.c win32: enable p_utimes for readonly files 2017-04-05 11:04:29 +01:00
loose_data.h Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
loose.c settings: rename GIT_OPT_ENABLE_SYNCHRONOUS_OBJECT_CREATION 2017-06-08 21:40:18 +02:00
mixed.c odb: Handle corner cases in git_odb_expand_ids 2016-03-09 11:00:27 +01:00
pack_data_one.h Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
pack_data.h Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
packed_one.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
packed.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00
sorting.c odb: Prioritize alternate backends 2015-10-14 20:53:01 +02:00
streamwrite.c Rename tests-clar to tests 2013-11-14 14:05:52 -08:00