summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTushar Gohad <tushar.gohad@intel.com>2016-01-12 16:07:00 -0700
committerTushar Gohad <tushar.gohad@intel.com>2016-01-12 16:07:00 -0700
commite4c48eec2a3fbda80d8a0503a2721df2d9b020a5 (patch)
tree2ed4bbbc90dc78f4cd0fac7fb2bedea2a5770360
parent42f116e97b489694724e3d8bc52484dcd95ad706 (diff)
downloadpyeclib-e4c48eec2a3fbda80d8a0503a2721df2d9b020a5.tar.gz
(Re)Enable flat_xor_hd file EC tests
-rwxr-xr-xtest/ec_pyeclib_file_test.sh13
1 files changed, 10 insertions, 3 deletions
diff --git a/test/ec_pyeclib_file_test.sh b/test/ec_pyeclib_file_test.sh
index 0d05195..446ad62 100755
--- a/test/ec_pyeclib_file_test.sh
+++ b/test/ec_pyeclib_file_test.sh
@@ -37,7 +37,14 @@ if [ ! -d ${FRAGMENT_DIR} ]; then
mkdir ${FRAGMENT_DIR}
fi
-TYPES="flat_xor_hd jerasure_rs_vand jerasure_rs_cauchy liberasurecode_rs_vand"
+TYPES="
+jerasure_rs_vand
+jerasure_rs_cauchy
+flat_xor_hd_3
+flat_xor_hd_4
+isa_l_rs_vand
+liberasurecode_rs_vand
+"
NUM_DATAS="10 11 12"
RS_NUM_PARITIES="2 3 4"
XOR_NUM_PARITIES="6"
@@ -51,13 +58,13 @@ for TYPE in ${TYPES}; do
rm ${DECODED_DIR}/*
rm ${FRAGMENT_DIR}/*
NUM_PARITIES=${RS_NUM_PARITIES}
- if [[ `echo flat_xor_hd | grep ${TYPE}` ]]; then
+ if [[ ${TYPE} == "flat_xor_hd"* ]]; then
NUM_PARITIES=${XOR_NUM_PARITIES}
fi
for NUM_PARITY in ${NUM_PARITIES}; do
let NUM_TOTAL=$(( NUM_DATA + NUM_PARITY))
FAULT_TOL=${NUM_PARITY}
- if [[ ${TYPE} == "flat_xor_hd" ]]; then
+ if [[ ${TYPE} == "flat_xor_hd"* ]]; then
FAULT_TOL="2"
fi
for file in `cd ${FILES}; echo *; cd ..`; do