
Test::Filesystem - Tester for filesystem content

use Test::Testfilesystem tests => 1;
cmp_filesystem($got_root_dir, $expected_root_dir, $test_name);
# or
cmp_filesystem( { OPTIONS }, $got_root_dir, $expected_root_dir, $test_name);

This test framework compare filesystems (content and meta attribute). You can use it if your perl program are generating files and you don't want to compare file by file.

cmp_filesystem( {OPTIONS}, GOT_ROOT_DIR_PATH, EXPECTED_ROOT_DIR_PATH, NAME )Compares the two given filesystems: GOT/ and EXPECTED/. OPTIONS are unsupported yet.
In the current implementation we compare the following attributes:
Location relative to the given root directory. No symlinks or special files will be checked.
stat() attributes without dev, ctime, blksize, blocks and ino (inode number).
Doing the MD5 dance with every file.
We're not checking the root directory itself, only the content of it. So if the mtime from /a and /b differs, it will checked.

cmp_filesystems by default.

Got ideas? Send them to me.

Erik Wasser, <fuzz at namm.de>

Please report any bugs or feature requests to bug-test-filesystem at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Filesystem. I will be n otified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.
perldoc Test::Filesystem
You can also look for information at:

perl.