|
@@ -37,11 +37,14 @@ class TestCpioDracutBase(infra.basetest.BRTest):
|
|
|
BR2_TOOLCHAIN_EXTERNAL=y
|
|
|
BR2_TOOLCHAIN_EXTERNAL_BOOTLIN=y
|
|
|
BR2_INIT_BUSYBOX=y
|
|
|
+ BR2_PACKAGE_CRAMFS=y
|
|
|
BR2_PACKAGE_PV=y
|
|
|
BR2_TARGET_ROOTFS_CPIO=y
|
|
|
BR2_TARGET_ROOTFS_CPIO_DRACUT=y
|
|
|
+ BR2_TARGET_ROOTFS_CPIO_DRACUT_CONF_FILES="{}"
|
|
|
# BR2_TARGET_ROOTFS_TAR is not set
|
|
|
- """
|
|
|
+ """.format(" ".join(["fs/cpio/dracut.conf",
|
|
|
+ "support/testing/tests/fs/test_cpio/dracut-cramfs.conf"]))
|
|
|
|
|
|
def check_dracut(self):
|
|
|
out = subprocess.check_output(["cpio", "--list"],
|
|
@@ -52,6 +55,9 @@ class TestCpioDracutBase(infra.basetest.BRTest):
|
|
|
universal_newlines=True)
|
|
|
# pv should *not* be included in cpio image
|
|
|
self.assertEqual(out.find("bin/pv"), -1)
|
|
|
+ # libz should be, because of cramfs
|
|
|
+ self.assertNotEqual(out.find("usr/bin/mkcramfs"), -1)
|
|
|
+ self.assertNotEqual(out.find("usr/lib/libz.so"), -1)
|
|
|
|
|
|
exit_code = boot_img(self.emulator,
|
|
|
self.builddir)
|