Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 1 | # |
Krishna Rapaka | 7319db5 | 2021-09-28 20:35:29 -0700 | [diff] [blame] | 2 | # Copyright (c) 2021, Alliance for Open Media. All rights reserved |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 3 | # |
Vibhoothi | 41c6dd7 | 2021-10-12 18:48:26 +0000 | [diff] [blame] | 4 | # This source code is subject to the terms of the BSD 3-Clause Clear License and |
| 5 | # the Alliance for Open Media Patent License 1.0. If the BSD 3-Clause Clear |
| 6 | # License was not distributed with this source code in the LICENSE file, you can |
| 7 | # obtain it at aomedia.org/license/software-license/bsd-3-c-c/. If the Alliance |
| 8 | # for Open Media Patent License 1.0 was not distributed with this source code in |
| 9 | # the PATENTS file, you can obtain it at aomedia.org/license/patent-license/. |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 10 | # |
Tom Finegan | 4f7e104 | 2017-03-01 10:25:16 -0800 | [diff] [blame] | 11 | |
Vibhoothi | 41c6dd7 | 2021-10-12 18:48:26 +0000 | [diff] [blame] | 12 | list( |
| 13 | APPEND |
| 14 | AOM_TEST_DATA_FILE_NAMES |
| 15 | "desktop1.320_180.yuv" |
| 16 | "hantro_collage_w352h288.yuv" |
| 17 | "hantro_odd.yuv" |
| 18 | "paris_352_288_30.y4m" |
| 19 | "park_joy_90p_10_420.y4m" |
| 20 | "park_joy_90p_10_422.y4m" |
| 21 | "park_joy_90p_10_444.y4m" |
| 22 | "park_joy_90p_12_420.y4m" |
| 23 | "park_joy_90p_12_422.y4m" |
| 24 | "park_joy_90p_12_444.y4m" |
| 25 | "park_joy_90p_8_420_a10-1.y4m" |
| 26 | "park_joy_90p_8_420.y4m" |
| 27 | "park_joy_90p_8_420_monochrome.y4m" |
| 28 | "park_joy_90p_8_420_vertical_csp.y4m" |
| 29 | "park_joy_90p_8_422.y4m" |
| 30 | "park_joy_90p_8_444.y4m" |
| 31 | "pixel_capture_w320h240.yuv" |
| 32 | "desktop_credits.y4m" |
| 33 | "niklas_1280_720_30.y4m" |
| 34 | "rush_hour_444.y4m" |
| 35 | "screendata.y4m" |
| 36 | "niklas_640_480_30.yuv" |
| 37 | "vase10x10.yuv" |
| 38 | "vase10x10_tiles.txt") |
Tom Finegan | 0af2732 | 2017-08-30 09:13:17 -0700 | [diff] [blame] | 39 | |
Tom Finegan | d9647f2 | 2018-06-19 13:27:57 -0700 | [diff] [blame] | 40 | if(ENABLE_DECODE_PERF_TESTS AND CONFIG_AV1_ENCODER) |
Tom Finegan | 5b3ba8e | 2018-06-19 11:22:00 -0700 | [diff] [blame] | 41 | list(APPEND AOM_TEST_DATA_FILE_NAMES "niklas_1280_720_30.yuv") |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 42 | endif() |
Tom Finegan | 0af2732 | 2017-08-30 09:13:17 -0700 | [diff] [blame] | 43 | |
Yaowu Xu | c657779 | 2018-05-30 08:04:06 -0700 | [diff] [blame] | 44 | if(CONFIG_AV1_DECODER) |
Vibhoothi | 41c6dd7 | 2021-10-12 18:48:26 +0000 | [diff] [blame] | 45 | list( |
| 46 | APPEND |
| 47 | AOM_TEST_DATA_FILE_NAMES |
| 48 | "av1-1-b8-00-quantizer-00.ivf" |
| 49 | "av1-1-b8-00-quantizer-00.ivf.md5" |
| 50 | "av1-1-b8-00-quantizer-01.ivf" |
| 51 | "av1-1-b8-00-quantizer-01.ivf.md5" |
| 52 | "av1-1-b8-00-quantizer-02.ivf" |
| 53 | "av1-1-b8-00-quantizer-02.ivf.md5" |
| 54 | "av1-1-b8-00-quantizer-03.ivf" |
| 55 | "av1-1-b8-00-quantizer-03.ivf.md5" |
| 56 | "av1-1-b8-00-quantizer-04.ivf" |
| 57 | "av1-1-b8-00-quantizer-04.ivf.md5" |
| 58 | "av1-1-b8-00-quantizer-05.ivf" |
| 59 | "av1-1-b8-00-quantizer-05.ivf.md5" |
| 60 | "av1-1-b8-00-quantizer-06.ivf" |
| 61 | "av1-1-b8-00-quantizer-06.ivf.md5" |
| 62 | "av1-1-b8-00-quantizer-07.ivf" |
| 63 | "av1-1-b8-00-quantizer-07.ivf.md5" |
| 64 | "av1-1-b8-00-quantizer-08.ivf" |
| 65 | "av1-1-b8-00-quantizer-08.ivf.md5" |
| 66 | "av1-1-b8-00-quantizer-09.ivf" |
| 67 | "av1-1-b8-00-quantizer-09.ivf.md5" |
| 68 | "av1-1-b8-00-quantizer-10.ivf" |
| 69 | "av1-1-b8-00-quantizer-10.ivf.md5" |
| 70 | "av1-1-b8-00-quantizer-11.ivf" |
| 71 | "av1-1-b8-00-quantizer-11.ivf.md5" |
| 72 | "av1-1-b8-00-quantizer-12.ivf" |
| 73 | "av1-1-b8-00-quantizer-12.ivf.md5" |
| 74 | "av1-1-b8-00-quantizer-13.ivf" |
| 75 | "av1-1-b8-00-quantizer-13.ivf.md5" |
| 76 | "av1-1-b8-00-quantizer-14.ivf" |
| 77 | "av1-1-b8-00-quantizer-14.ivf.md5" |
| 78 | "av1-1-b8-00-quantizer-15.ivf" |
| 79 | "av1-1-b8-00-quantizer-15.ivf.md5" |
| 80 | "av1-1-b8-00-quantizer-16.ivf" |
| 81 | "av1-1-b8-00-quantizer-16.ivf.md5" |
| 82 | "av1-1-b8-00-quantizer-17.ivf" |
| 83 | "av1-1-b8-00-quantizer-17.ivf.md5" |
| 84 | "av1-1-b8-00-quantizer-18.ivf" |
| 85 | "av1-1-b8-00-quantizer-18.ivf.md5" |
| 86 | "av1-1-b8-00-quantizer-19.ivf" |
| 87 | "av1-1-b8-00-quantizer-19.ivf.md5" |
| 88 | "av1-1-b8-00-quantizer-20.ivf" |
| 89 | "av1-1-b8-00-quantizer-20.ivf.md5" |
| 90 | "av1-1-b8-00-quantizer-21.ivf" |
| 91 | "av1-1-b8-00-quantizer-21.ivf.md5" |
| 92 | "av1-1-b8-00-quantizer-22.ivf" |
| 93 | "av1-1-b8-00-quantizer-22.ivf.md5" |
| 94 | "av1-1-b8-00-quantizer-23.ivf" |
| 95 | "av1-1-b8-00-quantizer-23.ivf.md5" |
| 96 | "av1-1-b8-00-quantizer-24.ivf" |
| 97 | "av1-1-b8-00-quantizer-24.ivf.md5" |
| 98 | "av1-1-b8-00-quantizer-25.ivf" |
| 99 | "av1-1-b8-00-quantizer-25.ivf.md5" |
| 100 | "av1-1-b8-00-quantizer-26.ivf" |
| 101 | "av1-1-b8-00-quantizer-26.ivf.md5" |
| 102 | "av1-1-b8-00-quantizer-27.ivf" |
| 103 | "av1-1-b8-00-quantizer-27.ivf.md5" |
| 104 | "av1-1-b8-00-quantizer-28.ivf" |
| 105 | "av1-1-b8-00-quantizer-28.ivf.md5" |
| 106 | "av1-1-b8-00-quantizer-29.ivf" |
| 107 | "av1-1-b8-00-quantizer-29.ivf.md5" |
| 108 | "av1-1-b8-00-quantizer-30.ivf" |
| 109 | "av1-1-b8-00-quantizer-30.ivf.md5" |
| 110 | "av1-1-b8-00-quantizer-31.ivf" |
| 111 | "av1-1-b8-00-quantizer-31.ivf.md5" |
| 112 | "av1-1-b8-00-quantizer-32.ivf" |
| 113 | "av1-1-b8-00-quantizer-32.ivf.md5" |
| 114 | "av1-1-b8-00-quantizer-33.ivf" |
| 115 | "av1-1-b8-00-quantizer-33.ivf.md5" |
| 116 | "av1-1-b8-00-quantizer-34.ivf" |
| 117 | "av1-1-b8-00-quantizer-34.ivf.md5" |
| 118 | "av1-1-b8-00-quantizer-35.ivf" |
| 119 | "av1-1-b8-00-quantizer-35.ivf.md5" |
| 120 | "av1-1-b8-00-quantizer-36.ivf" |
| 121 | "av1-1-b8-00-quantizer-36.ivf.md5" |
| 122 | "av1-1-b8-00-quantizer-37.ivf" |
| 123 | "av1-1-b8-00-quantizer-37.ivf.md5" |
| 124 | "av1-1-b8-00-quantizer-38.ivf" |
| 125 | "av1-1-b8-00-quantizer-38.ivf.md5" |
| 126 | "av1-1-b8-00-quantizer-39.ivf" |
| 127 | "av1-1-b8-00-quantizer-39.ivf.md5" |
| 128 | "av1-1-b8-00-quantizer-40.ivf" |
| 129 | "av1-1-b8-00-quantizer-40.ivf.md5" |
| 130 | "av1-1-b8-00-quantizer-41.ivf" |
| 131 | "av1-1-b8-00-quantizer-41.ivf.md5" |
| 132 | "av1-1-b8-00-quantizer-42.ivf" |
| 133 | "av1-1-b8-00-quantizer-42.ivf.md5" |
| 134 | "av1-1-b8-00-quantizer-43.ivf" |
| 135 | "av1-1-b8-00-quantizer-43.ivf.md5" |
| 136 | "av1-1-b8-00-quantizer-44.ivf" |
| 137 | "av1-1-b8-00-quantizer-44.ivf.md5" |
| 138 | "av1-1-b8-00-quantizer-45.ivf" |
| 139 | "av1-1-b8-00-quantizer-45.ivf.md5" |
| 140 | "av1-1-b8-00-quantizer-46.ivf" |
| 141 | "av1-1-b8-00-quantizer-46.ivf.md5" |
| 142 | "av1-1-b8-00-quantizer-47.ivf" |
| 143 | "av1-1-b8-00-quantizer-47.ivf.md5" |
| 144 | "av1-1-b8-00-quantizer-48.ivf" |
| 145 | "av1-1-b8-00-quantizer-48.ivf.md5" |
| 146 | "av1-1-b8-00-quantizer-49.ivf" |
| 147 | "av1-1-b8-00-quantizer-49.ivf.md5" |
| 148 | "av1-1-b8-00-quantizer-50.ivf" |
| 149 | "av1-1-b8-00-quantizer-50.ivf.md5" |
| 150 | "av1-1-b8-00-quantizer-51.ivf" |
| 151 | "av1-1-b8-00-quantizer-51.ivf.md5" |
| 152 | "av1-1-b8-00-quantizer-52.ivf" |
| 153 | "av1-1-b8-00-quantizer-52.ivf.md5" |
| 154 | "av1-1-b8-00-quantizer-53.ivf" |
| 155 | "av1-1-b8-00-quantizer-53.ivf.md5" |
| 156 | "av1-1-b8-00-quantizer-54.ivf" |
| 157 | "av1-1-b8-00-quantizer-54.ivf.md5" |
| 158 | "av1-1-b8-00-quantizer-55.ivf" |
| 159 | "av1-1-b8-00-quantizer-55.ivf.md5" |
| 160 | "av1-1-b8-00-quantizer-56.ivf" |
| 161 | "av1-1-b8-00-quantizer-56.ivf.md5" |
| 162 | "av1-1-b8-00-quantizer-57.ivf" |
| 163 | "av1-1-b8-00-quantizer-57.ivf.md5" |
| 164 | "av1-1-b8-00-quantizer-58.ivf" |
| 165 | "av1-1-b8-00-quantizer-58.ivf.md5" |
| 166 | "av1-1-b8-00-quantizer-59.ivf" |
| 167 | "av1-1-b8-00-quantizer-59.ivf.md5" |
| 168 | "av1-1-b8-00-quantizer-60.ivf" |
| 169 | "av1-1-b8-00-quantizer-60.ivf.md5" |
| 170 | "av1-1-b8-00-quantizer-61.ivf" |
| 171 | "av1-1-b8-00-quantizer-61.ivf.md5" |
| 172 | "av1-1-b8-00-quantizer-62.ivf" |
| 173 | "av1-1-b8-00-quantizer-62.ivf.md5" |
| 174 | "av1-1-b8-00-quantizer-63.ivf" |
| 175 | "av1-1-b8-00-quantizer-63.ivf.md5" |
| 176 | "av1-1-b10-00-quantizer-00.ivf" |
| 177 | "av1-1-b10-00-quantizer-00.ivf.md5" |
| 178 | "av1-1-b10-00-quantizer-01.ivf" |
| 179 | "av1-1-b10-00-quantizer-01.ivf.md5" |
| 180 | "av1-1-b10-00-quantizer-02.ivf" |
| 181 | "av1-1-b10-00-quantizer-02.ivf.md5" |
| 182 | "av1-1-b10-00-quantizer-03.ivf" |
| 183 | "av1-1-b10-00-quantizer-03.ivf.md5" |
| 184 | "av1-1-b10-00-quantizer-04.ivf" |
| 185 | "av1-1-b10-00-quantizer-04.ivf.md5" |
| 186 | "av1-1-b10-00-quantizer-05.ivf" |
| 187 | "av1-1-b10-00-quantizer-05.ivf.md5" |
| 188 | "av1-1-b10-00-quantizer-06.ivf" |
| 189 | "av1-1-b10-00-quantizer-06.ivf.md5" |
| 190 | "av1-1-b10-00-quantizer-07.ivf" |
| 191 | "av1-1-b10-00-quantizer-07.ivf.md5" |
| 192 | "av1-1-b10-00-quantizer-08.ivf" |
| 193 | "av1-1-b10-00-quantizer-08.ivf.md5" |
| 194 | "av1-1-b10-00-quantizer-09.ivf" |
| 195 | "av1-1-b10-00-quantizer-09.ivf.md5" |
| 196 | "av1-1-b10-00-quantizer-10.ivf" |
| 197 | "av1-1-b10-00-quantizer-10.ivf.md5" |
| 198 | "av1-1-b10-00-quantizer-11.ivf" |
| 199 | "av1-1-b10-00-quantizer-11.ivf.md5" |
| 200 | "av1-1-b10-00-quantizer-12.ivf" |
| 201 | "av1-1-b10-00-quantizer-12.ivf.md5" |
| 202 | "av1-1-b10-00-quantizer-13.ivf" |
| 203 | "av1-1-b10-00-quantizer-13.ivf.md5" |
| 204 | "av1-1-b10-00-quantizer-14.ivf" |
| 205 | "av1-1-b10-00-quantizer-14.ivf.md5" |
| 206 | "av1-1-b10-00-quantizer-15.ivf" |
| 207 | "av1-1-b10-00-quantizer-15.ivf.md5" |
| 208 | "av1-1-b10-00-quantizer-16.ivf" |
| 209 | "av1-1-b10-00-quantizer-16.ivf.md5" |
| 210 | "av1-1-b10-00-quantizer-17.ivf" |
| 211 | "av1-1-b10-00-quantizer-17.ivf.md5" |
| 212 | "av1-1-b10-00-quantizer-18.ivf" |
| 213 | "av1-1-b10-00-quantizer-18.ivf.md5" |
| 214 | "av1-1-b10-00-quantizer-19.ivf" |
| 215 | "av1-1-b10-00-quantizer-19.ivf.md5" |
| 216 | "av1-1-b10-00-quantizer-20.ivf" |
| 217 | "av1-1-b10-00-quantizer-20.ivf.md5" |
| 218 | "av1-1-b10-00-quantizer-21.ivf" |
| 219 | "av1-1-b10-00-quantizer-21.ivf.md5" |
| 220 | "av1-1-b10-00-quantizer-22.ivf" |
| 221 | "av1-1-b10-00-quantizer-22.ivf.md5" |
| 222 | "av1-1-b10-00-quantizer-23.ivf" |
| 223 | "av1-1-b10-00-quantizer-23.ivf.md5" |
| 224 | "av1-1-b10-00-quantizer-24.ivf" |
| 225 | "av1-1-b10-00-quantizer-24.ivf.md5" |
| 226 | "av1-1-b10-00-quantizer-25.ivf" |
| 227 | "av1-1-b10-00-quantizer-25.ivf.md5" |
| 228 | "av1-1-b10-00-quantizer-26.ivf" |
| 229 | "av1-1-b10-00-quantizer-26.ivf.md5" |
| 230 | "av1-1-b10-00-quantizer-27.ivf" |
| 231 | "av1-1-b10-00-quantizer-27.ivf.md5" |
| 232 | "av1-1-b10-00-quantizer-28.ivf" |
| 233 | "av1-1-b10-00-quantizer-28.ivf.md5" |
| 234 | "av1-1-b10-00-quantizer-29.ivf" |
| 235 | "av1-1-b10-00-quantizer-29.ivf.md5" |
| 236 | "av1-1-b10-00-quantizer-30.ivf" |
| 237 | "av1-1-b10-00-quantizer-30.ivf.md5" |
| 238 | "av1-1-b10-00-quantizer-31.ivf" |
| 239 | "av1-1-b10-00-quantizer-31.ivf.md5" |
| 240 | "av1-1-b10-00-quantizer-32.ivf" |
| 241 | "av1-1-b10-00-quantizer-32.ivf.md5" |
| 242 | "av1-1-b10-00-quantizer-33.ivf" |
| 243 | "av1-1-b10-00-quantizer-33.ivf.md5" |
| 244 | "av1-1-b10-00-quantizer-34.ivf" |
| 245 | "av1-1-b10-00-quantizer-34.ivf.md5" |
| 246 | "av1-1-b10-00-quantizer-35.ivf" |
| 247 | "av1-1-b10-00-quantizer-35.ivf.md5" |
| 248 | "av1-1-b10-00-quantizer-36.ivf" |
| 249 | "av1-1-b10-00-quantizer-36.ivf.md5" |
| 250 | "av1-1-b10-00-quantizer-37.ivf" |
| 251 | "av1-1-b10-00-quantizer-37.ivf.md5" |
| 252 | "av1-1-b10-00-quantizer-38.ivf" |
| 253 | "av1-1-b10-00-quantizer-38.ivf.md5" |
| 254 | "av1-1-b10-00-quantizer-39.ivf" |
| 255 | "av1-1-b10-00-quantizer-39.ivf.md5" |
| 256 | "av1-1-b10-00-quantizer-40.ivf" |
| 257 | "av1-1-b10-00-quantizer-40.ivf.md5" |
| 258 | "av1-1-b10-00-quantizer-41.ivf" |
| 259 | "av1-1-b10-00-quantizer-41.ivf.md5" |
| 260 | "av1-1-b10-00-quantizer-42.ivf" |
| 261 | "av1-1-b10-00-quantizer-42.ivf.md5" |
| 262 | "av1-1-b10-00-quantizer-43.ivf" |
| 263 | "av1-1-b10-00-quantizer-43.ivf.md5" |
| 264 | "av1-1-b10-00-quantizer-44.ivf" |
| 265 | "av1-1-b10-00-quantizer-44.ivf.md5" |
| 266 | "av1-1-b10-00-quantizer-45.ivf" |
| 267 | "av1-1-b10-00-quantizer-45.ivf.md5" |
| 268 | "av1-1-b10-00-quantizer-46.ivf" |
| 269 | "av1-1-b10-00-quantizer-46.ivf.md5" |
| 270 | "av1-1-b10-00-quantizer-47.ivf" |
| 271 | "av1-1-b10-00-quantizer-47.ivf.md5" |
| 272 | "av1-1-b10-00-quantizer-48.ivf" |
| 273 | "av1-1-b10-00-quantizer-48.ivf.md5" |
| 274 | "av1-1-b10-00-quantizer-49.ivf" |
| 275 | "av1-1-b10-00-quantizer-49.ivf.md5" |
| 276 | "av1-1-b10-00-quantizer-50.ivf" |
| 277 | "av1-1-b10-00-quantizer-50.ivf.md5" |
| 278 | "av1-1-b10-00-quantizer-51.ivf" |
| 279 | "av1-1-b10-00-quantizer-51.ivf.md5" |
| 280 | "av1-1-b10-00-quantizer-52.ivf" |
| 281 | "av1-1-b10-00-quantizer-52.ivf.md5" |
| 282 | "av1-1-b10-00-quantizer-53.ivf" |
| 283 | "av1-1-b10-00-quantizer-53.ivf.md5" |
| 284 | "av1-1-b10-00-quantizer-54.ivf" |
| 285 | "av1-1-b10-00-quantizer-54.ivf.md5" |
| 286 | "av1-1-b10-00-quantizer-55.ivf" |
| 287 | "av1-1-b10-00-quantizer-55.ivf.md5" |
| 288 | "av1-1-b10-00-quantizer-56.ivf" |
| 289 | "av1-1-b10-00-quantizer-56.ivf.md5" |
| 290 | "av1-1-b10-00-quantizer-57.ivf" |
| 291 | "av1-1-b10-00-quantizer-57.ivf.md5" |
| 292 | "av1-1-b10-00-quantizer-58.ivf" |
| 293 | "av1-1-b10-00-quantizer-58.ivf.md5" |
| 294 | "av1-1-b10-00-quantizer-59.ivf" |
| 295 | "av1-1-b10-00-quantizer-59.ivf.md5" |
| 296 | "av1-1-b10-00-quantizer-60.ivf" |
| 297 | "av1-1-b10-00-quantizer-60.ivf.md5" |
| 298 | "av1-1-b10-00-quantizer-61.ivf" |
| 299 | "av1-1-b10-00-quantizer-61.ivf.md5" |
| 300 | "av1-1-b10-00-quantizer-62.ivf" |
| 301 | "av1-1-b10-00-quantizer-62.ivf.md5" |
| 302 | "av1-1-b10-00-quantizer-63.ivf" |
| 303 | "av1-1-b10-00-quantizer-63.ivf.md5" |
| 304 | "av1-1-b10-23-film_grain-50.ivf" |
| 305 | "av1-1-b10-23-film_grain-50.ivf.md5" |
| 306 | "av1-1-b8-01-size-16x16.ivf" |
| 307 | "av1-1-b8-01-size-16x16.ivf.md5" |
| 308 | "av1-1-b8-01-size-16x18.ivf" |
| 309 | "av1-1-b8-01-size-16x18.ivf.md5" |
| 310 | "av1-1-b8-01-size-16x32.ivf" |
| 311 | "av1-1-b8-01-size-16x32.ivf.md5" |
| 312 | "av1-1-b8-01-size-16x34.ivf" |
| 313 | "av1-1-b8-01-size-16x34.ivf.md5" |
| 314 | "av1-1-b8-01-size-16x64.ivf" |
| 315 | "av1-1-b8-01-size-16x64.ivf.md5" |
| 316 | "av1-1-b8-01-size-16x66.ivf" |
| 317 | "av1-1-b8-01-size-16x66.ivf.md5" |
| 318 | "av1-1-b8-01-size-18x16.ivf" |
| 319 | "av1-1-b8-01-size-18x16.ivf.md5" |
| 320 | "av1-1-b8-01-size-18x18.ivf" |
| 321 | "av1-1-b8-01-size-18x18.ivf.md5" |
| 322 | "av1-1-b8-01-size-18x32.ivf" |
| 323 | "av1-1-b8-01-size-18x32.ivf.md5" |
| 324 | "av1-1-b8-01-size-18x34.ivf" |
| 325 | "av1-1-b8-01-size-18x34.ivf.md5" |
| 326 | "av1-1-b8-01-size-18x64.ivf" |
| 327 | "av1-1-b8-01-size-18x64.ivf.md5" |
| 328 | "av1-1-b8-01-size-18x66.ivf" |
| 329 | "av1-1-b8-01-size-18x66.ivf.md5" |
| 330 | "av1-1-b8-01-size-196x196.ivf" |
| 331 | "av1-1-b8-01-size-196x196.ivf.md5" |
| 332 | "av1-1-b8-01-size-196x198.ivf" |
| 333 | "av1-1-b8-01-size-196x198.ivf.md5" |
| 334 | "av1-1-b8-01-size-196x200.ivf" |
| 335 | "av1-1-b8-01-size-196x200.ivf.md5" |
| 336 | "av1-1-b8-01-size-196x202.ivf" |
| 337 | "av1-1-b8-01-size-196x202.ivf.md5" |
| 338 | "av1-1-b8-01-size-196x208.ivf" |
| 339 | "av1-1-b8-01-size-196x208.ivf.md5" |
| 340 | "av1-1-b8-01-size-196x210.ivf" |
| 341 | "av1-1-b8-01-size-196x210.ivf.md5" |
| 342 | "av1-1-b8-01-size-196x224.ivf" |
| 343 | "av1-1-b8-01-size-196x224.ivf.md5" |
| 344 | "av1-1-b8-01-size-196x226.ivf" |
| 345 | "av1-1-b8-01-size-196x226.ivf.md5" |
| 346 | "av1-1-b8-01-size-198x196.ivf" |
| 347 | "av1-1-b8-01-size-198x196.ivf.md5" |
| 348 | "av1-1-b8-01-size-198x198.ivf" |
| 349 | "av1-1-b8-01-size-198x198.ivf.md5" |
| 350 | "av1-1-b8-01-size-198x200.ivf" |
| 351 | "av1-1-b8-01-size-198x200.ivf.md5" |
| 352 | "av1-1-b8-01-size-198x202.ivf" |
| 353 | "av1-1-b8-01-size-198x202.ivf.md5" |
| 354 | "av1-1-b8-01-size-198x208.ivf" |
| 355 | "av1-1-b8-01-size-198x208.ivf.md5" |
| 356 | "av1-1-b8-01-size-198x210.ivf" |
| 357 | "av1-1-b8-01-size-198x210.ivf.md5" |
| 358 | "av1-1-b8-01-size-198x224.ivf" |
| 359 | "av1-1-b8-01-size-198x224.ivf.md5" |
| 360 | "av1-1-b8-01-size-198x226.ivf" |
| 361 | "av1-1-b8-01-size-198x226.ivf.md5" |
| 362 | "av1-1-b8-01-size-200x196.ivf" |
| 363 | "av1-1-b8-01-size-200x196.ivf.md5" |
| 364 | "av1-1-b8-01-size-200x198.ivf" |
| 365 | "av1-1-b8-01-size-200x198.ivf.md5" |
| 366 | "av1-1-b8-01-size-200x200.ivf" |
| 367 | "av1-1-b8-01-size-200x200.ivf.md5" |
| 368 | "av1-1-b8-01-size-200x202.ivf" |
| 369 | "av1-1-b8-01-size-200x202.ivf.md5" |
| 370 | "av1-1-b8-01-size-200x208.ivf" |
| 371 | "av1-1-b8-01-size-200x208.ivf.md5" |
| 372 | "av1-1-b8-01-size-200x210.ivf" |
| 373 | "av1-1-b8-01-size-200x210.ivf.md5" |
| 374 | "av1-1-b8-01-size-200x224.ivf" |
| 375 | "av1-1-b8-01-size-200x224.ivf.md5" |
| 376 | "av1-1-b8-01-size-200x226.ivf" |
| 377 | "av1-1-b8-01-size-200x226.ivf.md5" |
| 378 | "av1-1-b8-01-size-202x196.ivf" |
| 379 | "av1-1-b8-01-size-202x196.ivf.md5" |
| 380 | "av1-1-b8-01-size-202x198.ivf" |
| 381 | "av1-1-b8-01-size-202x198.ivf.md5" |
| 382 | "av1-1-b8-01-size-202x200.ivf" |
| 383 | "av1-1-b8-01-size-202x200.ivf.md5" |
| 384 | "av1-1-b8-01-size-202x202.ivf" |
| 385 | "av1-1-b8-01-size-202x202.ivf.md5" |
| 386 | "av1-1-b8-01-size-202x208.ivf" |
| 387 | "av1-1-b8-01-size-202x208.ivf.md5" |
| 388 | "av1-1-b8-01-size-202x210.ivf" |
| 389 | "av1-1-b8-01-size-202x210.ivf.md5" |
| 390 | "av1-1-b8-01-size-202x224.ivf" |
| 391 | "av1-1-b8-01-size-202x224.ivf.md5" |
| 392 | "av1-1-b8-01-size-202x226.ivf" |
| 393 | "av1-1-b8-01-size-202x226.ivf.md5" |
| 394 | "av1-1-b8-01-size-208x196.ivf" |
| 395 | "av1-1-b8-01-size-208x196.ivf.md5" |
| 396 | "av1-1-b8-01-size-208x198.ivf" |
| 397 | "av1-1-b8-01-size-208x198.ivf.md5" |
| 398 | "av1-1-b8-01-size-208x200.ivf" |
| 399 | "av1-1-b8-01-size-208x200.ivf.md5" |
| 400 | "av1-1-b8-01-size-208x202.ivf" |
| 401 | "av1-1-b8-01-size-208x202.ivf.md5" |
| 402 | "av1-1-b8-01-size-208x208.ivf" |
| 403 | "av1-1-b8-01-size-208x208.ivf.md5" |
| 404 | "av1-1-b8-01-size-208x210.ivf" |
| 405 | "av1-1-b8-01-size-208x210.ivf.md5" |
| 406 | "av1-1-b8-01-size-208x224.ivf" |
| 407 | "av1-1-b8-01-size-208x224.ivf.md5" |
| 408 | "av1-1-b8-01-size-208x226.ivf" |
| 409 | "av1-1-b8-01-size-208x226.ivf.md5" |
| 410 | "av1-1-b8-01-size-210x196.ivf" |
| 411 | "av1-1-b8-01-size-210x196.ivf.md5" |
| 412 | "av1-1-b8-01-size-210x198.ivf" |
| 413 | "av1-1-b8-01-size-210x198.ivf.md5" |
| 414 | "av1-1-b8-01-size-210x200.ivf" |
| 415 | "av1-1-b8-01-size-210x200.ivf.md5" |
| 416 | "av1-1-b8-01-size-210x202.ivf" |
| 417 | "av1-1-b8-01-size-210x202.ivf.md5" |
| 418 | "av1-1-b8-01-size-210x208.ivf" |
| 419 | "av1-1-b8-01-size-210x208.ivf.md5" |
| 420 | "av1-1-b8-01-size-210x210.ivf" |
| 421 | "av1-1-b8-01-size-210x210.ivf.md5" |
| 422 | "av1-1-b8-01-size-210x224.ivf" |
| 423 | "av1-1-b8-01-size-210x224.ivf.md5" |
| 424 | "av1-1-b8-01-size-210x226.ivf" |
| 425 | "av1-1-b8-01-size-210x226.ivf.md5" |
| 426 | "av1-1-b8-01-size-224x196.ivf" |
| 427 | "av1-1-b8-01-size-224x196.ivf.md5" |
| 428 | "av1-1-b8-01-size-224x198.ivf" |
| 429 | "av1-1-b8-01-size-224x198.ivf.md5" |
| 430 | "av1-1-b8-01-size-224x200.ivf" |
| 431 | "av1-1-b8-01-size-224x200.ivf.md5" |
| 432 | "av1-1-b8-01-size-224x202.ivf" |
| 433 | "av1-1-b8-01-size-224x202.ivf.md5" |
| 434 | "av1-1-b8-01-size-224x208.ivf" |
| 435 | "av1-1-b8-01-size-224x208.ivf.md5" |
| 436 | "av1-1-b8-01-size-224x210.ivf" |
| 437 | "av1-1-b8-01-size-224x210.ivf.md5" |
| 438 | "av1-1-b8-01-size-224x224.ivf" |
| 439 | "av1-1-b8-01-size-224x224.ivf.md5" |
| 440 | "av1-1-b8-01-size-224x226.ivf" |
| 441 | "av1-1-b8-01-size-224x226.ivf.md5" |
| 442 | "av1-1-b8-01-size-226x196.ivf" |
| 443 | "av1-1-b8-01-size-226x196.ivf.md5" |
| 444 | "av1-1-b8-01-size-226x198.ivf" |
| 445 | "av1-1-b8-01-size-226x198.ivf.md5" |
| 446 | "av1-1-b8-01-size-226x200.ivf" |
| 447 | "av1-1-b8-01-size-226x200.ivf.md5" |
| 448 | "av1-1-b8-01-size-226x202.ivf" |
| 449 | "av1-1-b8-01-size-226x202.ivf.md5" |
| 450 | "av1-1-b8-01-size-226x208.ivf" |
| 451 | "av1-1-b8-01-size-226x208.ivf.md5" |
| 452 | "av1-1-b8-01-size-226x210.ivf" |
| 453 | "av1-1-b8-01-size-226x210.ivf.md5" |
| 454 | "av1-1-b8-01-size-226x224.ivf" |
| 455 | "av1-1-b8-01-size-226x224.ivf.md5" |
| 456 | "av1-1-b8-01-size-226x226.ivf" |
| 457 | "av1-1-b8-01-size-226x226.ivf.md5" |
| 458 | "av1-1-b8-01-size-32x16.ivf" |
| 459 | "av1-1-b8-01-size-32x16.ivf.md5" |
| 460 | "av1-1-b8-01-size-32x18.ivf" |
| 461 | "av1-1-b8-01-size-32x18.ivf.md5" |
| 462 | "av1-1-b8-01-size-32x32.ivf" |
| 463 | "av1-1-b8-01-size-32x32.ivf.md5" |
| 464 | "av1-1-b8-01-size-32x34.ivf" |
| 465 | "av1-1-b8-01-size-32x34.ivf.md5" |
| 466 | "av1-1-b8-01-size-32x64.ivf" |
| 467 | "av1-1-b8-01-size-32x64.ivf.md5" |
| 468 | "av1-1-b8-01-size-32x66.ivf" |
| 469 | "av1-1-b8-01-size-32x66.ivf.md5" |
| 470 | "av1-1-b8-01-size-34x16.ivf" |
| 471 | "av1-1-b8-01-size-34x16.ivf.md5" |
| 472 | "av1-1-b8-01-size-34x18.ivf" |
| 473 | "av1-1-b8-01-size-34x18.ivf.md5" |
| 474 | "av1-1-b8-01-size-34x32.ivf" |
| 475 | "av1-1-b8-01-size-34x32.ivf.md5" |
| 476 | "av1-1-b8-01-size-34x34.ivf" |
| 477 | "av1-1-b8-01-size-34x34.ivf.md5" |
| 478 | "av1-1-b8-01-size-34x64.ivf" |
| 479 | "av1-1-b8-01-size-34x64.ivf.md5" |
| 480 | "av1-1-b8-01-size-34x66.ivf" |
| 481 | "av1-1-b8-01-size-34x66.ivf.md5" |
| 482 | "av1-1-b8-01-size-64x16.ivf" |
| 483 | "av1-1-b8-01-size-64x16.ivf.md5" |
| 484 | "av1-1-b8-01-size-64x18.ivf" |
| 485 | "av1-1-b8-01-size-64x18.ivf.md5" |
| 486 | "av1-1-b8-01-size-64x32.ivf" |
| 487 | "av1-1-b8-01-size-64x32.ivf.md5" |
| 488 | "av1-1-b8-01-size-64x34.ivf" |
| 489 | "av1-1-b8-01-size-64x34.ivf.md5" |
| 490 | "av1-1-b8-01-size-64x64.ivf" |
| 491 | "av1-1-b8-01-size-64x64.ivf.md5" |
| 492 | "av1-1-b8-01-size-64x66.ivf" |
| 493 | "av1-1-b8-01-size-64x66.ivf.md5" |
| 494 | "av1-1-b8-01-size-66x16.ivf" |
| 495 | "av1-1-b8-01-size-66x16.ivf.md5" |
| 496 | "av1-1-b8-01-size-66x18.ivf" |
| 497 | "av1-1-b8-01-size-66x18.ivf.md5" |
| 498 | "av1-1-b8-01-size-66x32.ivf" |
| 499 | "av1-1-b8-01-size-66x32.ivf.md5" |
| 500 | "av1-1-b8-01-size-66x34.ivf" |
| 501 | "av1-1-b8-01-size-66x34.ivf.md5" |
| 502 | "av1-1-b8-01-size-66x64.ivf" |
| 503 | "av1-1-b8-01-size-66x64.ivf.md5" |
| 504 | "av1-1-b8-01-size-66x66.ivf" |
| 505 | "av1-1-b8-01-size-66x66.ivf.md5" |
| 506 | "av1-1-b8-02-allintra.ivf" |
| 507 | "av1-1-b8-02-allintra.ivf.md5" |
| 508 | "av1-1-b8-03-sizeup.mkv" |
| 509 | "av1-1-b8-03-sizeup.mkv.md5" |
| 510 | "av1-1-b8-03-sizedown.mkv" |
| 511 | "av1-1-b8-03-sizedown.mkv.md5" |
| 512 | "av1-1-b8-04-cdfupdate.ivf" |
| 513 | "av1-1-b8-04-cdfupdate.ivf.md5" |
| 514 | "av1-1-b8-05-mv.ivf" |
| 515 | "av1-1-b8-05-mv.ivf.md5" |
| 516 | "av1-1-b8-06-mfmv.ivf" |
| 517 | "av1-1-b8-06-mfmv.ivf.md5" |
| 518 | "av1-1-b8-22-svc-L2T1.ivf" |
| 519 | "av1-1-b8-22-svc-L2T1.ivf.md5" |
| 520 | "av1-1-b8-22-svc-L1T2.ivf" |
| 521 | "av1-1-b8-22-svc-L1T2.ivf.md5" |
| 522 | "av1-1-b8-22-svc-L2T2.ivf" |
| 523 | "av1-1-b8-22-svc-L2T2.ivf.md5" |
| 524 | "av1-1-b8-23-film_grain-50.ivf" |
| 525 | "av1-1-b8-23-film_grain-50.ivf.md5" |
| 526 | "invalid-bug-1814.ivf" |
| 527 | "invalid-bug-1814.ivf.res" |
| 528 | "invalid-chromium-906381.ivf" |
| 529 | "invalid-chromium-906381.ivf.res" |
| 530 | "invalid-google-142530197-1.ivf" |
| 531 | "invalid-google-142530197-1.ivf.res" |
| 532 | "invalid-google-142530197.ivf" |
| 533 | "invalid-google-142530197.ivf.res" |
| 534 | "invalid-oss-fuzz-10061.ivf" |
| 535 | "invalid-oss-fuzz-10061.ivf.res" |
| 536 | "invalid-oss-fuzz-10117-mc-buf-use-highbd.ivf" |
| 537 | "invalid-oss-fuzz-10117-mc-buf-use-highbd.ivf.res" |
| 538 | "invalid-oss-fuzz-10227.ivf" |
| 539 | "invalid-oss-fuzz-10227.ivf.res" |
| 540 | "invalid-oss-fuzz-10389.ivf" |
| 541 | "invalid-oss-fuzz-10389.ivf.res" |
| 542 | "invalid-oss-fuzz-10389.ivf.res.2" |
| 543 | "invalid-oss-fuzz-10555.ivf" |
| 544 | "invalid-oss-fuzz-10555.ivf.res" |
| 545 | "invalid-oss-fuzz-10705.ivf" |
| 546 | "invalid-oss-fuzz-10705.ivf.res" |
| 547 | "invalid-oss-fuzz-10723.ivf" |
| 548 | "invalid-oss-fuzz-10723.ivf.res" |
| 549 | "invalid-oss-fuzz-10723.ivf.res.2" |
| 550 | "invalid-oss-fuzz-10779.ivf" |
| 551 | "invalid-oss-fuzz-10779.ivf.res" |
| 552 | "invalid-oss-fuzz-11477.ivf" |
| 553 | "invalid-oss-fuzz-11477.ivf.res" |
| 554 | "invalid-oss-fuzz-11479.ivf" |
| 555 | "invalid-oss-fuzz-11479.ivf.res" |
| 556 | "invalid-oss-fuzz-11479.ivf.res.2" |
| 557 | "invalid-oss-fuzz-11523.ivf" |
| 558 | "invalid-oss-fuzz-11523.ivf.res" |
| 559 | "invalid-oss-fuzz-11523.ivf.res.2" |
| 560 | "invalid-oss-fuzz-15363.ivf" |
| 561 | "invalid-oss-fuzz-15363.ivf.res" |
| 562 | "invalid-oss-fuzz-16437.ivf" |
| 563 | "invalid-oss-fuzz-16437.ivf.res" |
| 564 | "invalid-oss-fuzz-9288.ivf" |
| 565 | "invalid-oss-fuzz-9288.ivf.res" |
| 566 | "invalid-oss-fuzz-9463.ivf" |
| 567 | "invalid-oss-fuzz-9463.ivf.res" |
| 568 | "invalid-oss-fuzz-9463.ivf.res.2" |
| 569 | "invalid-oss-fuzz-9482.ivf" |
| 570 | "invalid-oss-fuzz-9482.ivf.res" |
| 571 | "invalid-oss-fuzz-9720.ivf" |
| 572 | "invalid-oss-fuzz-9720.ivf.res") |
Yaowu Xu | c657779 | 2018-05-30 08:04:06 -0700 | [diff] [blame] | 573 | endif() |
| 574 | |
Tom Finegan | d9647f2 | 2018-06-19 13:27:57 -0700 | [diff] [blame] | 575 | if(ENABLE_ENCODE_PERF_TESTS AND CONFIG_AV1_ENCODER) |
Vibhoothi | 41c6dd7 | 2021-10-12 18:48:26 +0000 | [diff] [blame] | 576 | list( |
| 577 | APPEND |
| 578 | AOM_TEST_DATA_FILE_NAMES |
| 579 | "desktop_640_360_30.yuv" |
| 580 | "kirland_640_480_30.yuv" |
| 581 | "macmarcomoving_640_480_30.yuv" |
| 582 | "macmarcostationary_640_480_30.yuv" |
| 583 | "niklas_1280_720_30.yuv" |
| 584 | "tacomanarrows_640_480_30.yuv" |
| 585 | "tacomasmallcameramovement_640_480_30.yuv" |
| 586 | "thaloundeskmtg_640_480_30.yuv") |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 587 | endif() |
Tom Finegan | 0af2732 | 2017-08-30 09:13:17 -0700 | [diff] [blame] | 588 | |
Tom Finegan | 4f7e104 | 2017-03-01 10:25:16 -0800 | [diff] [blame] | 589 | # Parses test/test-data.sha1 and writes captured file names and checksums to |
| 590 | # $out_files and $out_checksums as lists. |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 591 | function(make_test_data_lists test_data_file out_files out_checksums) |
| 592 | if(NOT test_data_file OR NOT EXISTS "${test_data_file}") |
Tom Finegan | e9d70c9 | 2017-05-10 11:31:05 -0700 | [diff] [blame] | 593 | message(FATAL_ERROR "Test info file missing or empty (${test_data_file})") |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 594 | endif() |
Tom Finegan | 4f7e104 | 2017-03-01 10:25:16 -0800 | [diff] [blame] | 595 | |
Tom Finegan | e9d70c9 | 2017-05-10 11:31:05 -0700 | [diff] [blame] | 596 | # Read $test_data_file into $files_and_checksums. $files_and_checksums becomes |
| 597 | # a list with an entry for each line from $test_data_file. |
| 598 | file(STRINGS "${test_data_file}" files_and_checksums) |
Tom Finegan | 4f7e104 | 2017-03-01 10:25:16 -0800 | [diff] [blame] | 599 | |
| 600 | # Iterate over the list of lines and split it into $checksums and $filenames. |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 601 | foreach(line ${files_and_checksums}) |
Tom Finegan | 4f7e104 | 2017-03-01 10:25:16 -0800 | [diff] [blame] | 602 | string(FIND "${line}" " *" delim_pos) |
| 603 | |
| 604 | math(EXPR filename_pos "${delim_pos} + 2") |
| 605 | string(SUBSTRING "${line}" 0 ${delim_pos} checksum) |
| 606 | string(SUBSTRING "${line}" ${filename_pos} -1 filename) |
| 607 | |
Tom Finegan | 0af2732 | 2017-08-30 09:13:17 -0700 | [diff] [blame] | 608 | list(FIND AOM_TEST_DATA_FILE_NAMES ${filename} list_index) |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 609 | if(NOT ${list_index} EQUAL -1) |
| 610 | |
Tom Finegan | 0af2732 | 2017-08-30 09:13:17 -0700 | [diff] [blame] | 611 | # Include the name and checksum in output only when the file is needed. |
| 612 | set(checksums ${checksums} ${checksum}) |
| 613 | set(filenames ${filenames} ${filename}) |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 614 | endif() |
| 615 | endforeach() |
Tom Finegan | 4f7e104 | 2017-03-01 10:25:16 -0800 | [diff] [blame] | 616 | |
Tom Finegan | e9d70c9 | 2017-05-10 11:31:05 -0700 | [diff] [blame] | 617 | list(LENGTH filenames num_files) |
| 618 | list(LENGTH checksums num_checksums) |
Vibhoothi | 41c6dd7 | 2021-10-12 18:48:26 +0000 | [diff] [blame] | 619 | if(NOT checksums |
| 620 | OR NOT filenames |
| 621 | OR NOT num_files EQUAL num_checksums) |
Tom Finegan | e9d70c9 | 2017-05-10 11:31:05 -0700 | [diff] [blame] | 622 | message(FATAL_ERROR "Parsing of ${test_data_file} failed.") |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 623 | endif() |
Tom Finegan | 4f7e104 | 2017-03-01 10:25:16 -0800 | [diff] [blame] | 624 | |
Vibhoothi | 41c6dd7 | 2021-10-12 18:48:26 +0000 | [diff] [blame] | 625 | set(${out_checksums} |
| 626 | ${checksums} |
| 627 | PARENT_SCOPE) |
| 628 | set(${out_files} |
| 629 | ${filenames} |
| 630 | PARENT_SCOPE) |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 631 | endfunction() |
Tom Finegan | 4f7e104 | 2017-03-01 10:25:16 -0800 | [diff] [blame] | 632 | |
| 633 | # Appends each file name in $test_files to $test_dir and adds the result path to |
| 634 | # $out_path_list. |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 635 | function(expand_test_file_paths test_files test_dir out_path_list) |
| 636 | foreach(filename ${${test_files}}) |
Tom Finegan | 4f7e104 | 2017-03-01 10:25:16 -0800 | [diff] [blame] | 637 | set(path_list ${path_list} "${test_dir}/${filename}") |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 638 | endforeach() |
Vibhoothi | 41c6dd7 | 2021-10-12 18:48:26 +0000 | [diff] [blame] | 639 | set(${out_path_list} |
| 640 | ${path_list} |
| 641 | PARENT_SCOPE) |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 642 | endfunction() |
Tom Finegan | 4f7e104 | 2017-03-01 10:25:16 -0800 | [diff] [blame] | 643 | |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 644 | function(check_file local_path expected_checksum out_needs_update) |
| 645 | if(EXISTS "${local_path}") |
Tom Finegan | 4f7e104 | 2017-03-01 10:25:16 -0800 | [diff] [blame] | 646 | file(SHA1 "${local_path}" file_checksum) |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 647 | else() |
Vibhoothi | 41c6dd7 | 2021-10-12 18:48:26 +0000 | [diff] [blame] | 648 | set(${out_needs_update} |
| 649 | 1 |
| 650 | PARENT_SCOPE) |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 651 | return() |
| 652 | endif() |
Tom Finegan | 4f7e104 | 2017-03-01 10:25:16 -0800 | [diff] [blame] | 653 | |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 654 | if("${file_checksum}" STREQUAL "${expected_checksum}") |
Tom Finegan | 4f7e104 | 2017-03-01 10:25:16 -0800 | [diff] [blame] | 655 | unset(${out_needs_update} PARENT_SCOPE) |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 656 | else() |
Vibhoothi | 41c6dd7 | 2021-10-12 18:48:26 +0000 | [diff] [blame] | 657 | set(${out_needs_update} |
| 658 | 1 |
| 659 | PARENT_SCOPE) |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 660 | return() |
| 661 | endif() |
Tom Finegan | e9d70c9 | 2017-05-10 11:31:05 -0700 | [diff] [blame] | 662 | message("${local_path} up to date.") |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 663 | endfunction() |
Tom Finegan | 4f7e104 | 2017-03-01 10:25:16 -0800 | [diff] [blame] | 664 | |
| 665 | # Downloads data from $file_url, confirms that $file_checksum matches, and |
| 666 | # writes it to $local_path. |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 667 | function(download_test_file file_url file_checksum local_path) |
Tom Finegan | 4f7e104 | 2017-03-01 10:25:16 -0800 | [diff] [blame] | 668 | message("Downloading ${file_url} ...") |
Vibhoothi | 41c6dd7 | 2021-10-12 18:48:26 +0000 | [diff] [blame] | 669 | file( |
| 670 | DOWNLOAD "${file_url}" "${local_path}" |
| 671 | SHOW_PROGRESS |
| 672 | EXPECTED_HASH SHA1=${file_checksum}) |
Tom Finegan | 4f7e104 | 2017-03-01 10:25:16 -0800 | [diff] [blame] | 673 | message("Download of ${file_url} complete.") |
Johann | 589bae8 | 2018-04-27 10:57:44 -0700 | [diff] [blame] | 674 | endfunction() |