From e4c48eec2a3fbda80d8a0503a2721df2d9b020a5 Mon Sep 17 00:00:00 2001 From: Tushar Gohad Date: Tue, 12 Jan 2016 16:07:00 -0700 Subject: (Re)Enable flat_xor_hd file EC tests --- test/ec_pyeclib_file_test.sh | 13 ++++++++++--- 1 file 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 -- cgit v1.2.1