summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-09-13 20:21:46 +0000
committerGerrit Code Review <review@openstack.org>2017-09-13 20:21:46 +0000
commitdd1a91968fba16990753a3f3f8f8aef83c7949fc (patch)
treee802da678346e6f0e1a33b5315cc30f991846940
parent7ce7617c378b8edf5331a6356d079aae7898f5f5 (diff)
parent6124e432a500837e918923d0688a986124088c29 (diff)
Merge "Use more backends in existing tests"
-rw-r--r--test/liberasurecode_test.c44
1 files changed, 44 insertions, 0 deletions
diff --git a/test/liberasurecode_test.c b/test/liberasurecode_test.c
index 63c0c7a..2c103b3 100644
--- a/test/liberasurecode_test.c
+++ b/test/liberasurecode_test.c
@@ -1848,6 +1848,14 @@ struct testcase testcases[] = {
1848 test_get_fragment_metadata, 1848 test_get_fragment_metadata,
1849 EC_BACKEND_NULL, CHKSUM_NONE, 1849 EC_BACKEND_NULL, CHKSUM_NONE,
1850 .skip = false}, 1850 .skip = false},
1851 {"test_decode_with_missing_parity",
1852 test_decode_with_missing_parity,
1853 EC_BACKEND_NULL, CHKSUM_NONE,
1854 .skip = false},
1855 {"test_decode_with_missing_multi_parity",
1856 test_decode_with_missing_multi_parity,
1857 EC_BACKEND_NULL, CHKSUM_NONE,
1858 .skip = false},
1851 // Flat XOR backend tests 1859 // Flat XOR backend tests
1852 {"test_create_and_destroy_backend", 1860 {"test_create_and_destroy_backend",
1853 test_create_and_destroy_backend, 1861 test_create_and_destroy_backend,
@@ -1930,6 +1938,10 @@ struct testcase testcases[] = {
1930 test_decode_with_missing_data, 1938 test_decode_with_missing_data,
1931 EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE, 1939 EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE,
1932 .skip = false}, 1940 .skip = false},
1941 {"test_decode_with_missing_parity",
1942 test_decode_with_missing_parity,
1943 EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE,
1944 .skip = false},
1933 {"test_decode_with_missing_multi_data", 1945 {"test_decode_with_missing_multi_data",
1934 test_decode_with_missing_multi_data, 1946 test_decode_with_missing_multi_data,
1935 EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE, 1947 EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE,
@@ -1999,6 +2011,10 @@ struct testcase testcases[] = {
1999 test_decode_with_missing_data, 2011 test_decode_with_missing_data,
2000 EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE, 2012 EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE,
2001 .skip = false}, 2013 .skip = false},
2014 {"test_decode_with_missing_parity",
2015 test_decode_with_missing_parity,
2016 EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE,
2017 .skip = false},
2002 {"test_decode_with_missing_multi_data", 2018 {"test_decode_with_missing_multi_data",
2003 test_decode_with_missing_multi_data, 2019 test_decode_with_missing_multi_data,
2004 EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE, 2020 EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE,
@@ -2068,6 +2084,10 @@ struct testcase testcases[] = {
2068 test_decode_with_missing_data, 2084 test_decode_with_missing_data,
2069 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, 2085 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE,
2070 .skip = false}, 2086 .skip = false},
2087 {"test_decode_with_missing_parity",
2088 test_decode_with_missing_parity,
2089 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE,
2090 .skip = false},
2071 {"test_decode_with_missing_multi_data", 2091 {"test_decode_with_missing_multi_data",
2072 test_decode_with_missing_multi_data, 2092 test_decode_with_missing_multi_data,
2073 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, 2093 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE,
@@ -2092,6 +2112,10 @@ struct testcase testcases[] = {
2092 test_get_fragment_metadata, 2112 test_get_fragment_metadata,
2093 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, 2113 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE,
2094 .skip = false}, 2114 .skip = false},
2115 {"test_get_fragment_metadata_crc32",
2116 test_get_fragment_metadata,
2117 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_CRC32,
2118 .skip = false},
2095 {"test_verify_stripe_metadata", 2119 {"test_verify_stripe_metadata",
2096 test_verify_stripe_metadata, 2120 test_verify_stripe_metadata,
2097 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_CRC32, 2121 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_CRC32,
@@ -2133,6 +2157,10 @@ struct testcase testcases[] = {
2133 test_decode_with_missing_data, 2157 test_decode_with_missing_data,
2134 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, 2158 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE,
2135 .skip = false}, 2159 .skip = false},
2160 {"test_decode_with_missing_parity",
2161 test_decode_with_missing_parity,
2162 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE,
2163 .skip = false},
2136 {"test_decode_with_missing_multi_data", 2164 {"test_decode_with_missing_multi_data",
2137 test_decode_with_missing_multi_data, 2165 test_decode_with_missing_multi_data,
2138 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, 2166 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE,
@@ -2157,6 +2185,10 @@ struct testcase testcases[] = {
2157 test_get_fragment_metadata, 2185 test_get_fragment_metadata,
2158 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, 2186 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE,
2159 .skip = false}, 2187 .skip = false},
2188 {"test_get_fragment_metadata_crc32",
2189 test_get_fragment_metadata,
2190 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_CRC32,
2191 .skip = false},
2160 {"test_verify_stripe_metadata", 2192 {"test_verify_stripe_metadata",
2161 test_verify_stripe_metadata, 2193 test_verify_stripe_metadata,
2162 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_CRC32, 2194 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_CRC32,
@@ -2194,6 +2226,10 @@ struct testcase testcases[] = {
2194 test_decode_with_missing_data, 2226 test_decode_with_missing_data,
2195 EC_BACKEND_SHSS, CHKSUM_NONE, 2227 EC_BACKEND_SHSS, CHKSUM_NONE,
2196 .skip = false}, 2228 .skip = false},
2229 {"test_decode_with_missing_parity",
2230 test_decode_with_missing_parity,
2231 EC_BACKEND_SHSS, CHKSUM_NONE,
2232 .skip = false},
2197 {"test_decode_with_missing_multi_data", 2233 {"test_decode_with_missing_multi_data",
2198 test_decode_with_missing_multi_data, 2234 test_decode_with_missing_multi_data,
2199 EC_BACKEND_SHSS, CHKSUM_NONE, 2235 EC_BACKEND_SHSS, CHKSUM_NONE,
@@ -2218,6 +2254,10 @@ struct testcase testcases[] = {
2218 test_get_fragment_metadata, 2254 test_get_fragment_metadata,
2219 EC_BACKEND_SHSS, CHKSUM_NONE, 2255 EC_BACKEND_SHSS, CHKSUM_NONE,
2220 .skip = false}, 2256 .skip = false},
2257 {"test_get_fragment_metadata_crc32",
2258 test_get_fragment_metadata,
2259 EC_BACKEND_SHSS, CHKSUM_CRC32,
2260 .skip = false},
2221 {"test_verify_stripe_metadata", 2261 {"test_verify_stripe_metadata",
2222 test_verify_stripe_metadata, 2262 test_verify_stripe_metadata,
2223 EC_BACKEND_SHSS, CHKSUM_CRC32, 2263 EC_BACKEND_SHSS, CHKSUM_CRC32,
@@ -2255,6 +2295,10 @@ struct testcase testcases[] = {
2255 test_decode_with_missing_data, 2295 test_decode_with_missing_data,
2256 EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE, 2296 EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE,
2257 .skip = false}, 2297 .skip = false},
2298 {"test_decode_with_missing_parity",
2299 test_decode_with_missing_parity,
2300 EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE,
2301 .skip = false},
2258 {"test_decode_with_missing_multi_data", 2302 {"test_decode_with_missing_multi_data",
2259 test_decode_with_missing_multi_data, 2303 test_decode_with_missing_multi_data,
2260 EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE, 2304 EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE,