From Fedora Project Wiki

Revision as of 14:59, 26 December 2010 by Bruno (talk | contribs) (Initial shot at squashfs-tools test case)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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:

  1. !/bin/bash
  1. 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 starting with either "Mounted test failed" or "Extract test failed". None of mksquashfs, unsquashfs or mount commands should report failure.