From Fedora Project Wiki

Revision as of 18:46, 5 January 2011 by Bruno (talk | contribs) (Note squashfs-tools is used for live images)


Test that compression is reversible for Package-x-generic-16.pngsquashfs-tools. The compression types tested will be those expected to work with the version of squashfs-tools you have installed and the kernel you are running. These tests are used to make sure squashfs-tools will work as expected for live images.

A test script is available to provide a consistent test result. The test script needs to be run as the root user so that squashfs images can be mounted and to prevent warnings about setting selinux extended attributes when running unsquashfs. The test script will also create a directory in the current working directory named test-squashfs. When run, the script will check if test-squashf/data is already created and if so won't recreate the test data.


  1. Install the required Package-x-generic-16.pngsquashfs-tools and Package-x-generic-16.pngrpmdevtools packages:
    yum install squashfs-tools rpmdevtools

How to test

  1. Download the test script
  2. As root, execute the test script using the command: bash Note any failure messages.

Expected Results

  1. The test script should exit cleanly and not abort early because it was unable to create some file or free disc space running out. There should be no messages with the string failed in them. Typically you might run this using script and then grep typescript for failed. Successful test output is included below