From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.windriver.com (mail.windriver.com [147.11.1.11]) by mail.openembedded.org (Postfix) with ESMTP id 9A2EB60169 for ; Mon, 18 Aug 2014 05:39:32 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail.windriver.com (8.14.9/8.14.5) with ESMTP id s7I5dYgl027488 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL) for ; Sun, 17 Aug 2014 22:39:34 -0700 (PDT) Received: from [128.224.162.204] (128.224.162.204) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.174.1; Sun, 17 Aug 2014 22:39:33 -0700 Message-ID: <53F19192.6080904@windriver.com> Date: Mon, 18 Aug 2014 13:39:30 +0800 From: Chong Lu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: References: <73bd8c6b08e4d483e4591c89d41b40042aa24e06.1408331425.git.Chong.Lu@windriver.com> In-Reply-To: <73bd8c6b08e4d483e4591c89d41b40042aa24e06.1408331425.git.Chong.Lu@windriver.com> X-Originating-IP: [128.224.162.204] Subject: Re: [PATCH 1/1] piglit: enable ptest support X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Aug 2014 05:39:36 -0000 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit On 08/18/2014 11:11 AM, Chong Lu wrote: > Install libpcre test suite and run it as ptest. > > Signed-off-by: Chong Lu > --- > meta/recipes-graphics/piglit/piglit/run-ptest | 5 +++++ > meta/recipes-graphics/piglit/piglit_git.bb | 10 +++++++--- > 2 files changed, 12 insertions(+), 3 deletions(-) > create mode 100644 meta/recipes-graphics/piglit/piglit/run-ptest > > diff --git a/meta/recipes-graphics/piglit/piglit/run-ptest b/meta/recipes-graphics/piglit/piglit/run-ptest > new file mode 100644 > index 0000000..fba2e8d > --- /dev/null > +++ b/meta/recipes-graphics/piglit/piglit/run-ptest > @@ -0,0 +1,5 @@ > +#!/bin/sh > + > +env PIGLIT_BUILD_DIR=`pwd`/.. piglit-run.py `pwd`/tests/sanity.tests `pwd`/results/sanity.results 2>&1 | \ > + grep -E "pass ::|fail ::|skip ::|warn ::" | cut -d' ' -f11- | \ > + sed -e 's|pass ::|PASS:|' -e 's|warn ::|PASS:|' -e 's|fail ::|FAIL:|' -e 's|skip ::|SKIP:|' > diff --git a/meta/recipes-graphics/piglit/piglit_git.bb b/meta/recipes-graphics/piglit/piglit_git.bb > index 5c013ef..de4a839 100644 > --- a/meta/recipes-graphics/piglit/piglit_git.bb > +++ b/meta/recipes-graphics/piglit/piglit_git.bb > @@ -2,7 +2,8 @@ SUMMARY = "OpenGL driver testing framework" > LICENSE = "MIT & LGPLv2+ & GPLv3 & GPLv2+ & BSD-3-Clause" > LIC_FILES_CHKSUM = "file://COPYING;md5=b2beded7103a3d8a442a2a0391d607b0" > > -SRC_URI = "git://anongit.freedesktop.org/piglit" > +SRC_URI = "git://anongit.freedesktop.org/piglit \ > + file://run-ptest" > > # From 2012/12/30. > SRCREV = "bbeff5d21b06d37338ad28e42d88f499bef13268" > @@ -13,7 +14,7 @@ S = "${WORKDIR}/git" > > DEPENDS = "virtual/libx11 libxrender waffle virtual/libgl libglu python-mako-native python-numpy-native" > > -inherit cmake pythonnative > +inherit cmake pythonnative ptest > > # As piglit doesn't install, enforce in-tree builds so that we can easily copy > # contents out of $S and $B. > @@ -36,7 +37,6 @@ do_install() { > cp -Pr lib/ ${D}${libdir}/piglit/ > cp -Pr framework/ ${D}${libdir}/piglit/ > cp -Pr generated_tests/ ${D}${libdir}/piglit/ > - cp -Pr tests/ ${D}${libdir}/piglit/ > cp -Pr templates/ ${D}${libdir}/piglit/ > > sed -i -e 's|sys.path.append(.*)|sys.path.append("${libdir}/piglit")|' ${D}${bindir}/piglit-*.py > @@ -46,3 +46,7 @@ do_install() { > FILES_${PN}-dbg += "${libdir}/piglit/*/.debug/" > > RDEPENDS_${PN} = "python waffle python-json python-subprocess python-multiprocessing python-textutils python-netserver python-shell mesa-demos" > + > +do_install_ptest() { > + cp -Pr tests/ ${D}${PTEST_PATH}/ > +} Please ignore this one, I will resend. Best Regards Chong