dhardy / pippin

a distributed-merge capable database for many small objects
ISC License
78 stars 4 forks source link

Medium sized test repo #42

Open dhardy opened 8 years ago

dhardy commented 8 years ago

We need a repeatable test suite using a medium sized repository (large enough to have a moderate amount of complexity, multiple partitions (when implemented), yet small enough that we can include the whole thing in the main git repo). This should solve part of #13.

Ideas

Many things could cause files to change. We need to know whether element data and metadata is the same when the file format changes, commits go in different log files etc. One test will be whether the loaded partitions are identical (including all history).

We also need to handle different partitioning: to compare with/without partitioning and check that different classification rules do not change the data (from point of view of whole repo).

How is this going to work with Cargo? Ideally we want multiple test binaries but sharing code and data files. Use a cfg to put shared code in the main library? What about temporary data generated during testing — where does that go and when is it cleaned up?

dhardy commented 8 years ago

Tests:

dhardy commented 8 years ago

Generation is now deterministic (seq_create_small), now for testing and operations.