wok-current rev 24257
updated perl-test-nowarnings (1.04 -> 1.06)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Jan 02 10:05:21 2022 +0100 (2022-01-02) |
parents | fb93ed2f2940 |
children | eaee9007e7d8 |
files | perl-test-nowarnings/description.txt perl-test-nowarnings/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/perl-test-nowarnings/description.txt Sun Jan 02 10:05:21 2022 +0100 1.3 @@ -0,0 +1,14 @@ 1.4 +In general, your tests shouldn't produce warnings. 1.5 +This modules causes any warnings to be captured and stored. 1.6 +It automatically adds an extra test that will run when your script ends 1.7 +to check that there were no warnings. 1.8 +If there were any warnings, the test will give a "not ok" and diagnostics 1.9 +of where, when and what the warning was, including a stack trace of what 1.10 +was going on when the it occurred. 1.11 + 1.12 +If some of your tests are supposed to produce warnings then you should be 1.13 +capturing and checking them with Test::Warn, that way Test::NoWarnings 1.14 +will not see them and so not complain. 1.15 + 1.16 +The test is run by an END block in Test::NoWarnings. 1.17 +It will not be run when any forked children exit.
2.1 --- a/perl-test-nowarnings/receipt Sun Jan 02 10:02:41 2022 +0100 2.2 +++ b/perl-test-nowarnings/receipt Sun Jan 02 10:05:21 2022 +0100 2.3 @@ -1,18 +1,19 @@ 2.4 # SliTaz package receipt. 2.5 2.6 PACKAGE="perl-test-nowarnings" 2.7 -VERSION="1.04" 2.8 +VERSION="1.06" 2.9 CATEGORY="development" 2.10 SHORT_DESC="Make sure you don't emit any warning while testing" 2.11 MAINTAINER="slaxemulator@gmail.com" 2.12 -LICENSE="LGPL2.1" 2.13 -WEB_SITE="https://metacpan.org/release/Test-NoWarnings" 2.14 +LICENSE="GPL" 2.15 +WEB_SITE="https://metacpan.org/pod/Test::NoWarnings" 2.16 + 2.17 SOURCE="Test-NoWarnings" 2.18 TARBALL="$SOURCE-$VERSION.tar.gz" 2.19 -WGET_URL="https://metacpan.org/CPAN/authors/id/A/AD/ADAMK/$TARBALL" 2.20 +WGET_URL="https://www.cpan.org/modules/by-module/Test/$TARBALL" 2.21 2.22 -DEPENDS="perl-test-tester" 2.23 -BUILD_DEPENDS="perl-test-tester" 2.24 +DEPENDS="perl perl-test-tester" 2.25 +BUILD_DEPENDS="perl perl-test-tester" 2.26 2.27 current_version() 2.28 { 2.29 @@ -23,7 +24,6 @@ 2.30 # Rules to configure and make the package. 2.31 compile_rules() 2.32 { 2.33 - cd $src 2.34 perl Makefile.PL && 2.35 make && 2.36 make DESTDIR=$DESTDIR install 2.37 @@ -32,5 +32,5 @@ 2.38 # Rules to gen a SliTaz package suitable for Tazpkg. 2.39 genpkg_rules() 2.40 { 2.41 - cp -a $install/usr $fs 2.42 + cook_copy_folders lib 2.43 }