Hello,
I have a problem with Test::Version - there is simple example in
attached tar file:
.
|-- Makefile
|-- lib
| `-- Module
| `-- Name.pm
`-- t
|-- 01-version.t
`-- 02-version-new.t
Module/Name/pm - stub module that has VERSION inside.
t/01-version.t - test version by Test::Version
t/02-version-new.t - test for check version that I wrote
If I run
make test
01-version.t failed, but my test is ok. If I rigth understand test with
Test::Version must be in directory with modules, but in standard cpan
distribution modules in 'lib' directory, tests in 't'.
I propose add to Test::Version function:
all_version_ok( @dirs ) - test version for all modules in directories
from @dirs
also needed for it function:
get_all_modules()
get_version()
get_module_count()
and %fs;
all this function you can get from 02-version-new.t
for integration with Test::Version replace 'ok' on '$Test->ok'
------------------------------------------------------------
Test::Version 0.02
perl -v
This is perl, v5.10.1 (*) built for i386-freebsd-thread-multi-64int
uname -a
FreeBSD 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010
/usr/obj/usr/src/sys/GENERIC i386
Subject: | Module-Name.tar.gz |
Message body not shown because it is not plain text.