From Fedora Project Wiki
(Was misusing the template) |
(TWeak) |
||
Line 7: | Line 7: | ||
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. | 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. | ||
The script will create a directory in the current working directory named "test-squashfs". When run the script will | The script will 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. | ||
<code | <code> | ||
#!/bin/bash | #!/bin/bash | ||
Line 125: | Line 125: | ||
done | done | ||
</code> | |||
|results= | |results= |
Revision as of 15:20, 26 December 2010
Description
Test that compression is reversible for squashfs-tools.
How to test
- You need to have squashfs-tools and rpmdevtools installed.
- 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.
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.
The script will 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.
- !/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.