<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/poky.git/meta/classes/ptest.bbclass, branch yocto-1.5.final</title>
<subtitle>Mirror of git.yoctoproject.org/poky</subtitle>
<id>https://git.enea.com/cgit/linux/poky.git/atom?h=yocto-1.5.final</id>
<link rel='self' href='https://git.enea.com/cgit/linux/poky.git/atom?h=yocto-1.5.final'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/'/>
<updated>2013-09-10T14:57:19+00:00</updated>
<entry>
<title>ptest.bbclass: add cleandirs flag to do_install_ptest_base</title>
<updated>2013-09-10T14:57:19+00:00</updated>
<author>
<name>Chen Qi</name>
<email>Qi.Chen@windriver.com</email>
</author>
<published>2013-09-05T13:58:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=8d82eae8fd40fba8dac717af4cc317db766ab8e0'/>
<id>urn:sha1:8d82eae8fd40fba8dac717af4cc317db766ab8e0</id>
<content type='text'>
The do_install_ptest_base task should have cleandirs flag, just like
the do_install task. The ${D}${PTEST_PATH} directory should be cleaned,
Otherwise, there would be similar errors like below if the
do_install_ptest_base task is rerun.

    ln: failed to create symbolic link `xxx': File exists

[YOCTO #5129]

(From OE-Core rev: 25885d3b4f679c33a514d858bc20b0e21aa63721)

Signed-off-by: Chen Qi &lt;Qi.Chen@windriver.com&gt;
Signed-off-by: Saul Wold &lt;sgw@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ptest.bbclass: fix error on ubuntu host</title>
<updated>2013-09-10T14:57:19+00:00</updated>
<author>
<name>Chen Qi</name>
<email>Qi.Chen@windriver.com</email>
</author>
<published>2013-09-05T13:58:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=8905f7715d175c834c4d0797b2da7366ee2c8ace'/>
<id>urn:sha1:8905f7715d175c834c4d0797b2da7366ee2c8ace</id>
<content type='text'>
The do_install_ptest_base function uses 'type -t' command to check
whether do_install_ptest is a function and acts correspondingly.

However, the 'type' command is a shell builtin and its behavior is
not all the same across Linux distros. On ubuntu, if we use #!/bin/sh
as the interpreter for the scripts, as in the case of our intermediate
scripts, the '-t' option for the 'type' command is not supported. So
the check always fails and the do_install_ptest function, even if defined,
is not run.

The same problem also applies to the do_configure_ptest_base and the
do_compile_ptest_base functions.

This patch fixes this problem by avoiding using the 'type' builtin command.

[YOCTO #5128]

(From OE-Core rev: d5a4f031b460437e9501e4e65194ce94d3641130)

Signed-off-by: Chen Qi &lt;Qi.Chen@windriver.com&gt;
Signed-off-by: Saul Wold &lt;sgw@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ptest bug fixes</title>
<updated>2013-04-11T11:20:35+00:00</updated>
<author>
<name>Björn Stenberg</name>
<email>bjst@enea.com</email>
</author>
<published>2013-04-10T13:34:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=44120a053c0cf2c7134bb1ee29854dddf28e4cf8'/>
<id>urn:sha1:44120a053c0cf2c7134bb1ee29854dddf28e4cf8</id>
<content type='text'>
Move ${PN}-ptest to start of PACKAGES to ensure all ptest files are
packaged in the -ptest package.

Add QA exclusions to insane.bbclass to ensure -ptest packages can contain
any files they need.

Disable ptest for native packages.

Don't emit errors on missing _ptest functions.

(From OE-Core rev: 01bea4ef932e46eb2fcc8b4be7ff5e2b5b2a0978)

Signed-off-by: Björn Stenberg &lt;bjst@enea.com&gt;
Signed-off-by: Anders Roxell &lt;anders.roxell@enea.com&gt;
Signed-off-by: Josep Puigdemont &lt;josep.puigdemont@enea.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ptest: Move ptest checks from recipes to ptest.bbclass</title>
<updated>2013-03-07T11:14:39+00:00</updated>
<author>
<name>Björn Stenberg</name>
<email>bjst@enea.com</email>
</author>
<published>2013-03-06T09:41:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=bb498369b8393a88968eaad2714b18afd29c0d1e'/>
<id>urn:sha1:bb498369b8393a88968eaad2714b18afd29c0d1e</id>
<content type='text'>
This patch cleans up ptest implementation in recipes by moving ptest
specific code parts into dedicated *_ptest functions.

(From OE-Core rev: 1e4d267a3cbd2135a5de10519814087050b766b7)

Signed-off-by: Björn Stenberg &lt;bjst@enea.com&gt;
Signed-off-by: Saul Wold &lt;sgw@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ptest: Add missed .debug path</title>
<updated>2013-02-22T14:09:22+00:00</updated>
<author>
<name>Björn Stenberg</name>
<email>bjst@enea.com</email>
</author>
<published>2013-02-19T13:14:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=c1aef57e200f04b33de16f37dca519720e7c8752'/>
<id>urn:sha1:c1aef57e200f04b33de16f37dca519720e7c8752</id>
<content type='text'>
(From OE-Core rev: f8bf3c65327c6e04c19a7dda623c7433f5d97417)

Signed-off-by: Björn Stenberg &lt;bjst@enea.com&gt;
Signed-off-by: Saul Wold &lt;sgw@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>ptest.bbclass: don't add to PACKAGES if disabled</title>
<updated>2013-01-18T13:28:04+00:00</updated>
<author>
<name>Christopher Larson</name>
<email>chris_larson@mentor.com</email>
</author>
<published>2013-01-16T20:31:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=89031c265183b16e683d60b74d702ed5b9f6f12f'/>
<id>urn:sha1:89031c265183b16e683d60b74d702ed5b9f6f12f</id>
<content type='text'>
Without this, we have excessive dependencies leaking into the build. In
particular, glib-2.0 was sucking in python modules even if ptest wasn't in
DISTRO_FEATURES.

(From OE-Core rev: 7bf5ee91aa84a6fa85d6da361b64139889faa172)

Signed-off-by: Christopher Larson &lt;chris_larson@mentor.com&gt;
Signed-off-by: Saul Wold &lt;sgw@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
<entry>
<title>Add a new distro feature "ptest".</title>
<updated>2012-12-26T11:34:04+00:00</updated>
<author>
<name>Björn Stenberg</name>
<email>bjst@enea.com</email>
</author>
<published>2012-12-19T16:18:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/linux/poky.git/commit/?id=1d2c6833ae802553d6df3dbb249336c44cef5df5'/>
<id>urn:sha1:1d2c6833ae802553d6df3dbb249336c44cef5df5</id>
<content type='text'>
This patch creates a new distro feature "ptest", which creates -ptest
packages containing the test suite of the package for running on the
target. Test files are installed in /usr/lib/&lt;pkg&gt;/ptest.

The patch also includes a change to automake, splitting the "make check"
target into separate steps for building and running the tests.

(From OE-Core rev: 6f92e7f8891008dd3c89325d3fbe2da853372326)

Signed-off-by: Björn Stenberg &lt;bjst@enea.com&gt;
Signed-off-by: Saul Wold &lt;sgw@linux.intel.com&gt;
Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
</content>
</entry>
</feed>
