Added Flat XOR HD backend to Debian test
Ondřej Nový
7 years ago
2 | 2 |
* New upstream release
|
3 | 3 |
* Upstream moved to official Openstack project
|
4 | 4 |
* Bump liberasurecode-dev dependency to 1.2.0 version
|
|
5 |
* Added Flat XOR HD backend to Debian test
|
5 | 6 |
|
6 | 7 |
-- Ondřej Nový <novy@ondrej.org> Wed, 01 Jun 2016 14:29:00 +0200
|
7 | 8 |
|
0 | |
# Internal
|
|
0 |
# Internal - Reed-Solomon
|
1 | 1 |
Test-Command: python debian/tests/encode-decode.py liberasurecode_rs_vand
|
2 | 2 |
Depends: python-pyeclib
|
3 | 3 |
|
4 | 4 |
Test-Command: python3 debian/tests/encode-decode.py liberasurecode_rs_vand
|
5 | 5 |
Depends: python3-pyeclib
|
6 | 6 |
|
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
|
8 | 15 |
Test-Command: python debian/tests/encode-decode.py jerasure_rs_vand
|
9 | 16 |
Depends: python-pyeclib,
|
10 | 17 |
libjerasure2,
|
2 | 2 |
|
3 | 3 |
input = b'test'
|
4 | 4 |
|
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])
|
6 | 6 |
fragments = ec.encode(input)
|
7 | |
assert ec.decode(fragments[0:2]) == input
|
|
7 |
assert ec.decode(fragments[0:ec.k]) == input
|