diff options
author | he <he@pkgsrc.org> | 2009-01-11 13:42:03 +0000 |
---|---|---|
committer | he <he@pkgsrc.org> | 2009-01-11 13:42:03 +0000 |
commit | 5bfb4de5f3d58ee7ff9fde0202274f84c33c7c2f (patch) | |
tree | ca7fb47634937c3b6da920266a4845b07537f644 /devel/p5-Test-TempDir | |
parent | b1619b45f9c8a3f8fa010e49ea4e6e9e51bb79f4 (diff) | |
download | pkgsrc-5bfb4de5f3d58ee7ff9fde0202274f84c33c7c2f.tar.gz |
Import p5-Test-TempDir version 0.04.
Test::TempDir provides temporary directory creation with testing in mind.
The differences between using this and using File::Temp are:
* If t/tmp is available (writable, creatable, etc) it's preferred
over $ENV{TMPDIR} etc. Otherwise a temporary directory will be
used.
This is temp_root
* Lockfiles are used on t/tmp, to prevent race conditions when
running under a parallel test harness.
* The temp_root is cleaned at the end of a test run, but not
if tests failed.
* temp_root is emptied at the begining of a test run unconditionally.
* The default policy is not to clean the individual tempfiles
and tempdirs within temp_root, in order to aid in debugging of
failed tests.
Diffstat (limited to 'devel/p5-Test-TempDir')
-rw-r--r-- | devel/p5-Test-TempDir/DESCR | 16 | ||||
-rw-r--r-- | devel/p5-Test-TempDir/Makefile | 27 | ||||
-rw-r--r-- | devel/p5-Test-TempDir/distinfo | 5 |
3 files changed, 48 insertions, 0 deletions
diff --git a/devel/p5-Test-TempDir/DESCR b/devel/p5-Test-TempDir/DESCR new file mode 100644 index 00000000000..2ca4f74fd8a --- /dev/null +++ b/devel/p5-Test-TempDir/DESCR @@ -0,0 +1,16 @@ +Test::TempDir provides temporary directory creation with testing in mind. + +The differences between using this and using File::Temp are: + + * If t/tmp is available (writable, creatable, etc) it's preferred + over $ENV{TMPDIR} etc. Otherwise a temporary directory will be + used. + This is temp_root + * Lockfiles are used on t/tmp, to prevent race conditions when + running under a parallel test harness. + * The temp_root is cleaned at the end of a test run, but not + if tests failed. + * temp_root is emptied at the begining of a test run unconditionally. + * The default policy is not to clean the individual tempfiles + and tempdirs within temp_root, in order to aid in debugging of + failed tests. diff --git a/devel/p5-Test-TempDir/Makefile b/devel/p5-Test-TempDir/Makefile new file mode 100644 index 00000000000..9cfdce96ec3 --- /dev/null +++ b/devel/p5-Test-TempDir/Makefile @@ -0,0 +1,27 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/01/11 13:42:03 he Exp $ + +DISTNAME= Test-TempDir-0.04 +PKGNAME= p5-${DISTNAME} +CATEGORIES= devel perl5 +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Test/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://search.cpan.org/dist/Test-TempDir/ +COMMENT= Temporary files support for testing + +DEPENDS+= p5-File-NFSLock>=0:../../devel/p5-File-NFSLock +DEPENDS+= {p5-File-Path>=2.04,perl>=5.10}:../../devel/p5-File-Path +DEPENDS+= p5-Moose>=0.50:../../devel/p5-Moose +DEPENDS+= p5-MooseX-Types-Path-Class>=0:../../devel/p5-MooseX-Types-Path-Class +DEPENDS+= p5-namespace-clean>=0.08:../../devel/p5-namespace-clean +DEPENDS+= p5-Path-Class>=0:../../devel/p5-Path-Class +DEPENDS+= p5-Sub-Exporter>=0:../../devel/p5-Sub-Exporter +DEPENDS+= p5-Test-use-ok>=0:../../devel/p5-Test-use-ok + +USE_LANGUAGES= # empty +PERL5_PACKLIST= auto/Test/TempDir/.packlist + +PKG_DESTDIR_SUPPORT= user-destdir + +.include "../../lang/perl5/module.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/p5-Test-TempDir/distinfo b/devel/p5-Test-TempDir/distinfo new file mode 100644 index 00000000000..055ef8cc645 --- /dev/null +++ b/devel/p5-Test-TempDir/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/01/11 13:42:03 he Exp $ + +SHA1 (Test-TempDir-0.04.tar.gz) = 7eb8feb31d17ca559c31cb1a692439470d8ad6eb +RMD160 (Test-TempDir-0.04.tar.gz) = 86e6f200ad4de93aa49271930e85de968e911b74 +Size (Test-TempDir-0.04.tar.gz) = 7034 bytes |