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.
GOT/
EXPECTED/
OPTIONS
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).
stat()
dev
ctime
blksize
blocks
ino
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.
/a
/b
cmp_filesystems by default.
cmp_filesystems
.tar.gz
Got ideas? Send them to me.
Erik Wasser, <fuzz at namm.de>
<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.
bug-test-filesystem at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Test::Filesystem
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Filesystem
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Test-Filesystem
CPAN Ratings
http://cpanratings.perl.org/d/Test-Filesystem
Search CPAN
http://search.cpan.org/dist/Test-Filesystem/
perl.
To install Test::Filesystem, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Test::Filesystem
CPAN shell
perl -MCPAN -e shell install Test::Filesystem
For more information on module installation, please visit the detailed CPAN module installation guide.