diff options
author | Tim Burke <tim.burke@gmail.com> | 2017-02-25 14:58:45 +0000 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2017-07-13 13:22:07 -0700 |
commit | 6124e432a500837e918923d0688a986124088c29 (patch) | |
tree | 70592ef5d160774350ac8400fbc61bbeccf682ad | |
parent | 34ff5208d426d61f9911caf237bb5deb884588df (diff) | |
download | liberasurecode-6124e432a500837e918923d0688a986124088c29.tar.gz |
Use more backends in existing tests
This allows us to start defining test suites for common capabilities /
allowed failure modes.
Null Backend:
test_decode_with_missing_parity
test_decode_with_missing_multi_parity
Jerasure RS Vand:
test_decode_with_missing_parity
Jerasure RS Cauchy:
test_decode_with_missing_parity
ISA-L RS Vand:
test_decode_with_missing_parity
test_get_fragment_metadata_crc32
ISA-L RS Cauchy:
test_decode_with_missing_parity
test_get_fragment_metadata_crc32
SHSS:
test_decode_with_missing_parity
test_get_fragment_metadata_crc32
liberasurecode RS Vand:
test_decode_with_missing_parity
Change-Id: I9ee9ec3d8f86a10c4c7b5d6425a530b9c44d1156
-rw-r--r-- | test/liberasurecode_test.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/test/liberasurecode_test.c b/test/liberasurecode_test.c index 1e75eb1..77c8419 100644 --- a/test/liberasurecode_test.c +++ b/test/liberasurecode_test.c @@ -1852,6 +1852,14 @@ struct testcase testcases[] = { test_get_fragment_metadata, EC_BACKEND_NULL, CHKSUM_NONE, .skip = false}, + {"test_decode_with_missing_parity", + test_decode_with_missing_parity, + EC_BACKEND_NULL, CHKSUM_NONE, + .skip = false}, + {"test_decode_with_missing_multi_parity", + test_decode_with_missing_multi_parity, + EC_BACKEND_NULL, CHKSUM_NONE, + .skip = false}, // Flat XOR backend tests {"test_create_and_destroy_backend", test_create_and_destroy_backend, @@ -1934,6 +1942,10 @@ struct testcase testcases[] = { test_decode_with_missing_data, EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE, .skip = false}, + {"test_decode_with_missing_parity", + test_decode_with_missing_parity, + EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE, + .skip = false}, {"test_decode_with_missing_multi_data", test_decode_with_missing_multi_data, EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE, @@ -2003,6 +2015,10 @@ struct testcase testcases[] = { test_decode_with_missing_data, EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE, .skip = false}, + {"test_decode_with_missing_parity", + test_decode_with_missing_parity, + EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE, + .skip = false}, {"test_decode_with_missing_multi_data", test_decode_with_missing_multi_data, EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE, @@ -2072,6 +2088,10 @@ struct testcase testcases[] = { test_decode_with_missing_data, EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, .skip = false}, + {"test_decode_with_missing_parity", + test_decode_with_missing_parity, + EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, + .skip = false}, {"test_decode_with_missing_multi_data", test_decode_with_missing_multi_data, EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, @@ -2096,6 +2116,10 @@ struct testcase testcases[] = { test_get_fragment_metadata, EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, .skip = false}, + {"test_get_fragment_metadata_crc32", + test_get_fragment_metadata, + EC_BACKEND_ISA_L_RS_VAND, CHKSUM_CRC32, + .skip = false}, {"test_verify_stripe_metadata", test_verify_stripe_metadata, EC_BACKEND_ISA_L_RS_VAND, CHKSUM_CRC32, @@ -2137,6 +2161,10 @@ struct testcase testcases[] = { test_decode_with_missing_data, EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, .skip = false}, + {"test_decode_with_missing_parity", + test_decode_with_missing_parity, + EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, + .skip = false}, {"test_decode_with_missing_multi_data", test_decode_with_missing_multi_data, EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, @@ -2161,6 +2189,10 @@ struct testcase testcases[] = { test_get_fragment_metadata, EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, .skip = false}, + {"test_get_fragment_metadata_crc32", + test_get_fragment_metadata, + EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_CRC32, + .skip = false}, {"test_verify_stripe_metadata", test_verify_stripe_metadata, EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_CRC32, @@ -2198,6 +2230,10 @@ struct testcase testcases[] = { test_decode_with_missing_data, EC_BACKEND_SHSS, CHKSUM_NONE, .skip = false}, + {"test_decode_with_missing_parity", + test_decode_with_missing_parity, + EC_BACKEND_SHSS, CHKSUM_NONE, + .skip = false}, {"test_decode_with_missing_multi_data", test_decode_with_missing_multi_data, EC_BACKEND_SHSS, CHKSUM_NONE, @@ -2222,6 +2258,10 @@ struct testcase testcases[] = { test_get_fragment_metadata, EC_BACKEND_SHSS, CHKSUM_NONE, .skip = false}, + {"test_get_fragment_metadata_crc32", + test_get_fragment_metadata, + EC_BACKEND_SHSS, CHKSUM_CRC32, + .skip = false}, {"test_verify_stripe_metadata", test_verify_stripe_metadata, EC_BACKEND_SHSS, CHKSUM_CRC32, @@ -2259,6 +2299,10 @@ struct testcase testcases[] = { test_decode_with_missing_data, EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE, .skip = false}, + {"test_decode_with_missing_parity", + test_decode_with_missing_parity, + EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE, + .skip = false}, {"test_decode_with_missing_multi_data", test_decode_with_missing_multi_data, EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE, |