diff --git a/test/liberasurecode_test.c b/test/liberasurecode_test.c index e62df94..63c0c7a 100644 --- a/test/liberasurecode_test.c +++ b/test/liberasurecode_test.c @@ -1787,7 +1787,7 @@ struct testcase testcases[] = { test_create_backend_invalid_args, EC_BACKENDS_MAX, CHKSUM_TYPES_MAX, .skip = false}, - {"test_create_backend_invalid_args", + {"test_destroy_backend_invalid_args", test_destroy_backend_invalid_args, EC_BACKENDS_MAX, CHKSUM_TYPES_MAX, .skip = false}, @@ -1836,11 +1836,11 @@ struct testcase testcases[] = { EC_BACKENDS_MAX, 0, .skip = false}, // NULL backend test - {"create_and_destroy_backend", + {"test_create_and_destroy_backend", test_create_and_destroy_backend, EC_BACKEND_NULL, CHKSUM_NONE, .skip = false}, - {"simple_encode_null", + {"test_simple_encode_null", test_simple_encode_decode, EC_BACKEND_NULL, CHKSUM_NONE, .skip = false}, @@ -1849,47 +1849,47 @@ struct testcase testcases[] = { EC_BACKEND_NULL, CHKSUM_NONE, .skip = false}, // Flat XOR backend tests - {"create_and_destroy_backend", + {"test_create_and_destroy_backend", test_create_and_destroy_backend, EC_BACKEND_FLAT_XOR_HD, CHKSUM_NONE, .skip = false}, - {"simple_encode_flat_xor_hd", + {"test_simple_encode_decode", test_simple_encode_decode, EC_BACKEND_FLAT_XOR_HD, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_data_flat_xor_hd", + {"test_decode_with_missing_data", test_decode_with_missing_data, EC_BACKEND_FLAT_XOR_HD, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_parity_flat_xor_hd", + {"test_decode_with_missing_parity", test_decode_with_missing_parity, EC_BACKEND_FLAT_XOR_HD, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_multi_data_flat_xor_hd", + {"test_decode_with_missing_multi_data", test_decode_with_missing_multi_data, EC_BACKEND_FLAT_XOR_HD, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_multi_parity_flat_xor_hd", + {"test_decode_with_missing_multi_parity", test_decode_with_missing_multi_parity, EC_BACKEND_FLAT_XOR_HD, CHKSUM_NONE, .skip = false}, - {"test_decode_with_missing_multi_data_parity_flat_xor_hd", + {"test_decode_with_missing_multi_data_parity", test_decode_with_missing_multi_data_parity, EC_BACKEND_FLAT_XOR_HD, CHKSUM_NONE, .skip = false}, - {"simple_reconstruct_flat_xor_hd", + {"test_simple_reconstruct", test_simple_reconstruct, EC_BACKEND_FLAT_XOR_HD, CHKSUM_NONE, .skip = false}, - {"test_fragments_needed_flat_xor_hd", + {"test_fragments_needed", test_fragments_needed, EC_BACKEND_FLAT_XOR_HD, CHKSUM_NONE, .skip = false}, - {"test_get_fragment_metadata_flat_xor_hd", + {"test_get_fragment_metadata", test_get_fragment_metadata, EC_BACKEND_FLAT_XOR_HD, CHKSUM_NONE, .skip = false}, - {"test_get_fragment_metadata_flat_xor_hd_crc32", + {"test_get_fragment_metadata_crc32", test_get_fragment_metadata, EC_BACKEND_FLAT_XOR_HD, CHKSUM_CRC32, .skip = false}, @@ -1918,43 +1918,43 @@ struct testcase testcases[] = { EC_BACKEND_FLAT_XOR_HD, CHKSUM_CRC32, .skip = false}, // Jerasure RS Vand backend tests - {"create_and_destroy_backend", + {"test_create_and_destroy_backend", test_create_and_destroy_backend, EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"simple_encode_jerasure_rs_vand", + {"test_simple_encode_decode", test_simple_encode_decode, EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_data_jerasure_rs_vand", + {"test_decode_with_missing_data", test_decode_with_missing_data, EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_multi_data_jerasure_rs_vand", + {"test_decode_with_missing_multi_data", test_decode_with_missing_multi_data, EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_multi_parity_jerasure_rs_vand", + {"test_decode_with_missing_multi_parity", test_decode_with_missing_multi_parity, EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"test_decode_with_missing_multi_data_parity_jerasure_rs_vand", + {"test_decode_with_missing_multi_data_parity", test_decode_with_missing_multi_data_parity, EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"simple_reconstruct_jerasure_rs_vand", + {"test_simple_reconstruct", test_simple_reconstruct, EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"test_fragments_needed_jerasure_rs_vand", + {"test_fragments_needed", test_fragments_needed, EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"test_get_fragment_metadata_jerasure_rs_vand", + {"test_get_fragment_metadata", test_get_fragment_metadata, EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"test_get_fragment_metadata_jerasure_rs_vand_crc32", + {"test_get_fragment_metadata_crc32", test_get_fragment_metadata, EC_BACKEND_JERASURE_RS_VAND, CHKSUM_CRC32, .skip = false}, @@ -1987,43 +1987,43 @@ struct testcase testcases[] = { EC_BACKENDS_MAX, 0, // NB: this is hardcoded to use jerasure RS vand .skip = false}, // Jerasure RS Cauchy backend tests - {"create_and_destroy_backend", + {"test_create_and_destroy_backend", test_create_and_destroy_backend, EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"simple_encode_jerasure_rs_cauchy", + {"test_simple_encode_decode", test_simple_encode_decode, EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_data_jerasure_rs_cauchy", + {"test_decode_with_missing_data", test_decode_with_missing_data, EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_multi_data_jerasure_rs_cauchy", + {"test_decode_with_missing_multi_data", test_decode_with_missing_multi_data, EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_multi_parity_jerasure_rs_cauchy", + {"test_decode_with_missing_multi_parity", test_decode_with_missing_multi_parity, EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_multi_data_parity_jerasure_rs_cauchy", + {"test_decode_with_missing_multi_data_parity", test_decode_with_missing_multi_data_parity, EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"simple_reconstruct_jerasure_rs_cauchy", + {"test_simple_reconstruct", test_simple_reconstruct, EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"test_fragments_needed_jerasure_rs_cauchy", + {"test_fragments_needed", test_fragments_needed, EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"test_get_fragment_metadata_jerasure_rs_cauchy", + {"test_get_fragment_metadata", test_get_fragment_metadata, EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"test_get_fragment_metadata_jerasure_rs_cauchy_crc32", + {"test_get_fragment_metadata_crc32", test_get_fragment_metadata, EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_CRC32, .skip = false}, @@ -2056,39 +2056,39 @@ struct testcase testcases[] = { EC_BACKENDS_MAX, 0, .skip = false}, // ISA-L rs_vand tests - {"create_and_destroy_backend", + {"test_create_and_destroy_backend", test_create_and_destroy_backend, EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, .skip = false}, - {"simple_encode_isa_l", + {"test_simple_encode_decode", test_simple_encode_decode, EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_data_isa_l", + {"test_decode_with_missing_data", test_decode_with_missing_data, EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_multi_data_isa_l", + {"test_decode_with_missing_multi_data", test_decode_with_missing_multi_data, EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_multi_parity_isa_l", + {"test_decode_with_missing_multi_parity", test_decode_with_missing_multi_parity, EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, .skip = false}, - {"test_decode_with_missing_multi_data_parity_isa_l", + {"test_decode_with_missing_multi_data_parity", test_decode_with_missing_multi_data_parity, EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, .skip = false}, - {"simple_reconstruct_isa_l", + {"test_simple_reconstruct", test_simple_reconstruct, EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, .skip = false}, - {"test_fragments_needed_isa_l", + {"test_fragments_needed", test_fragments_needed, EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, .skip = false}, - {"test_get_fragment_metadata_isa_l", + {"test_get_fragment_metadata", test_get_fragment_metadata, EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, .skip = false}, @@ -2121,39 +2121,39 @@ struct testcase testcases[] = { EC_BACKENDS_MAX, 0, // note this test is using ISA-L in hard coded .skip = false}, // ISA-L rs cauchy tests - {"create_and_destroy_backend", + {"test_create_and_destroy_backend", test_create_and_destroy_backend, EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"simple_encode_isa_l", + {"test_simple_encode_decode", test_simple_encode_decode, EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_data_isa_l", + {"test_decode_with_missing_data", test_decode_with_missing_data, EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_multi_data_isa_l", + {"test_decode_with_missing_multi_data", test_decode_with_missing_multi_data, EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_multi_parity_isa_l", + {"test_decode_with_missing_multi_parity", test_decode_with_missing_multi_parity, EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"test_decode_with_missing_multi_data_parity_isa_l", + {"test_decode_with_missing_multi_data_parity", test_decode_with_missing_multi_data_parity, EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"simple_reconstruct_isa_l", + {"test_simple_reconstruct", test_simple_reconstruct, EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"test_fragments_needed_isa_l", + {"test_fragments_needed", test_fragments_needed, EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, .skip = false}, - {"test_get_fragment_metadata_isa_l", + {"test_get_fragment_metadata", test_get_fragment_metadata, EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, .skip = false}, @@ -2182,39 +2182,39 @@ struct testcase testcases[] = { EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_CRC32, .skip = false}, // shss tests - {"create_and_destroy_backend", + {"test_create_and_destroy_backend", test_create_and_destroy_backend, EC_BACKEND_SHSS, CHKSUM_NONE, .skip = false}, - {"simple_encode_shss", + {"test_simple_encode_decode", test_simple_encode_decode, EC_BACKEND_SHSS, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_data_shss", + {"test_decode_with_missing_data", test_decode_with_missing_data, EC_BACKEND_SHSS, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_multi_data_shss", + {"test_decode_with_missing_multi_data", test_decode_with_missing_multi_data, EC_BACKEND_SHSS, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_multi_parity_shss", + {"test_decode_with_missing_multi_parity", test_decode_with_missing_multi_parity, EC_BACKEND_SHSS, CHKSUM_NONE, .skip = false}, - {"test_decode_with_missing_multi_data_parity_shss", + {"test_decode_with_missing_multi_data_parity", test_decode_with_missing_multi_data_parity, EC_BACKEND_SHSS, CHKSUM_NONE, .skip = false}, - {"simple_reconstruct_shss", + {"test_simple_reconstruct", test_simple_reconstruct, EC_BACKEND_SHSS, CHKSUM_NONE, .skip = false}, - {"test_fragments_needed_shss", + {"test_fragments_needed", test_fragments_needed, EC_BACKEND_SHSS, CHKSUM_NONE, .skip = false}, - {"test_get_fragment_metadata_shss", + {"test_get_fragment_metadata", test_get_fragment_metadata, EC_BACKEND_SHSS, CHKSUM_NONE, .skip = false}, @@ -2243,43 +2243,43 @@ struct testcase testcases[] = { EC_BACKEND_SHSS, CHKSUM_CRC32, .skip = false}, // Internal RS Vand backend tests - {"create_and_destroy_backend", + {"test_create_and_destroy_backend", test_create_and_destroy_backend, EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"simple_encode_liberasurecode_rs_vand", + {"test_simple_encode_decode", test_simple_encode_decode, EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_data_liberasurecode_rs_vand", + {"test_decode_with_missing_data", test_decode_with_missing_data, EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_multi_data_liberasurecode_rs_vand", + {"test_decode_with_missing_multi_data", test_decode_with_missing_multi_data, EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"decode_with_missing_multi_parity_liberasurecode_rs_vand", + {"test_decode_with_missing_multi_parity", test_decode_with_missing_multi_parity, EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"test_decode_with_missing_multi_data_parity_liberasurecode_rs_vand", + {"test_decode_with_missing_multi_data_parity", test_decode_with_missing_multi_data_parity, EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"simple_reconstruct_liberasurecode_rs_vand", + {"test_simple_reconstruct", test_simple_reconstruct, EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"test_fragments_needed_liberasurecode_rs_vand", + {"test_fragments_needed", test_fragments_needed, EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"test_get_fragment_metadata_liberasurecode_rs_vand", + {"test_get_fragment_metadata", test_get_fragment_metadata, EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE, .skip = false}, - {"test_get_fragment_metadata_liberasurecode_rs_vand_crc32", + {"test_get_fragment_metadata_crc32", test_get_fragment_metadata, EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_CRC32, .skip = false},