Tests: RunCMake.CommandLineTar: pax-zstd test fails when zstd version is not the same
The RunCMake.CommandLineTar: pax-zstd test fails when using a different zstd version than what was used to create the checksum.
[ 233s] actual-err> CMake Error at roundtrip.cmake:90 (message):
[ 233s] actual-err> Actual [28b52ffd0050] does not match expected [28b52ffd0058]
[ 233s] actual-err> Call Stack (most recent call first):
[ 233s] actual-err> pax-zstd.cmake:10 (check_magic)
[ 233s] actual-err> CMakeLists.txt:3 (include)
As you can see the same command generated a slightly different checksum which makes a lot of sense to me. This is on zstd version 1.4.4+dfsg-3 from the debian repo. An older version like 1.3.3 yields a much more different checksum.
I am not sure how one would fix this problem except with providing multiple possible checksums.
https://gitlab.kitware.com/cmake/cmake/-/blob/v3.19.6/Tests/RunCMake/CommandLineTar/pax-zstd.cmake