summaryrefslogtreecommitdiffstats
path: root/support/testing/tests
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2017-12-20 22:27:43 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-12-31 18:20:14 +0100
commit290b4cfe17042f1345e45363d1ce09f04e32f12a (patch)
treee7eedd4a70d21ebb84635041e9928e3693301196 /support/testing/tests
parent90867d8fdf45e7af24cf9e63e3ee8a70f30b479c (diff)
downloadbuildroot-290b4cfe17042f1345e45363d1ce09f04e32f12a.tar.gz
buildroot-290b4cfe17042f1345e45363d1ce09f04e32f12a.zip
core/tests: add test for compressed iso9660
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> [Thomas: really set the transparent compression option, take into account the renaming of the option.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/testing/tests')
-rw-r--r--support/testing/tests/fs/test_iso9660.py41
1 files changed, 41 insertions, 0 deletions
diff --git a/support/testing/tests/fs/test_iso9660.py b/support/testing/tests/fs/test_iso9660.py
index 5d945a347a..68f4840852 100644
--- a/support/testing/tests/fs/test_iso9660.py
+++ b/support/testing/tests/fs/test_iso9660.py
@@ -67,6 +67,27 @@ class TestIso9660Grub2External(infra.basetest.BRTest):
self.assertEqual(exit_code, 1)
+class TestIso9660Grub2ExternalCompress(infra.basetest.BRTest):
+ config = BASIC_CONFIG + \
+ """
+ BR2_TARGET_ROOTFS_ISO9660=y
+ # BR2_TARGET_ROOTFS_ISO9660_INITRD is not set
+ BR2_TARGET_ROOTFS_ISO9660_TRANSPARENT_COMPRESSION=y
+ BR2_TARGET_GRUB2=y
+ BR2_TARGET_GRUB2_BOOT_PARTITION="cd"
+ BR2_TARGET_GRUB2_BUILTIN_MODULES="boot linux ext2 fat part_msdos part_gpt normal biosdisk iso9660"
+ BR2_TARGET_ROOTFS_ISO9660_BOOT_MENU="{}"
+ """.format(infra.filepath("conf/grub2.cfg"))
+
+ def test_run(self):
+ exit_code = test_mount_internal_external(self.emulator,
+ self.builddir, internal=False)
+ self.assertEqual(exit_code, 0)
+
+ exit_code = test_touch_file(self.emulator)
+ self.assertEqual(exit_code, 1)
+
+
class TestIso9660Grub2Internal(infra.basetest.BRTest):
config = BASIC_CONFIG + \
"""
@@ -109,6 +130,26 @@ class TestIso9660SyslinuxExternal(infra.basetest.BRTest):
self.assertEqual(exit_code, 1)
+class TestIso9660SyslinuxExternalCompress(infra.basetest.BRTest):
+ config = BASIC_CONFIG + \
+ """
+ BR2_TARGET_ROOTFS_ISO9660=y
+ # BR2_TARGET_ROOTFS_ISO9660_INITRD is not set
+ BR2_TARGET_ROOTFS_ISO9660_TRANSPARENT_COMPRESSION=y
+ BR2_TARGET_ROOTFS_ISO9660_HYBRID=y
+ BR2_TARGET_ROOTFS_ISO9660_BOOT_MENU="{}"
+ BR2_TARGET_SYSLINUX=y
+ """.format(infra.filepath("conf/isolinux.cfg"))
+
+ def test_run(self):
+ exit_code = test_mount_internal_external(self.emulator,
+ self.builddir, internal=False)
+ self.assertEqual(exit_code, 0)
+
+ exit_code = test_touch_file(self.emulator)
+ self.assertEqual(exit_code, 1)
+
+
class TestIso9660SyslinuxInternal(infra.basetest.BRTest):
config = BASIC_CONFIG + \
"""
OpenPOWER on IntegriCloud