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
This commit is contained in:
parent
34ff5208d4
commit
6124e432a5
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue