diff options
author | Jesse Zhang <sen.zhang@windriver.com> | 2013-05-21 10:43:04 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-24 14:07:02 +0100 |
commit | 364cad5d8eecfec74a7be8cf93e75cd63031101f (patch) | |
tree | 859f732b76abcf2fa18eae9f9ae84e80033ec7d3 /meta/recipes-devtools/perl/perl-tests.inc | |
parent | 6022e81570b80232f272a1aa474e8ced3a089382 (diff) | |
download | openembedded-core-364cad5d8eecfec74a7be8cf93e75cd63031101f.tar.gz |
perl-tests: convert to ptest
On 05/17/2013 05:31 PM, Björn Stenberg wrote:
> Unless there are clear advantages with patching t/TEST that I have overlooked, I suggest using sed in run-ptest instead.
Ok.. Here is the new commit.
Removed the patch and added a call to sed in run-ptest. See attachment
for the test log.
From: Jesse Zhang <sen.zhang@windriver.com>
Date: Tue, 14 May 2013 02:53:30 -0400
Subject: [PATCH 1/1] perl-tests: convert to ptest
Replace PERL_TEST_DIR with PTEST_PATH, and rename "tests" with "ptest"
in various places. Also add a run-ptest script.
[YOCTO #4292]
Signed-off-by: Jesse Zhang <sen.zhang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-devtools/perl/perl-tests.inc')
-rw-r--r-- | meta/recipes-devtools/perl/perl-tests.inc | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/meta/recipes-devtools/perl/perl-tests.inc b/meta/recipes-devtools/perl/perl-tests.inc deleted file mode 100644 index b97b46781d..0000000000 --- a/meta/recipes-devtools/perl/perl-tests.inc +++ /dev/null @@ -1,36 +0,0 @@ -PACKAGES += "perl-tests" -PERL_TEST_DIR = "/opt/perl-tests" - -do_install_append () { - mkdir -p ${D}${PERL_TEST_DIR} - cp -pv TestInit.pm MANIFEST config.sh ${D}${PERL_TEST_DIR}/ - - tar -cf - t/ | ( cd ${D}${PERL_TEST_DIR} && tar -xf - ) - ln -sf ${bindir}/perl ${D}${PERL_TEST_DIR}/t/ - ln -sf ${libdir}/perl/${PV} ${D}${PERL_TEST_DIR}/lib - - for dir in `find ext/ dist/ cpan/ -maxdepth 2 -type d -name t ` ; do - tar -cf - $dir | ( cd ${D}${PERL_TEST_DIR} && tar -xf - ) - done - for file in `find ext dist cpan -name \*.t -o -name \test.pl`; do - tar -cf - $file | ( cd ${D}${PERL_TEST_DIR} && tar -xf - ) - done - - # Tweaks to make tests pass - cp -pv lib/unicore/TestProp.pl ${D}${libdir}/perl/${PV}/unicore/ - cp -pv lib/AnyDBM_File.t ${D}${libdir}/perl/${PV}/ - - mkdir -p ${D}${libdir}/perl/${PV}/XS - cp -pv lib/XS/APItest.pm ${D}${libdir}/perl/${PV}/XS/ - cp -pv lib/XS/Typemap.pm ${D}${libdir}/perl/${PV}/XS/ - mkdir -p ${D}${libdir}/perl/${PV}/auto/XS/APItest - cp -pv lib/auto/XS/APItest/APItest.so ${D}${libdir}/perl/${PV}/auto/XS/APItest/ - mkdir -p ${D}${libdir}/perl/${PV}/auto/XS/Typemap - cp -pv lib/auto/XS/Typemap/Typemap.so ${D}${libdir}/perl/${PV}/auto/XS/Typemap/ - cp -pv cpan/Digest-MD5/README ${D}${PERL_TEST_DIR}/cpan/Digest-MD5/ - cp -pv cpan/Digest-MD5/MD5.xs ${D}${PERL_TEST_DIR}/cpan/Digest-MD5/ -} - -FILES_${PN}-tests = "${PERL_TEST_DIR} \ - ${libdir}/perl/${PV}/AnyDBM_File.t" -RDEPENDS_${PN}-tests = "${PN}-modules ${PN}-doc ${PN}-misc" |