Test a few very basic defragmentation scenarios.
authorEric Sandeen <sandeen@sandeen.net>
Mon, 10 Aug 2009 18:10:26 +0000 (13:10 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 10 Aug 2009 18:10:26 +0000 (13:10 -0500)
commit76f4a7b9faf043bec46571019b62b59d48e8013b
treeb1671c30ef7663cb58dd6b319707914260aafdb9
parentf11b7e5ff99f39052bce10a9ac1797927fd7330c
Test a few very basic defragmentation scenarios.

This test creates some files, runs defrag on them,
and compares the before/after fragmentation as well
as file md5sums and timestamps.

The test currently expects to find e4defrag in
/usr/bin

It should be relatively easy to add more interestingly
fragmented files to the tests, as well as to test
that memory-mapped files aren't touched, etc -
but this gives us a framework.

V2: remount before checking file contents, and create
common.defrag.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
218 [new file with mode: 0755]
218.out [new file with mode: 0644]
common.defrag [new file with mode: 0644]
common.rc
group