summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl-tests.inc
diff options
context:
space:
mode:
authorJesse Zhang <sen.zhang@windriver.com>2013-05-21 10:43:04 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-24 14:14:45 +0100
commit73b752897d8a4a9159d056d0c905e9076c30fcea (patch)
treefc320116645c544896cfd7c98de55d5548d86bc4 /meta/recipes-devtools/perl/perl-tests.inc
parentab31f43071e86d516dc9d0c260b4695c776a5e6e (diff)
downloadpoky-73b752897d8a4a9159d056d0c905e9076c30fcea.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] (From OE-Core rev: 364cad5d8eecfec74a7be8cf93e75cd63031101f) Signed-off-by: Jesse Zhang <sen.zhang@windriver.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/perl/perl-tests.inc')
-rw-r--r--meta/recipes-devtools/perl/perl-tests.inc36
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 @@
1PACKAGES += "perl-tests"
2PERL_TEST_DIR = "/opt/perl-tests"
3
4do_install_append () {
5 mkdir -p ${D}${PERL_TEST_DIR}
6 cp -pv TestInit.pm MANIFEST config.sh ${D}${PERL_TEST_DIR}/
7
8 tar -cf - t/ | ( cd ${D}${PERL_TEST_DIR} && tar -xf - )
9 ln -sf ${bindir}/perl ${D}${PERL_TEST_DIR}/t/
10 ln -sf ${libdir}/perl/${PV} ${D}${PERL_TEST_DIR}/lib
11
12 for dir in `find ext/ dist/ cpan/ -maxdepth 2 -type d -name t ` ; do
13 tar -cf - $dir | ( cd ${D}${PERL_TEST_DIR} && tar -xf - )
14 done
15 for file in `find ext dist cpan -name \*.t -o -name \test.pl`; do
16 tar -cf - $file | ( cd ${D}${PERL_TEST_DIR} && tar -xf - )
17 done
18
19 # Tweaks to make tests pass
20 cp -pv lib/unicore/TestProp.pl ${D}${libdir}/perl/${PV}/unicore/
21 cp -pv lib/AnyDBM_File.t ${D}${libdir}/perl/${PV}/
22
23 mkdir -p ${D}${libdir}/perl/${PV}/XS
24 cp -pv lib/XS/APItest.pm ${D}${libdir}/perl/${PV}/XS/
25 cp -pv lib/XS/Typemap.pm ${D}${libdir}/perl/${PV}/XS/
26 mkdir -p ${D}${libdir}/perl/${PV}/auto/XS/APItest
27 cp -pv lib/auto/XS/APItest/APItest.so ${D}${libdir}/perl/${PV}/auto/XS/APItest/
28 mkdir -p ${D}${libdir}/perl/${PV}/auto/XS/Typemap
29 cp -pv lib/auto/XS/Typemap/Typemap.so ${D}${libdir}/perl/${PV}/auto/XS/Typemap/
30 cp -pv cpan/Digest-MD5/README ${D}${PERL_TEST_DIR}/cpan/Digest-MD5/
31 cp -pv cpan/Digest-MD5/MD5.xs ${D}${PERL_TEST_DIR}/cpan/Digest-MD5/
32}
33
34FILES_${PN}-tests = "${PERL_TEST_DIR} \
35 ${libdir}/perl/${PV}/AnyDBM_File.t"
36RDEPENDS_${PN}-tests = "${PN}-modules ${PN}-doc ${PN}-misc"