@SkipUnless(svntest.main.fs_has_pack)
def verify_packed(sbox):
    'verify packed with small shards'
    sbox.build()
    patch_format(sbox.repo_dir, shard_size=2)
    sbox.simple_append('iota', 'Line.\n')
    sbox.simple_append('A/D/gamma', 'Another line.\n')
    sbox.simple_commit(message='r2')
    sbox.simple_propset('foo', 'bar', 'iota')
    sbox.simple_propset('foo', 'baz', 'A/mu')
    sbox.simple_commit(message='r3')
    sbox.simple_rm('A/C')
    sbox.simple_copy('A/B/E', 'A/B/E1')
    sbox.simple_move('A/mu', 'A/B/mu')
    sbox.simple_commit(message='r4')
    sbox.simple_propdel('foo', 'A/B/mu')
    sbox.simple_commit(message='r5')
    if (svntest.main.is_fs_type_fsfs and svntest.main.options.fsfs_packing):
        pass
    else:
        expected_output = ['Packing revisions in shard 0...done.\n', 'Packing revisions in shard 1...done.\n', 'Packing revisions in shard 2...done.\n']
        svntest.actions.run_and_verify_svnadmin(expected_output, [], 'pack', sbox.repo_dir)
    if svntest.main.is_fs_log_addressing():
        expected_output = ['* Verifying metadata at revision 0 ...\n', '* Verifying metadata at revision 2 ...\n', '* Verifying metadata at revision 4 ...\n', '* Verifying repository metadata ...\n', '* Verified revision 0.\n', '* Verified revision 1.\n', '* Verified revision 2.\n', '* Verified revision 3.\n', '* Verified revision 4.\n', '* Verified revision 5.\n']
    else:
        expected_output = ['* Verifying repository metadata ...\n', '* Verified revision 0.\n', '* Verified revision 1.\n', '* Verified revision 2.\n', '* Verified revision 3.\n', '* Verified revision 4.\n', '* Verified revision 5.\n']
    svntest.actions.run_and_verify_svnadmin(expected_output, [], 'verify', sbox.repo_dir)
verify packed with small shards
@SkipUnless(svntest.main.fs_has_pack)
def verify_packed(sbox):
    
    sbox.build()
    patch_format(sbox.repo_dir, shard_size=2)
    sbox.simple_append('iota', 'Line.\n')
    sbox.simple_append('A/D/gamma', 'Another line.\n')
    sbox.simple_commit(message='r2')
    sbox.simple_propset('foo', 'bar', 'iota')
    sbox.simple_propset('foo', 'baz', 'A/mu')
    sbox.simple_commit(message='r3')
    sbox.simple_rm('A/C')
    sbox.simple_copy('A/B/E', 'A/B/E1')
    sbox.simple_move('A/mu', 'A/B/mu')
    sbox.simple_commit(message='r4')
    sbox.simple_propdel('foo', 'A/B/mu')
    sbox.simple_commit(message='r5')
    if (svntest.main.is_fs_type_fsfs and svntest.main.options.fsfs_packing):
        pass
    else:
        expected_output = ['Packing revisions in shard 0...done.\n', 'Packing revisions in shard 1...done.\n', 'Packing revisions in shard 2...done.\n']
        svntest.actions.run_and_verify_svnadmin(expected_output, [], 'pack', sbox.repo_dir)
    if svntest.main.is_fs_log_addressing():
        expected_output = ['* Verifying metadata at revision 0 ...\n', '* Verifying metadata at revision 2 ...\n', '* Verifying metadata at revision 4 ...\n', '* Verifying repository metadata ...\n', '* Verified revision 0.\n', '* Verified revision 1.\n', '* Verified revision 2.\n', '* Verified revision 3.\n', '* Verified revision 4.\n', '* Verified revision 5.\n']
    else:
        expected_output = ['* Verifying repository metadata ...\n', '* Verified revision 0.\n', '* Verified revision 1.\n', '* Verified revision 2.\n', '* Verified revision 3.\n', '* Verified revision 4.\n', '* Verified revision 5.\n']
    svntest.actions.run_and_verify_svnadmin(expected_output, [], 'verify', sbox.repo_dir)