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.
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.
- 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
failedin them. Typically you might run this using script and then grep
failed. Successful test output is included below