From 188d0e5f6f3685db4c0228e7a91a876a5f887465 Mon Sep 17 00:00:00 2001 From: Brandon Maier Date: Fri, 10 May 2024 23:55:09 +0000 Subject: [PATCH] support/testing: add zip test Signed-off-by: Brandon Maier Signed-off-by: Thomas Petazzoni (cherry picked from commit 23ef540288e86c50d24f9a7ab8e1e2e66500e024) Signed-off-by: Peter Korsgaard --- DEVELOPERS | 1 + support/testing/tests/package/test_zip.py | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 support/testing/tests/package/test_zip.py diff --git a/DEVELOPERS b/DEVELOPERS index 823bbad88d..e5f5f56881 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -534,6 +534,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 F: package/pdmenu/ diff --git a/support/testing/tests/package/test_zip.py b/support/testing/tests/package/test_zip.py new file mode 100644 index 0000000000..eb2e016988 --- /dev/null +++ b/support/testing/tests/package/test_zip.py @@ -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"