test_zip.py 441 B

123456789101112131415
  1. from tests.package.test_compressor_base import TestCompressorBase
  2. class TestZip(TestCompressorBase):
  3. __test__ = True
  4. config = TestCompressorBase.config + \
  5. """
  6. BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
  7. BR2_PACKAGE_ZIP=y
  8. BR2_PACKAGE_UNZIP=y
  9. """
  10. compress_cmd = "/bin/sh -c 'zip $1.zip $1' /bin/sh"
  11. decompress_cmd = "unzip"
  12. check_integrity_cmd = "unzip -t"
  13. compressed_file_ext = ".zip"