]> arthur.barton.de Git - bup.git/commit
restore: add generative --sparse testing
authorRob Browning <rlb@defaultvalue.org>
Sun, 24 Apr 2016 22:52:02 +0000 (17:52 -0500)
committerRob Browning <rlb@defaultvalue.org>
Mon, 25 Apr 2016 00:17:17 +0000 (19:17 -0500)
commitb6e97ce29c7ade5bbe05b07328765c4675cfe4e8
tree3ae11689a051bf233f4663f3af7d0be2ec40c0a8
parent6cc4ba20587026cc399b79b386148b2311f4bdb6
restore: add generative --sparse testing

Add t/sparse-test-data to automatically generate cases that might trip
up "restore --sparse", and use it in test-sparse-files.sh.  This change
causes the current --sparse code to fail if you run enough trials,
but not as quickly as the existing "bup random" based test.

As compared to the existing "bup random" test, this one should evaluate
larger sparse regions much more often.

Thanks to Frank Gevaerts for help evaluating the fix.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
t/sparse-test-data [new file with mode: 0755]
t/test-sparse-files.sh