Description
Test that compression is reversible for squashfs-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.
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.
Setup
- Install the required
squashfs-tools
andrpmdevtools
packages:yum install squashfs-tools rpmdevtools
How to test
- Download the test script Squashfs-compression-test.sh
- As root, execute the test script using the command:
bash Squashfs-compression-test.sh
. Note any failure messages.
Expected Results
- 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 greptypescript
forfailed
. Successful test output is included below