소스 검색

libmodule-build-perl: fix ptests

Particularly remove a broken detection of skipped tests
(which was marking tests that actually passed), and install
additional artefacts needed for testing.

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Alexander Kanavin 4 년 전
부모
커밋
dbbce09186
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      meta/recipes-devtools/perl/libmodule-build-perl/run-ptest
  2. 3 0
      meta/recipes-devtools/perl/libmodule-build-perl_0.4229.bb

+ 0 - 2
meta/recipes-devtools/perl/libmodule-build-perl/run-ptest

@@ -6,8 +6,6 @@ for case in `find t -type f -name '*.t'`; do
     cat $case.output
     if [ $ret -ne 0 ]; then
         echo "FAIL: ${case%.t}"
-    elif grep -i 'SKIP' $case.output; then
-        echo "SKIP: ${case%.t}"
     else
         echo "PASS: ${case%.t}"
     fi

+ 3 - 0
meta/recipes-devtools/perl/libmodule-build-perl_0.4229.bb

@@ -36,7 +36,10 @@ do_patch[postfuncs] += "do_patch_module_build"
 do_install_ptest() {
 	cp -r ${B}/inc ${D}${PTEST_PATH}
 	cp -r ${B}/blib ${D}${PTEST_PATH}
+	cp -r ${B}/_build ${D}${PTEST_PATH}
+	cp -r ${B}/lib ${D}${PTEST_PATH}
 	chown -R root:root ${D}${PTEST_PATH}
+	sed -i -e "s,'perl' => .*,'perl' => '/usr/bin/perl'\,,g" ${D}${PTEST_PATH}/_build/build_params
 }
 
 RDEPENDS_${PN} += " \