pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/p5-Test-Exit devel/p5-Test-Exit: import p5-Test-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c1954cde49cf
branches:  trunk
changeset: 413705:c1954cde49cf
user:      mef <mef%pkgsrc.org@localhost>
date:      Sat Mar 21 23:36:28 2020 +0000

description:
devel/p5-Test-Exit: import p5-Test-Exit-0.11

Test::Exit provides some simple tools for testing code that might call
exit(), providing you with the status code without exiting the test
file.

The only criterion tested is that the supplied code does or does not
call exit(). If the code throws an exception, the exception will be
propagated and you will have to catch it yourself. die()ing is not
exiting for the purpose of these tests.

Unlike previous versions of this module, the current version doesn't
use exceptions to do its work, so even if you call exit() inside of an
eval, everything should work.

diffstat:

 devel/p5-Test-Exit/DESCR    |  12 ++++++++++++
 devel/p5-Test-Exit/Makefile |  18 ++++++++++++++++++
 devel/p5-Test-Exit/PLIST    |   4 ++++
 devel/p5-Test-Exit/distinfo |   6 ++++++
 4 files changed, 40 insertions(+), 0 deletions(-)

diffs (56 lines):

diff -r 99031f674989 -r c1954cde49cf devel/p5-Test-Exit/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-Exit/DESCR  Sat Mar 21 23:36:28 2020 +0000
@@ -0,0 +1,12 @@
+Test::Exit provides some simple tools for testing code that might call
+exit(), providing you with the status code without exiting the test
+file.
+
+The only criterion tested is that the supplied code does or does not
+call exit(). If the code throws an exception, the exception will be
+propagated and you will have to catch it yourself. die()ing is not
+exiting for the purpose of these tests.
+
+Unlike previous versions of this module, the current version doesn't
+use exceptions to do its work, so even if you call exit() inside of an
+eval, everything should work.
diff -r 99031f674989 -r c1954cde49cf devel/p5-Test-Exit/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-Exit/Makefile       Sat Mar 21 23:36:28 2020 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2020/03/21 23:36:28 mef Exp $
+
+DISTNAME=      Test-Exit-0.11
+PKGNAME=       p5-${DISTNAME}
+CATEGORIES=    devel perl5
+MASTER_SITES=  https://cpan.metacpan.org/authors/id/A/AR/ARODLAND/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://cpan.metacpan.org/authors/id/A/AR/ARODLAND/
+COMMENT=       Test that some code calls exit() without terminating testing
+LICENSE=       ${PERL5_LICENSE}
+
+TEST_DEPENDS+= p5-Return-MultiLevel-[0-9]*:../../devel/p5-Return-MultiLevel
+
+PERL5_PACKLIST=        auto/Test/Exit/.packlist
+
+.include "../../lang/perl5/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 99031f674989 -r c1954cde49cf devel/p5-Test-Exit/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-Exit/PLIST  Sat Mar 21 23:36:28 2020 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2020/03/21 23:36:28 mef Exp $
+@comment TODO: to fill this file with the file listing:
+@comment TODO: 1. run "/usr/bin/make package"
+@comment TODO: 2. run "/usr/bin/make print-PLIST"
diff -r 99031f674989 -r c1954cde49cf devel/p5-Test-Exit/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/p5-Test-Exit/distinfo       Sat Mar 21 23:36:28 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/03/21 23:36:28 mef Exp $
+
+SHA1 (Test-Exit-0.11.tar.gz) = b5896ca24bf621760036a4913f23ba3e362360a4
+RMD160 (Test-Exit-0.11.tar.gz) = 19483baa0c2854be9a207ae96ebd261fb09f69b9
+SHA512 (Test-Exit-0.11.tar.gz) = cd2ebb191f1d0c64017df9c4de50539985b96251222d88c644dafeb64b7373afdf28cd84d1c58caa78ee5704650f94efdd0e2971bbba962c1aeb799e812f26e4
+Size (Test-Exit-0.11.tar.gz) = 9778 bytes



Home | Main Index | Thread Index | Old Index