X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=t%2Ftest-sparse-files.sh;h=c4f7d8acdba37626bda06467a5b3e635f91166f7;hb=534c64edcf41a5f57010aec6447dcf5bcb5d2b57;hp=97aef020b24c48ecc3f9962a4fc269b9e5c93f43;hpb=c7139a3fae51633f0f290ebf73f0cf5e4864e547;p=bup.git diff --git a/t/test-sparse-files.sh b/t/test-sparse-files.sh index 97aef02..c4f7d8a 100755 --- a/t/test-sparse-files.sh +++ b/t/test-sparse-files.sh @@ -69,6 +69,16 @@ restore_size=$(WVPASS du -k -s restore | WVPASS cut -f1) || exit $? WVPASS [ "$restore_size" -lt 100 ] WVPASS "$top/t/compare-trees" -c src/ restore/src/ +WVSTART "sparse file restore --sparse (bracketed zero run in buf)" +WVPASS echo 'x' > src/foo +WVPASS dd if=/dev/zero bs=1 count=512 >> src/foo +WVPASS echo 'y' >> src/foo +WVPASS bup index src +WVPASS bup save -n src src +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 (sparse start)" WVPASS dd if=/dev/zero of=src/foo seek=$mb bs=1 count=1 WVPASS echo "end" >> src/foo @@ -93,7 +103,7 @@ WVPASS [ "$restore_size" -lt 100 ] WVPASS "$top/t/compare-trees" -c src/ restore/src/ WVSTART "sparse file restore --sparse (random)" -WVPASS bup random 512k > src/foo +WVPASS bup random 1M > src/foo WVPASS bup index src WVPASS bup save -n src src WVPASS rm -r restore