n_wrong_size += 1
if debug_level:
- print(prefix + 'compression ratio (input/compressed size): {:.1f}'
+ print(prefix + 'compression ratio (input/compressed size): {:.2f}'
.format(added_size/volume_size_sum))
if n_wrong_size > 1:
return something_strange
-def test_lots(fast_fail=False):
+def test_lots(fast_fail=False, debug_level=0, clean_up_if_error=False):
""" Tests a lot of combinations of volume_size, input_size and mode
:param bool fast_fail: set to True to stop after first error
modes = 'w|gz', 'w|bz2', 'w|xz', 'w#gz', 'w#gz.aes128', 'w#gz.aes256', \
'w#aes128'
- debug_level = 2
- clean_up_if_error = False
-
# create a temp dir for all input and output data
temp_dir = mkdtemp(prefix='deltatar_cmprs_tst_')
n_errs = 0