diff options
author | jmbills <42755197+jmbills@users.noreply.github.com> | 2019-10-25 19:18:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-25 19:18:16 +0300 |
commit | 0dbb60593ebb5a62190c0e6cff7f1770493303a2 (patch) | |
tree | 0df2ce67404dbca3ddc4ee063dbfd9ae455be682 /meta-openembedded/meta-perl/recipes-perl/libtest | |
parent | 34a3942845ac3264ce27c648ae5486d302c3e6d8 (diff) | |
parent | cc9cea46d74d280de03c713c8b555153fd811f09 (diff) | |
download | openbmc-0dbb60593ebb5a62190c0e6cff7f1770493303a2.tar.xz |
Merge branch 'intel' into intel2
Diffstat (limited to 'meta-openembedded/meta-perl/recipes-perl/libtest')
-rw-r--r-- | meta-openembedded/meta-perl/recipes-perl/libtest/libtest-nowarnings-perl_1.04.bb | 37 | ||||
-rw-r--r-- | meta-openembedded/meta-perl/recipes-perl/libtest/libtest-warn-perl_0.36.bb | 46 |
2 files changed, 83 insertions, 0 deletions
diff --git a/meta-openembedded/meta-perl/recipes-perl/libtest/libtest-nowarnings-perl_1.04.bb b/meta-openembedded/meta-perl/recipes-perl/libtest/libtest-nowarnings-perl_1.04.bb new file mode 100644 index 000000000..f3c28d39c --- /dev/null +++ b/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/meta-openembedded/meta-perl/recipes-perl/libtest/libtest-warn-perl_0.36.bb b/meta-openembedded/meta-perl/recipes-perl/libtest/libtest-warn-perl_0.36.bb new file mode 100644 index 000000000..c336da80f --- /dev/null +++ b/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" |