wakaba / perl-test-directory

Testing directory structure in Perl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NAME

Test::Directory::Diff - Testing the equivalence of file-system directories

SYNOPSIS

use Test::Directory::Diff;

eq_or_diff_dir $dir1, $dir2, 'Compare content of two directories';

DESCRIPTION

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.

FUNCTIONS

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.

SEE ALSO

diff.

DEVELOPMENT

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

HISTORY

1.0 (2010-10-07)

First version.

AUTHOR

Wakaba (id:wakabatan) <wakabatan@hatena.ne.jp>

LICENSE

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.

About

Testing directory structure in Perl