support/testing: add zip test

Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Brandon Maier 2024-05-10 23:55:09 +00:00 committed by Thomas Petazzoni
parent fd64c544d3
commit 23ef540288
2 changed files with 16 additions and 0 deletions

View File

@ -547,6 +547,7 @@ F: package/python-pysensors/
F: package/qoriq-fm-ucode/
F: package/unifdef/
F: package/vmtouch/
F: support/testing/tests/package/test_zip.py
N: Brock Williams <brock@cottonwoodcomputer.com>
F: package/pdmenu/

View File

@ -0,0 +1,15 @@
from tests.package.test_compressor_base import TestCompressorBase
class TestZip(TestCompressorBase):
__test__ = True
config = TestCompressorBase.config + \
"""
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
BR2_PACKAGE_ZIP=y
BR2_PACKAGE_UNZIP=y
"""
compress_cmd = "/bin/sh -c 'zip $1.zip $1' /bin/sh"
decompress_cmd = "unzip"
check_integrity_cmd = "unzip -t"
compressed_file_ext = ".zip"