Codebase list python-pyeclib / 5fb85d3
Added Flat XOR HD backend to Debian test Ondřej Nový 7 years ago
3 changed file(s) with 12 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
22 * New upstream release
33 * Upstream moved to official Openstack project
44 * Bump liberasurecode-dev dependency to 1.2.0 version
5 * Added Flat XOR HD backend to Debian test
56
67 -- Ondřej Nový <novy@ondrej.org> Wed, 01 Jun 2016 14:29:00 +0200
78
0 # Internal
0 # Internal - Reed-Solomon
11 Test-Command: python debian/tests/encode-decode.py liberasurecode_rs_vand
22 Depends: python-pyeclib
33
44 Test-Command: python3 debian/tests/encode-decode.py liberasurecode_rs_vand
55 Depends: python3-pyeclib
66
7 # jerasure
7 # Internal - Flat XOR HD
8 Test-Command: python debian/tests/encode-decode.py flat_xor_hd
9 Depends: python-pyeclib,
10
11 Test-Command: python3 debian/tests/encode-decode.py flat_xor_hd
12 Depends: python3-pyeclib,
13
14 # Jerasure
815 Test-Command: python debian/tests/encode-decode.py jerasure_rs_vand
916 Depends: python-pyeclib,
1017 libjerasure2,
22
33 input = b'test'
44
5 ec = ECDriver(k=2, m=1, ec_type=sys.argv[1])
5 ec = ECDriver(k=3, m=3, hd=3, ec_type=sys.argv[1])
66 fragments = ec.encode(input)
7 assert ec.decode(fragments[0:2]) == input
7 assert ec.decode(fragments[0:ec.k]) == input