1*4882a593SmuzhiyunSUMMARY = "Make sure you didn't emit any warnings while testing" 2*4882a593SmuzhiyunDESCRIPTION = "In general, your tests shouldn't produce warnings. This \ 3*4882a593Smuzhiyunmodules causes any warnings to be captured and stored. It automatically \ 4*4882a593Smuzhiyunadds an extra test that will run when your script ends to check that there \ 5*4882a593Smuzhiyunwere no warnings. If there were any warings, the test will give a \\"not ok\\" \ 6*4882a593Smuzhiyunand diagnostics of where, when and what the warning was, including a stack \ 7*4882a593Smuzhiyuntrace of what was going on when the it occurred.\ 8*4882a593Smuzhiyun\ 9*4882a593SmuzhiyunIf some of your tests are supposed to produce warnings then you should \ 10*4882a593Smuzhiyunbe capturing and checking them with Test::Warn, that way \ 11*4882a593SmuzhiyunTest::NoWarnings will not see them and so not complain.\ 12*4882a593Smuzhiyun\ 13*4882a593SmuzhiyunThe test is run by an \\"END\\" block in Test::NoWarnings. It will not be \ 14*4882a593Smuzhiyunrun when any forked children exit." 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunSECTION = "libs" 17*4882a593SmuzhiyunLICENSE = "LGPL-2.1-only" 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunHOMEPAGE= "https://metacpan.org/release/Test-NoWarnings" 20*4882a593Smuzhiyun 21*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://LICENSE;md5=d8045f3b8f929c1cb29a1e3fd737b499" 22*4882a593Smuzhiyun 23*4882a593SmuzhiyunCPAN_PACKAGE = "Test-NoWarnings" 24*4882a593SmuzhiyunCPAN_AUTHOR = "ADAMK" 25*4882a593Smuzhiyun 26*4882a593SmuzhiyunSRC_URI = "${CPAN_MIRROR}/authors/id/A/AD/${CPAN_AUTHOR}/${CPAN_PACKAGE}-${PV}.tar.gz" 27*4882a593Smuzhiyun 28*4882a593SmuzhiyunSRC_URI[md5sum] = "682ed043f7d3e38f3dfd8745fd21c49a" 29*4882a593SmuzhiyunSRC_URI[sha256sum] = "638a57658cb119af1fe5b15e73d47c2544dcfef84af0c6b1b2e97f08202b686c" 30*4882a593Smuzhiyun 31*4882a593SmuzhiyunRDEPENDS:${PN} += "perl-module-test-builder perl-module-test-more perl-module-test-tester" 32*4882a593Smuzhiyun 33*4882a593SmuzhiyunS = "${WORKDIR}/${CPAN_PACKAGE}-${PV}" 34*4882a593Smuzhiyun 35*4882a593Smuzhiyuninherit cpan ptest-perl 36*4882a593Smuzhiyun 37*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk" 38