]> 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>
Fri, 20 May 2016 02:35:27 +0000 (21:35 -0500)
commit34640f07c91d07f8cf4530aa167ab525b8caf04e
tree2630d7c0f23edaf76903e1f63a8ab7e8204fa99f
parentb8b31ffc2a640fd088269204d412a28ffcd6e651
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