mkfs.cramfs: report zlib version, detect it in the test
The cramfs image contains zlib compressed data, so the image – and the checksums in tests/ts/cramfs/mkfs – depend on the zlib implementation. For example zlib-ng deflates differently and the test fails on all distributions that use it (Fedora, …):
is fdfe9d5d66a92cb15dfa3ebaaee8963d, should be a6667acb1cb0685d9eb5b9cd3724766c
Add the runtime zlib version to “mkfs.cramfs –version”:
mkfs.cramfs from util-linux 2.43 (features: zlib-1.3.1.zlib-ng)
and use it in the test. The checksum verifies that we get the very same image in the same environment, so compare it for the classic zlib only and for anything else report the checksum as unknown (as we already do for unknown byteorder/pagesize combinations) together with the computed value.
Signed-off-by: Karel Zak kzak@redhat.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
COMPILE & INSTALL:
MAILING LIST:
IRC CHANNEL:
BUG REPORTING:
NLS (PO TRANSLATIONS):
VERSION SCHEMA:
SOURCE CODE:
Download archive: https://www.kernel.org/pub/linux/utils/util-linux/
See also: Documentation/HOWTO-CONTRIBUTING.md Documentation/HOWTO-HACKING.md Documentation/HOWTO-TESTING.md
SCM (Source Code Management) Repository:
WORKFLOW EXAMPLE: