From 4b3cd9e91ef6dadd373474b5ee0c8a362e6fde79 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Tue, 19 Apr 2016 22:02:49 +0200 Subject: [PATCH] restore: test --sparse with zeros at 64k boundary bup restore --sparse fails with short zero runs around 64K boundaries. The new testcase reproduces that failure Signed-off-by: Frank Gevaerts Reviewed-by: Rob Browning [rlb@defaultvalue.org: adjust commit summary] --- t/test-sparse-files.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/t/test-sparse-files.sh b/t/test-sparse-files.sh index 54ecb82..f9e10ea 100755 --- a/t/test-sparse-files.sh +++ b/t/test-sparse-files.sh @@ -141,5 +141,20 @@ WVPASS rm -r restore WVPASS bup restore --sparse -C restore "src/latest/$(pwd)/" WVPASS "$top/t/compare-trees" -c src/ restore/src/ +WVSTART "sparse file restore --sparse (short zero runs around boundary)" +WVPASS python > src/foo <