diff options
Diffstat (limited to 'external/meta-openembedded/meta-perl/recipes-perl/libtest')
4 files changed, 168 insertions, 0 deletions
diff --git a/external/meta-openembedded/meta-perl/recipes-perl/libtest/libtest-deep-perl_1.130.bb b/external/meta-openembedded/meta-perl/recipes-perl/libtest/libtest-deep-perl_1.130.bb new file mode 100644 index 00000000..c82a1a17 --- /dev/null +++ b/external/meta-openembedded/meta-perl/recipes-perl/libtest/libtest-deep-perl_1.130.bb @@ -0,0 +1,56 @@ +SUMMARY = "Test::Deep - Extremely flexible deep comparison" +DESCRIPTION = "If you don't know anything about automated testing in Perl \ +then you should probably read about Test::Simple and Test::More before \ +preceding. Test::Deep uses the Test::Builder framework. \ +\ +Test::Deep gives you very flexible ways to check that the result you got is \ +the result you were expecting. At its simplest it compares two structures \ +by going through each level, ensuring that the values match, that arrays and \ +hashes have the same elements and that references are blessed into the \ +correct class. It also handles circular data structures without getting \ +caught in an infinite loop. \ +\ +Where it becomes more interesting is in allowing you to do something besides \ +simple exact comparisons. With strings, the \'eq\' operator checks that 2 \ +strings are exactly equal but sometimes that's not what you want. When you \ +don't know exactly what the string should be but you do know some things \ +about how it should look, \'eq\' is no good and you must use pattern matching \ +instead. Test::Deep provides pattern matching for complex data structures \ +distribution." + +SECTION = "libs" + +HOMEPAGE = "http://github.com/rjbs/Test-Deep/" + +LICENSE = "Artistic-1.0 | GPL-1.0+" +LIC_FILES_CHKSUM = "file://lib/Test/Deep.pm;beginline=1817;endline=1826;md5=a897a42bafc3422cab17c2eb94f87a7c" + +SRC_URI = "${CPAN_MIRROR}/authors/id/R/RJ/RJBS/Test-Deep-${PV}.tar.gz" +SRC_URI[md5sum] = "d466e471108f7f7a5df3802cb13761ac" +SRC_URI[sha256sum] = "4064f494f5f62587d0ae501ca439105821ee5846c687dc6503233f55300a7c56" + +UPSTREAM_CHECK_REGEX = "Test\-Deep\-(?P<pver>(\d+\.\d+))(?!_\d+).tar" + +S = "${WORKDIR}/Test-Deep-${PV}" + +inherit cpan ptest-perl + +RDEPENDS_${PN} += " \ + perl-module-dynaloader \ + perl-module-exporter \ + perl-module-fcntl \ + perl-module-list-util \ + perl-module-scalar-util \ + perl-module-strict \ + perl-module-vars \ + perl-module-warnings \ +" + +RDEPENDS_${PN}-ptest += " \ + perl-module-if \ + perl-module-lib \ + perl-module-test-more \ + perl-module-test-tester \ +" + +BBCLASSEXTEND = "native" diff --git a/external/meta-openembedded/meta-perl/recipes-perl/libtest/libtest-nowarnings-perl_1.04.bb b/external/meta-openembedded/meta-perl/recipes-perl/libtest/libtest-nowarnings-perl_1.04.bb new file mode 100644 index 00000000..f3c28d39 --- /dev/null +++ b/external/meta-openembedded/meta-perl/recipes-perl/libtest/libtest-nowarnings-perl_1.04.bb @@ -0,0 +1,37 @@ +SUMMARY = "Make sure you didn't emit any warnings while testing" +DESCRIPTION = "In general, your tests shouldn't produce warnings. This \ +modules causes any warnings to be captured and stored. It automatically \ +adds an extra test that will run when your script ends to check that there \ +were no warnings. If there were any warings, the test will give a \\"not ok\\" \ +and diagnostics of where, when and what the warning was, including a stack \ +trace of what was going on when the it occurred.\ +\ +If some of your tests are supposed to produce warnings then you should \ +be capturing and checking them with Test::Warn, that way \ +Test::NoWarnings will not see them and so not complain.\ +\ +The test is run by an \\"END\\" block in Test::NoWarnings. It will not be \ +run when any forked children exit." + +SECTION = "libs" +LICENSE = "LGPL-2.1" + +HOMEPAGE= "https://metacpan.org/release/Test-NoWarnings" + +LIC_FILES_CHKSUM = "file://LICENSE;md5=d8045f3b8f929c1cb29a1e3fd737b499" + +CPAN_PACKAGE = "Test-NoWarnings" +CPAN_AUTHOR = "ADAMK" + +SRC_URI = "${CPAN_MIRROR}/authors/id/A/AD/${CPAN_AUTHOR}/${CPAN_PACKAGE}-${PV}.tar.gz" + +SRC_URI[md5sum] = "682ed043f7d3e38f3dfd8745fd21c49a" +SRC_URI[sha256sum] = "638a57658cb119af1fe5b15e73d47c2544dcfef84af0c6b1b2e97f08202b686c" + +RDEPENDS_${PN} += "perl-module-test-builder perl-module-test-more perl-module-test-tester" + +S = "${WORKDIR}/${CPAN_PACKAGE}-${PV}" + +inherit cpan ptest-perl + +BBCLASSEXTEND = "native nativesdk" diff --git a/external/meta-openembedded/meta-perl/recipes-perl/libtest/libtest-warn-perl_0.36.bb b/external/meta-openembedded/meta-perl/recipes-perl/libtest/libtest-warn-perl_0.36.bb new file mode 100644 index 00000000..c336da80 --- /dev/null +++ b/external/meta-openembedded/meta-perl/recipes-perl/libtest/libtest-warn-perl_0.36.bb @@ -0,0 +1,46 @@ +SUMMARY = "Test::Warn - Perl extension to test methods for warnings" +DESCRIPTION = "This module provides a few convenience methods for testing \ +warning based code. \ +\ +If you are not already familiar with the Test::More manpage now would be \ +the time to go take a look. \ +" + +SECTION = "libs" +HOMEPAGE= "https://metacpan.org/release/Test-Warn" + +LICENSE = "Artistic-1.0 | GPL-1.0+" +LIC_FILES_CHKSUM = "file://README;beginline=73;endline=78;md5=42b423d91c92ba59c215835a2ee9b57a" + +CPAN_PACKAGE = "Test-Warn" +CPAN_AUTHOR = "BIGJ" + +SRC_URI = "${CPAN_MIRROR}/authors/id/B/BI/${CPAN_AUTHOR}/${CPAN_PACKAGE}-${PV}.tar.gz" + +SRC_URI[md5sum] = "3d958f43d36db263994affde5da09b51" +SRC_URI[sha256sum] = "ecbca346d379cef8d3c0e4ac0c8eb3b2613d737ffaaeae52271c38d7bf3c6cda" + +S = "${WORKDIR}/${CPAN_PACKAGE}-${PV}" + +inherit cpan ptest-perl + +do_install_ptest() { + cp -r ${B}/blib ${D}${PTEST_PATH} + chown -R root:root ${D}${PTEST_PATH} +} + +RDEPENDS_${PN} += " \ + libsub-uplevel-perl \ + perl-module-blib \ + perl-module-carp \ + perl-module-test-builder \ + perl-module-test-builder-tester \ + perl-module-test-tester \ +" + +RDEPENDS_${PN}-ptest += " \ + perl-module-file-spec \ + perl-module-test-more \ +" + +BBCLASSEXTEND = "native nativesdk" diff --git a/external/meta-openembedded/meta-perl/recipes-perl/libtest/libtest-warnings-perl_0.028.bb b/external/meta-openembedded/meta-perl/recipes-perl/libtest/libtest-warnings-perl_0.028.bb new file mode 100644 index 00000000..f2dda194 --- /dev/null +++ b/external/meta-openembedded/meta-perl/recipes-perl/libtest/libtest-warnings-perl_0.028.bb @@ -0,0 +1,29 @@ +# Copyright (C) 2020 Jens Rehsack <sno@netbsd.org> +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "If you've ever tried to use Test::NoWarnings to confirm there are no \ +warnings generated by your tests, combined with the convenience of \ +\\"done_testing\\" to not have to declare a test count, you'll have discovered \ +that these two features do not play well together, as the test count will \ +be calculated *before* the warnings test is run, resulting in a TAP error. \ +(See "examples/test_nowarnings.pl" in this distribution for a \ +demonstration.)" + +SECTION = "libs" +LICENSE = "Artistic-1.0 | GPL-1.0+" + +HOMEPAGE= "https://metacpan.org/release/Test-Warnings" + +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/Artistic-1.0;md5=cda03bbdc3c1951996392b872397b798 \ +file://${COMMON_LICENSE_DIR}/GPL-1.0;md5=e9e36a9de734199567a4d769498f743d" + +SRC_URI = "https://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-Warnings-${PV}.tar.gz" + +SRC_URI[md5sum] = "cd007342017fedfb02d6fde75602e473" +SRC_URI[sha256sum] = "26fda9f8d279e943d27e43a4a3a5cea8a6592cd36e7308695f8dc6602262c0e0" + +S = "${WORKDIR}/Test-Warnings-${PV}" + +inherit cpan ptest-perl + +BBCLASSEXTEND = "native nativesdk" |