Codebase list python-pyeclib / e4c48ee
(Re)Enable flat_xor_hd file EC tests Tushar Gohad 8 years ago
1 changed file(s) with 10 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3636 mkdir ${FRAGMENT_DIR}
3737 fi
3838
39 TYPES="flat_xor_hd jerasure_rs_vand jerasure_rs_cauchy liberasurecode_rs_vand"
39 TYPES="
40 jerasure_rs_vand
41 jerasure_rs_cauchy
42 flat_xor_hd_3
43 flat_xor_hd_4
44 isa_l_rs_vand
45 liberasurecode_rs_vand
46 "
4047 NUM_DATAS="10 11 12"
4148 RS_NUM_PARITIES="2 3 4"
4249 XOR_NUM_PARITIES="6"
5057 rm ${DECODED_DIR}/*
5158 rm ${FRAGMENT_DIR}/*
5259 NUM_PARITIES=${RS_NUM_PARITIES}
53 if [[ `echo flat_xor_hd | grep ${TYPE}` ]]; then
60 if [[ ${TYPE} == "flat_xor_hd"* ]]; then
5461 NUM_PARITIES=${XOR_NUM_PARITIES}
5562 fi
5663 for NUM_PARITY in ${NUM_PARITIES}; do
5764 let NUM_TOTAL=$(( NUM_DATA + NUM_PARITY))
5865 FAULT_TOL=${NUM_PARITY}
59 if [[ ${TYPE} == "flat_xor_hd" ]]; then
66 if [[ ${TYPE} == "flat_xor_hd"* ]]; then
6067 FAULT_TOL="2"
6168 fi
6269 for file in `cd ${FILES}; echo *; cd ..`; do