Description
Test that compression is reversible for squashfs-tools.
How to test
Run the provided script as root and note any failure messages. The script needs to be run as root so that squashfs images can be mounted and to prevent warnings about setting selinux extended attributes when running unsquashfs.
You need to have squashfs-tools and rpmdevtools installed.
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.
Run the following script:
- !/bin/bash
- We need rpmdev-vercmp
rpm -q rpmdevtools > /dev/null 2>&1
Expected Results
The test should 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.