Test::Directory::Diff - Testing the equivalence of file-system directories
use Test::Directory::Diff;
eq_or_diff_dir $dir1, $dir2, 'Compare content of two directories';
The Test::Directory::Diff
module provides a test assertion to ensure that two given directories contain same content. The equivalence is determined by the diff
command.
The Test::Directory::Diff
module exports a test function by default:
- eq_or_diff_dir DIR1, DIR2, [NAME]
-
Compares the contents of two directories. Any differences that can be compared by the
diff
command with-ur --text --new-file
options can be detected by this test.Note that the location of the
diff
command and options can be customized by$Test::Directory::Diff::DIFF_COMAND
and@Test::Directory::Diff::DIFF_OPTION
variables.
diff
.
Latest version of the module is available from GitHub repository <https://github.com/wakaba/perl-test-directory>.
Tests are automatically run by Travis CI <http://travis-ci.org/wakaba/perl-test-directory>.
Likely outdated tarball package of the module is available at <http://wakaba.github.com/packages/perl/#Test-Directory-Diff>.
- 1.0 (2010-10-07)
-
First version.
Wakaba (id:wakabatan) <wakabatan@hatena.ne.jp>
Copyright 2010 Hatena <http://www.hatena.ne.jp/>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.