SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
19
devel/p5-Test-Unit/Makefile
Normal file
19
devel/p5-Test-Unit/Makefile
Normal file
|
@ -0,0 +1,19 @@
|
|||
COMMENT = Perl unit testing framework
|
||||
|
||||
DISTNAME = Test-Unit-0.25
|
||||
REVISION = 3
|
||||
|
||||
CATEGORIES = devel
|
||||
|
||||
# Perl
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
MODULES = cpan
|
||||
|
||||
RUN_DEPENDS = devel/p5-Class-Inner \
|
||||
devel/p5-Devel-Symdump \
|
||||
devel/p5-Error
|
||||
|
||||
PKG_ARCH = *
|
||||
|
||||
.include <bsd.port.mk>
|
2
devel/p5-Test-Unit/distinfo
Normal file
2
devel/p5-Test-Unit/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (Test-Unit-0.25.tar.gz) = W9NrcmK4Sa7wdRDfUwgfOFiJOlgwIfjoMdmkl74x368=
|
||||
SIZE (Test-Unit-0.25.tar.gz) = 322322
|
14
devel/p5-Test-Unit/patches/patch-lib_Test_Unit_Assert_pm
Normal file
14
devel/p5-Test-Unit/patches/patch-lib_Test_Unit_Assert_pm
Normal file
|
@ -0,0 +1,14 @@
|
|||
Newer Perl returns hash keys in random order, make error deterministic.
|
||||
|
||||
Index: lib/Test/Unit/Assert.pm
|
||||
--- lib/Test/Unit/Assert.pm.orig
|
||||
+++ lib/Test/Unit/Assert.pm
|
||||
@@ -315,7 +315,7 @@ sub _eq_hash {
|
||||
|
||||
my $ok = 1;
|
||||
my $bigger = keys %$a1 > keys %$a2 ? $a1 : $a2;
|
||||
- foreach my $k (keys %$bigger) {
|
||||
+ foreach my $k (sort keys %$bigger) {
|
||||
my $e1 = exists $a1->{$k} ? $a1->{$k} : $DNE;
|
||||
my $e2 = exists $a2->{$k} ? $a2->{$k} : $DNE;
|
||||
|
14
devel/p5-Test-Unit/patches/patch-lib_Test_Unit_TestCase_pm
Normal file
14
devel/p5-Test-Unit/patches/patch-lib_Test_Unit_TestCase_pm
Normal file
|
@ -0,0 +1,14 @@
|
|||
Newer Perl does not allow defined with an array.
|
||||
|
||||
Index: lib/Test/Unit/TestCase.pm
|
||||
--- lib/Test/Unit/TestCase.pm.orig
|
||||
+++ lib/Test/Unit/TestCase.pm
|
||||
@@ -103,7 +103,7 @@ sub list_tests {
|
||||
my $class = ref($_[0]) || $_[0];
|
||||
my @tests = ();
|
||||
no strict 'refs';
|
||||
- if (defined(@{"$class\::TESTS"})) {
|
||||
+ if (@{"$class\::TESTS"}) {
|
||||
push @tests, @{"$class\::TESTS"};
|
||||
}
|
||||
else {
|
23
devel/p5-Test-Unit/patches/patch-t_tlib_AssertTest_pm
Normal file
23
devel/p5-Test-Unit/patches/patch-t_tlib_AssertTest_pm
Normal file
|
@ -0,0 +1,23 @@
|
|||
Newer Perl prints regex modifiers differently.
|
||||
|
||||
Index: t/tlib/AssertTest.pm
|
||||
--- t/tlib/AssertTest.pm.orig
|
||||
+++ t/tlib/AssertTest.pm
|
||||
@@ -70,7 +70,7 @@ sub test_assert {
|
||||
|
||||
'bang' => [ __LINE__, sub { shift->assert(0, 'bang') } ],
|
||||
'bang' => [ __LINE__, sub { shift->assert('', 'bang') } ],
|
||||
- "'qux' did not match /(?-xism:foo)/"
|
||||
+ "'qux' did not match /(?^:foo)/"
|
||||
=> [ __LINE__, sub { shift->assert(qr/foo/, 'qux') } ],
|
||||
'bang' => [ __LINE__, sub { shift->assert(qr/foo/, 'qux', 'bang') } ],
|
||||
'a ne b'=> [ __LINE__, sub { shift->assert($coderef, 'a', 'b') } ],
|
||||
@@ -253,7 +253,7 @@ sub test_ok_not_equals {
|
||||
q{expected '', got 'foo'} => [ 'foo', '' ],
|
||||
q{expected 'foo', got ''} => [ '', 'foo' ],
|
||||
q{expected 5, got 4} => [ $adder, 5 ],
|
||||
- q{'foo' did not match /(?-xism:x)/} => [ 'foo', qr/x/ ],
|
||||
+ q{'foo' did not match /(?^:x)/} => [ 'foo', qr/x/ ],
|
||||
);
|
||||
my @tests = ();
|
||||
while (@checks) {
|
4
devel/p5-Test-Unit/pkg/DESCR
Normal file
4
devel/p5-Test-Unit/pkg/DESCR
Normal file
|
@ -0,0 +1,4 @@
|
|||
Test::Unit is a framework which is intended to support unit testing
|
||||
in an object-oriented development paradigm (with support for
|
||||
inheritance of tests etc.) and is derived from the JUnit testing
|
||||
framework for Java by Kent Beck and Erich Gamma.
|
63
devel/p5-Test-Unit/pkg/PLIST
Normal file
63
devel/p5-Test-Unit/pkg/PLIST
Normal file
|
@ -0,0 +1,63 @@
|
|||
${P5SITE}/Test/
|
||||
${P5SITE}/Test/TestLister.pl
|
||||
${P5SITE}/Test/TestRunner.pl
|
||||
${P5SITE}/Test/TkTestRunner.pl
|
||||
${P5SITE}/Test/Unit/
|
||||
${P5SITE}/Test/Unit.pm
|
||||
${P5SITE}/Test/Unit/Assert.pm
|
||||
${P5SITE}/Test/Unit/Assertion/
|
||||
${P5SITE}/Test/Unit/Assertion.pm
|
||||
${P5SITE}/Test/Unit/Assertion/Boolean.pm
|
||||
${P5SITE}/Test/Unit/Assertion/CodeRef.pm
|
||||
${P5SITE}/Test/Unit/Assertion/Exception.pm
|
||||
${P5SITE}/Test/Unit/Assertion/Regexp.pm
|
||||
${P5SITE}/Test/Unit/Debug.pm
|
||||
${P5SITE}/Test/Unit/Decorator.pm
|
||||
${P5SITE}/Test/Unit/Error.pm
|
||||
${P5SITE}/Test/Unit/Exception.pm
|
||||
${P5SITE}/Test/Unit/Failure.pm
|
||||
${P5SITE}/Test/Unit/HarnessUnit.pm
|
||||
${P5SITE}/Test/Unit/Listener.pm
|
||||
${P5SITE}/Test/Unit/Loader.pm
|
||||
${P5SITE}/Test/Unit/Procedural.pm
|
||||
${P5SITE}/Test/Unit/Result.pm
|
||||
${P5SITE}/Test/Unit/Runner/
|
||||
${P5SITE}/Test/Unit/Runner.pm
|
||||
${P5SITE}/Test/Unit/Runner/Terminal.pm
|
||||
${P5SITE}/Test/Unit/Setup.pm
|
||||
${P5SITE}/Test/Unit/Test.pm
|
||||
${P5SITE}/Test/Unit/TestCase.pm
|
||||
${P5SITE}/Test/Unit/TestRunner.pm
|
||||
${P5SITE}/Test/Unit/TestSuite.pm
|
||||
${P5SITE}/Test/Unit/TkTestRunner.pm
|
||||
${P5SITE}/Test/Unit/Tutorial.pm
|
||||
${P5SITE}/Test/Unit/UnitHarness.pm
|
||||
${P5SITE}/Test/Unit/Warning.pm
|
||||
@man man/man3p/Test::Unit.3p
|
||||
@man man/man3p/Test::Unit::Assert.3p
|
||||
@man man/man3p/Test::Unit::Assertion.3p
|
||||
@man man/man3p/Test::Unit::Assertion::Boolean.3p
|
||||
@man man/man3p/Test::Unit::Assertion::CodeRef.3p
|
||||
@man man/man3p/Test::Unit::Assertion::Exception.3p
|
||||
@man man/man3p/Test::Unit::Assertion::Regexp.3p
|
||||
@man man/man3p/Test::Unit::Debug.3p
|
||||
@man man/man3p/Test::Unit::Decorator.3p
|
||||
@man man/man3p/Test::Unit::Error.3p
|
||||
@man man/man3p/Test::Unit::Exception.3p
|
||||
@man man/man3p/Test::Unit::Failure.3p
|
||||
@man man/man3p/Test::Unit::HarnessUnit.3p
|
||||
@man man/man3p/Test::Unit::Listener.3p
|
||||
@man man/man3p/Test::Unit::Loader.3p
|
||||
@man man/man3p/Test::Unit::Procedural.3p
|
||||
@man man/man3p/Test::Unit::Result.3p
|
||||
@man man/man3p/Test::Unit::Runner.3p
|
||||
@man man/man3p/Test::Unit::Runner::Terminal.3p
|
||||
@man man/man3p/Test::Unit::Setup.3p
|
||||
@man man/man3p/Test::Unit::Test.3p
|
||||
@man man/man3p/Test::Unit::TestCase.3p
|
||||
@man man/man3p/Test::Unit::TestRunner.3p
|
||||
@man man/man3p/Test::Unit::TestSuite.3p
|
||||
@man man/man3p/Test::Unit::TkTestRunner.3p
|
||||
@man man/man3p/Test::Unit::Tutorial.3p
|
||||
@man man/man3p/Test::Unit::UnitHarness.3p
|
||||
@man man/man3p/Test::Unit::Warning.3p
|
Loading…
Add table
Add a link
Reference in a new issue