From Fedora Project Wiki

Revision as of 15:20, 26 December 2010 by Bruno (talk | contribs) (TWeak)

Description

Test that compression is reversible for squashfs-tools.


How to test

  1. You need to have squashfs-tools and rpmdevtools installed.
  2. 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.

  1. !/bin/bash
  1. We need rpmdev-vercmp

rpm -q rpmdevtools > /dev/null 2>&1

Expected Results

  1. 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.