support/testing: add zip test

Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 23ef540288)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Brandon Maier 2024-05-10 23:55:09 +00:00 committed by Peter Korsgaard
parent f3248d0b5c
commit 188d0e5f6f
2 changed files with 16 additions and 0 deletions

View File

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