added my Recipes
This commit is contained in:
@@ -0,0 +1,55 @@
|
||||
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-or-later"
|
||||
LIC_FILES_CHKSUM = "file://lib/Test/Deep.pm;beginline=1817;endline=1826;md5=d3ed382cc19bae8ead6076df35a43cbf"
|
||||
|
||||
SRC_URI = "${CPAN_MIRROR}/authors/id/R/RJ/RJBS/Test-Deep-${PV}.tar.gz"
|
||||
SRC_URI[sha256sum] = "b6591f6ccdd853c7efc9ff3c5756370403211cffe46047f082b1cd1611a84e5f"
|
||||
|
||||
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"
|
||||
@@ -0,0 +1,119 @@
|
||||
# NOTE:
|
||||
# You should use perl-module-test-harness instead of this package,
|
||||
# unless you specifically need a newer version than what is provided
|
||||
# by perl in oe-core.
|
||||
|
||||
SUMMARY = "Test::Harness - Run Perl standard test scripts with statistics"
|
||||
DESCRIPTION = "Although, for historical reasons, the Test::Harness \
|
||||
distribution takes its name from this module it now exists only to provide \
|
||||
TAP::Harness with an interface that is somewhat backwards compatible \
|
||||
with Test::Harness 2.xx. If you're writing new code consider using \
|
||||
TAP::Harness directly instead. \
|
||||
\
|
||||
Emulation is provided for runtests and execute_tests but the \
|
||||
pluggable 'Straps' interface that previous versions of Test::Harness \
|
||||
supported is not reproduced here. Straps is now available as a stand \
|
||||
alone module: Test::Harness::Straps. \
|
||||
\
|
||||
See TAP::Parser, TAP::Harness for the main documentation for this \
|
||||
distribution."
|
||||
|
||||
SECTION = "libs"
|
||||
|
||||
HOMEPAGE = "http://testanything.org"
|
||||
|
||||
LICENSE = "Artistic-1.0 | GPL-1.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://README;beginline=29;endline=30;md5=d41d8cd98f00b204e9800998ecf8427e"
|
||||
|
||||
SRC_URI = "${CPAN_MIRROR}/authors/id/L/LE/LEONT/Test-Harness-${PV}.tar.gz"
|
||||
SRC_URI[sha256sum] = "7eb591ea6b499ece6745ff3e80e60cee669f0037f9ccbc4e4511425f593e5297"
|
||||
|
||||
UPSTREAM_CHECK_REGEX = "Test\-Harness\-(?P<pver>(\d+\.\d+))(?!_\d+).tar"
|
||||
|
||||
S = "${WORKDIR}/Test-Harness-${PV}"
|
||||
|
||||
inherit cpan ptest-perl
|
||||
|
||||
RDEPENDS:${PN} += "\
|
||||
perl-module-benchmark \
|
||||
"
|
||||
|
||||
RPROVIDES:${PN} += "libapp-prove-perl \
|
||||
libapp-prove-state-perl \
|
||||
libapp-prove-state-result-perl \
|
||||
libapp-prove-state-result-test-perl \
|
||||
libtap-base-perl \
|
||||
libtap-formatter-base-perl \
|
||||
libtap-formatter-color-perl \
|
||||
libtap-formatter-console-perl \
|
||||
libtap-formatter-console-parallelsession-perl \
|
||||
libtap-formatter-console-session-perl \
|
||||
libtap-formatter-file-perl \
|
||||
libtap-formatter-file-session-perl \
|
||||
libtap-formatter-session-perl \
|
||||
libtap-harness-perl \
|
||||
libtap-harness-env-perl \
|
||||
libtap-object-perl \
|
||||
libtap-parser-perl \
|
||||
libtap-parser-aggregator-perl \
|
||||
libtap-parser-grammar-perl \
|
||||
libtap-parser-iterator-perl \
|
||||
libtap-parser-iterator-array-perl \
|
||||
libtap-parser-iterator-process-perl \
|
||||
libtap-parser-iterator-stream-perl \
|
||||
libtap-parser-iteratorfactory-perl \
|
||||
libtap-parser-multiplexer-perl \
|
||||
libtap-parser-result-perl \
|
||||
libtap-parsser-result-bailout-perl \
|
||||
libtap-parser-result-comment-perl \
|
||||
libtap-parser-result-plan-perl \
|
||||
libtap-parser-result-pragma-perl \
|
||||
libtap-parser-result-test-perl \
|
||||
libtap-parser-result-unknown-perl \
|
||||
libtap-parser-result-version-perl \
|
||||
libtap-parser-result-yaml-perl \
|
||||
libtap-parser-resultfactory-perl \
|
||||
libtap-parser-scheduler-perl \
|
||||
libtap-parser-scheduler-job-perl \
|
||||
libtap-parser-scheduler-spinner-perl \
|
||||
libtap-parser-source-perl \
|
||||
libtap-parser-sourcehandler-perl \
|
||||
libtap-parser-sourcehandler-executable-perl \
|
||||
libtap-parser-sourcehandler-file-perl \
|
||||
libtap-parser-sourcehandler-handle-perl \
|
||||
libtap-parser-sourcehandler-perl-perl \
|
||||
libtap-parser-sourcehandler-rawtap-perl \
|
||||
libtap-parser-yamlish-reader-perl \
|
||||
libtap-parser-yamlish-writer-perl \
|
||||
"
|
||||
|
||||
do_install:prepend() {
|
||||
# these tests are inappropriate on target
|
||||
rm -rf ${B}/t/000-load.t
|
||||
rm -rf ${B}/t/state.t
|
||||
# these tests require "-T" (taint) option on command line
|
||||
rm -rf ${B}/t/aggregator.t
|
||||
rm -rf ${B}/t/bailout.t
|
||||
rm -rf ${B}/t/base.t
|
||||
rm -rf ${B}/t/callbacks.t
|
||||
rm -rf ${B}/t/errors.t
|
||||
rm -rf ${B}/t/nested.t
|
||||
rm -rf ${B}/t/object.t
|
||||
rm -rf ${B}/t/premature-bailout.t
|
||||
rm -rf ${B}/t/results.t
|
||||
rm -rf ${B}/t/streams.t
|
||||
rm -rf ${B}/t/yamlish-output.t
|
||||
rm -rf ${B}/t/compat/version.t
|
||||
}
|
||||
|
||||
do_install:append() {
|
||||
install -d ${D}/usr/local/bin
|
||||
# do not clobber perl-misc /usr/bin/prove
|
||||
install -m 0755 ${B}/bin/prove ${D}/usr/local/bin/
|
||||
rm -rf ${D}${bindir}/prove
|
||||
rm -rf ${D}${bindir}
|
||||
}
|
||||
|
||||
FILES:${PN} += "/usr/local/bin/prove"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
@@ -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-only"
|
||||
|
||||
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"
|
||||
@@ -0,0 +1,45 @@
|
||||
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-or-later"
|
||||
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[sha256sum] = "98ca32e7f2f5ea89b8bfb9a0609977f3d153e242e2e51705126cb954f1a06b57"
|
||||
|
||||
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"
|
||||
Reference in New Issue
Block a user