From: Brandon Low Date: Thu, 17 Feb 2011 04:09:47 +0000 (-0800) Subject: Add tests around the bloom ruin and check options X-Git-Tag: bup-0.23a~9 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=commitdiff_plain;h=34f859bf2a163667f2041b04e373b54ac01b9fc0 Add tests around the bloom ruin and check options This generally improves our test coverage of bloom filter behavior and more specifically makes sure that check and ruin do something. Signed-off-by: Brandon Low --- diff --git a/t/test.sh b/t/test.sh index 878dbb5..c9474f0 100755 --- a/t/test.sh +++ b/t/test.sh @@ -160,6 +160,17 @@ WVFAIL diff tags2t.tmp tags2tf.tmp wc -c t/testfile1 t/testfile2 wc -l tags1.tmp tags2.tmp +WVSTART "bloom" +WVPASS bup bloom -c $(ls -1 $BUP_DIR/objects/pack/*.idx|head -n1) +rm $BUP_DIR/objects/pack/bup.bloom +WVPASS bup bloom -k 4 +WVPASS bup bloom -c $(ls -1 $BUP_DIR/objects/pack/*.idx|head -n1) +WVPASS bup bloom -d buptest.tmp/objects/pack --ruin --force +WVFAIL bup bloom -c $(ls -1 $BUP_DIR/objects/pack/*.idx|head -n1) +WVPASS bup bloom --force -k 5 +WVPASS bup bloom -c $(ls -1 $BUP_DIR/objects/pack/*.idx|head -n1) + +WVSTART "memtest" WVPASS bup memtest -c1 -n100 WVPASS bup memtest -c1 -n100 --existing