summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTushar Gohad <tushar.gohad@intel.com>2015-09-08 02:04:01 -0700
committerTushar Gohad <tushar.gohad@intel.com>2015-09-08 09:24:32 +0000
commit51737a984feb2f4bf0958d205ddfb91674a9ba4c (patch)
treee8fe6162d8a6fc04f9012f5ece789aefcf148621 /test
parent0103f6886f6f2048cfc996149a15b710116ec56d (diff)
downloadpyeclib-51737a984feb2f4bf0958d205ddfb91674a9ba4c.tar.gz
Allow 'flat_xor_hd_4' from external API
Add 'hd' argument back to the internal API
Diffstat (limited to 'test')
-rw-r--r--test/test_pyeclib_api.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/test_pyeclib_api.py b/test/test_pyeclib_api.py
index f16ecbc..3244bcd 100644
--- a/test/test_pyeclib_api.py
+++ b/test/test_pyeclib_api.py
@@ -150,11 +150,17 @@ class TestPyECLibDriver(unittest.TestCase):
chksum_type=csum))
pyeclib_drivers.append(ECDriver(k=8, m=4, ec_type=_type2,
chksum_type=csum))
- _type3 = 'flat_xor_hd'
- if _type3 in _available_backends:
- pyeclib_drivers.append(ECDriver(k=12, m=6, ec_type=_type3,
+ _type3_1 = 'flat_xor_hd'
+ if _type3_1 in _available_backends:
+ pyeclib_drivers.append(ECDriver(k=12, m=6, ec_type=_type3_1,
chksum_type=csum))
- pyeclib_drivers.append(ECDriver(k=10, m=5, ec_type=_type3,
+ pyeclib_drivers.append(ECDriver(k=10, m=5, ec_type=_type3_1,
+ chksum_type=csum))
+ _type3_2 = 'flat_xor_hd_4'
+ if _type3_2 in _available_backends:
+ pyeclib_drivers.append(ECDriver(k=12, m=6, ec_type=_type3_2,
+ chksum_type=csum))
+ pyeclib_drivers.append(ECDriver(k=10, m=5, ec_type=_type3_2,
chksum_type=csum))
_type4 = 'shss'
if _type4 in _available_backends: