da0f92fdfc
The test_pixz.py test was initially written as a standalone test.
The commit cf132a13
"support/testing/tests/package/test_compressor_base.py: new helper class"
introduced a helper class for testing data compression programs.
This commit rewrites this test to use this helper class.
The test coverage is mostly the same as before the rewrite. Notable
differences are:
- the test file is slightly smaller for faster testing,
- its content layout also slightly different.
Cc: Vincent Stehlé <vincent.stehle@laposte.net>
Signed-off-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
19 lines
579 B
Python
19 lines
579 B
Python
from tests.package.test_compressor_base import TestCompressorBase
|
|
|
|
|
|
class TestPixz(TestCompressorBase):
|
|
__test__ = True
|
|
config = TestCompressorBase.config + \
|
|
"""
|
|
BR2_PACKAGE_PIXZ=y
|
|
"""
|
|
compress_cmd = "pixz -p3"
|
|
decompress_cmd = "pixz -d"
|
|
compressed_file_ext = ".xz"
|
|
|
|
def check_integrity_test(self):
|
|
# Do nothing for the integrity test because "pixz" does not
|
|
# implement this feature. The "-t" option has other functions:
|
|
# https://github.com/vasi/pixz/blob/v1.0.7/src/pixz.1.asciidoc#options
|
|
pass
|