summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2017-02-25 14:58:45 +0000
committerTim Burke <tim.burke@gmail.com>2017-07-13 13:22:07 -0700
commit6124e432a500837e918923d0688a986124088c29 (patch)
tree70592ef5d160774350ac8400fbc61bbeccf682ad
parent34ff5208d426d61f9911caf237bb5deb884588df (diff)
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
Notes
Notes (review): Code-Review+2: Timur Alperovich <timur.alperovich@gmail.com> Workflow+1: Timur Alperovich <timur.alperovich@gmail.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 13 Sep 2017 20:21:46 +0000 Reviewed-on: https://review.openstack.org/438215 Project: openstack/liberasurecode Branch: refs/heads/master
-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 1e75eb1..77c8419 100644
--- a/test/liberasurecode_test.c
+++ b/test/liberasurecode_test.c
@@ -1852,6 +1852,14 @@ struct testcase testcases[] = {
1852 test_get_fragment_metadata, 1852 test_get_fragment_metadata,
1853 EC_BACKEND_NULL, CHKSUM_NONE, 1853 EC_BACKEND_NULL, CHKSUM_NONE,
1854 .skip = false}, 1854 .skip = false},
1855 {"test_decode_with_missing_parity",
1856 test_decode_with_missing_parity,
1857 EC_BACKEND_NULL, CHKSUM_NONE,
1858 .skip = false},
1859 {"test_decode_with_missing_multi_parity",
1860 test_decode_with_missing_multi_parity,
1861 EC_BACKEND_NULL, CHKSUM_NONE,
1862 .skip = false},
1855 // Flat XOR backend tests 1863 // Flat XOR backend tests
1856 {"test_create_and_destroy_backend", 1864 {"test_create_and_destroy_backend",
1857 test_create_and_destroy_backend, 1865 test_create_and_destroy_backend,
@@ -1934,6 +1942,10 @@ struct testcase testcases[] = {
1934 test_decode_with_missing_data, 1942 test_decode_with_missing_data,
1935 EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE, 1943 EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE,
1936 .skip = false}, 1944 .skip = false},
1945 {"test_decode_with_missing_parity",
1946 test_decode_with_missing_parity,
1947 EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE,
1948 .skip = false},
1937 {"test_decode_with_missing_multi_data", 1949 {"test_decode_with_missing_multi_data",
1938 test_decode_with_missing_multi_data, 1950 test_decode_with_missing_multi_data,
1939 EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE, 1951 EC_BACKEND_JERASURE_RS_VAND, CHKSUM_NONE,
@@ -2003,6 +2015,10 @@ struct testcase testcases[] = {
2003 test_decode_with_missing_data, 2015 test_decode_with_missing_data,
2004 EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE, 2016 EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE,
2005 .skip = false}, 2017 .skip = false},
2018 {"test_decode_with_missing_parity",
2019 test_decode_with_missing_parity,
2020 EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE,
2021 .skip = false},
2006 {"test_decode_with_missing_multi_data", 2022 {"test_decode_with_missing_multi_data",
2007 test_decode_with_missing_multi_data, 2023 test_decode_with_missing_multi_data,
2008 EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE, 2024 EC_BACKEND_JERASURE_RS_CAUCHY, CHKSUM_NONE,
@@ -2072,6 +2088,10 @@ struct testcase testcases[] = {
2072 test_decode_with_missing_data, 2088 test_decode_with_missing_data,
2073 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, 2089 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE,
2074 .skip = false}, 2090 .skip = false},
2091 {"test_decode_with_missing_parity",
2092 test_decode_with_missing_parity,
2093 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE,
2094 .skip = false},
2075 {"test_decode_with_missing_multi_data", 2095 {"test_decode_with_missing_multi_data",
2076 test_decode_with_missing_multi_data, 2096 test_decode_with_missing_multi_data,
2077 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, 2097 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE,
@@ -2096,6 +2116,10 @@ struct testcase testcases[] = {
2096 test_get_fragment_metadata, 2116 test_get_fragment_metadata,
2097 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE, 2117 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_NONE,
2098 .skip = false}, 2118 .skip = false},
2119 {"test_get_fragment_metadata_crc32",
2120 test_get_fragment_metadata,
2121 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_CRC32,
2122 .skip = false},
2099 {"test_verify_stripe_metadata", 2123 {"test_verify_stripe_metadata",
2100 test_verify_stripe_metadata, 2124 test_verify_stripe_metadata,
2101 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_CRC32, 2125 EC_BACKEND_ISA_L_RS_VAND, CHKSUM_CRC32,
@@ -2137,6 +2161,10 @@ struct testcase testcases[] = {
2137 test_decode_with_missing_data, 2161 test_decode_with_missing_data,
2138 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, 2162 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE,
2139 .skip = false}, 2163 .skip = false},
2164 {"test_decode_with_missing_parity",
2165 test_decode_with_missing_parity,
2166 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE,
2167 .skip = false},
2140 {"test_decode_with_missing_multi_data", 2168 {"test_decode_with_missing_multi_data",
2141 test_decode_with_missing_multi_data, 2169 test_decode_with_missing_multi_data,
2142 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, 2170 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE,
@@ -2161,6 +2189,10 @@ struct testcase testcases[] = {
2161 test_get_fragment_metadata, 2189 test_get_fragment_metadata,
2162 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE, 2190 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_NONE,
2163 .skip = false}, 2191 .skip = false},
2192 {"test_get_fragment_metadata_crc32",
2193 test_get_fragment_metadata,
2194 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_CRC32,
2195 .skip = false},
2164 {"test_verify_stripe_metadata", 2196 {"test_verify_stripe_metadata",
2165 test_verify_stripe_metadata, 2197 test_verify_stripe_metadata,
2166 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_CRC32, 2198 EC_BACKEND_ISA_L_RS_CAUCHY, CHKSUM_CRC32,
@@ -2198,6 +2230,10 @@ struct testcase testcases[] = {
2198 test_decode_with_missing_data, 2230 test_decode_with_missing_data,
2199 EC_BACKEND_SHSS, CHKSUM_NONE, 2231 EC_BACKEND_SHSS, CHKSUM_NONE,
2200 .skip = false}, 2232 .skip = false},
2233 {"test_decode_with_missing_parity",
2234 test_decode_with_missing_parity,
2235 EC_BACKEND_SHSS, CHKSUM_NONE,
2236 .skip = false},
2201 {"test_decode_with_missing_multi_data", 2237 {"test_decode_with_missing_multi_data",
2202 test_decode_with_missing_multi_data, 2238 test_decode_with_missing_multi_data,
2203 EC_BACKEND_SHSS, CHKSUM_NONE, 2239 EC_BACKEND_SHSS, CHKSUM_NONE,
@@ -2222,6 +2258,10 @@ struct testcase testcases[] = {
2222 test_get_fragment_metadata, 2258 test_get_fragment_metadata,
2223 EC_BACKEND_SHSS, CHKSUM_NONE, 2259 EC_BACKEND_SHSS, CHKSUM_NONE,
2224 .skip = false}, 2260 .skip = false},
2261 {"test_get_fragment_metadata_crc32",
2262 test_get_fragment_metadata,
2263 EC_BACKEND_SHSS, CHKSUM_CRC32,
2264 .skip = false},
2225 {"test_verify_stripe_metadata", 2265 {"test_verify_stripe_metadata",
2226 test_verify_stripe_metadata, 2266 test_verify_stripe_metadata,
2227 EC_BACKEND_SHSS, CHKSUM_CRC32, 2267 EC_BACKEND_SHSS, CHKSUM_CRC32,
@@ -2259,6 +2299,10 @@ struct testcase testcases[] = {
2259 test_decode_with_missing_data, 2299 test_decode_with_missing_data,
2260 EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE, 2300 EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE,
2261 .skip = false}, 2301 .skip = false},
2302 {"test_decode_with_missing_parity",
2303 test_decode_with_missing_parity,
2304 EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE,
2305 .skip = false},
2262 {"test_decode_with_missing_multi_data", 2306 {"test_decode_with_missing_multi_data",
2263 test_decode_with_missing_multi_data, 2307 test_decode_with_missing_multi_data,
2264 EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE, 2308 EC_BACKEND_LIBERASURECODE_RS_VAND, CHKSUM_NONE,