My working unpac space for OCaml projects in development
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

test: enable legacy support in version compatibility test

Summary:
The version compatibility test needs to decode legacy frames (v0.5.x - v0.7.x) to verify cross-version interoperability. Since legacy support is now disabled by default (v1.6.0), head must be built with ZSTD_LEGACY_SUPPORT=5 for this test.

Test Plan:
Run `python3 tests/test-zstd-versions.py` to verify cross-version compatibility testing works correctly.

authored by

Yann Collet and committed by
Yann Collet
432476ab 97b20830

+5 -2
+5 -2
vendor/git/zstd-c/tests/test-zstd-versions.py
··· 259 259 shutil.copy2('dictBuilder', '{}/dictBuilder.{}'.format(tmp_dir, tag)) 260 260 os.chdir(r_dir + '/programs') # /path/to/zstd/tests/versionsTest/<TAG>/programs 261 261 make(['clean'], False) # separate 'clean' target to allow parallel build 262 - make(['zstd'], False) 262 + # Enable legacy support for cross-version compatibility testing 263 + make(['zstd', 'ZSTD_LEGACY_SUPPORT=5'], False) 263 264 else: 264 265 os.chdir(programs_dir) 265 266 print('-----------------------------------------------') 266 267 print('compiling head') 267 268 print('-----------------------------------------------') 268 - make(['zstd'], False) 269 + # Enable legacy support for head to test cross-version compatibility 270 + # (legacy support is disabled by default since v1.6.0) 271 + make(['zstd', 'ZSTD_LEGACY_SUPPORT=5'], False) 269 272 shutil.copy2('zstd', dst_zstd) 270 273 271 274 # remove any remaining *.zst and *.dec from previous test