pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/p5-Test-TempDir Import p5-Test-TempDir version 0...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/352a8469e491
branches:  trunk
changeset: 552882:352a8469e491
user:      he <he%pkgsrc.org@localhost>
date:      Sun Jan 11 13:42:03 2009 +0000

description:
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:

 devel/p5-Test-TempDir/DESCR    |  16 ++++++++++++++++
 devel/p5-Test-TempDir/Makefile |  27 +++++++++++++++++++++++++++
 devel/p5-Test-TempDir/distinfo |   5 +++++
 3 files changed, 48 insertions(+), 0 deletions(-)

diffs (60 lines):

diff -r 5fb0f11c886a -r 352a8469e491 devel/p5-Test-TempDir/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-TempDir/DESCR       Sun Jan 11 13:42:03 2009 +0000
@@ -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 -r 5fb0f11c886a -r 352a8469e491 devel/p5-Test-TempDir/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-TempDir/Makefile    Sun Jan 11 13:42:03 2009 +0000
@@ -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@localhost
+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 -r 5fb0f11c886a -r 352a8469e491 devel/p5-Test-TempDir/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-TempDir/distinfo    Sun Jan 11 13:42:03 2009 +0000
@@ -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



Home | Main Index | Thread Index | Old Index