[OE-core] [PATCH 1/2] oprofile: Add PTEST regression testing to oprofile
Otavio Salvador
otavio at ossystems.com.br
Thu Jun 5 15:21:40 UTC 2014
On Thu, Jun 5, 2014 at 5:44 AM, Chong Lu <Chong.Lu at windriver.com> wrote:
> The commit changes the oe-core oprofile recipe by adding the PTEST
> interface, implementing do_compile_ptest() and do_install_ptest().
>
> The install routine adds several files that only the regression tests
> require. Also, a patch is necessary to inhibit executing the tests on
> the build host and to point to the correct target directory for the
> libutil++ test 'file-manip-tests'.
>
> That test requires the recipe to set SRCDIR in the build environment
> instead of determining the value from build-time host paths as for a
> self-hosted build.
>
> Signed-off-by: Dave Lerner <dave.lerner at windriver.com>
> Signed-off-by: Chong Lu <Chong.Lu at windriver.com>
> ---
> meta/recipes-kernel/oprofile/oprofile.inc | 31 ++++++-
> .../oprofile/oprofile-cross-compile-tests.patch | 98 ++++++++++++++++++++++
> meta/recipes-kernel/oprofile/oprofile/run-ptest | 18 ++++
> 3 files changed, 145 insertions(+), 2 deletions(-)
> create mode 100644 meta/recipes-kernel/oprofile/oprofile/oprofile-cross-compile-tests.patch
> create mode 100644 meta/recipes-kernel/oprofile/oprofile/run-ptest
>
> diff --git a/meta/recipes-kernel/oprofile/oprofile.inc b/meta/recipes-kernel/oprofile/oprofile.inc
> index ccf9f9f..0a7f7fd 100644
> --- a/meta/recipes-kernel/oprofile/oprofile.inc
> +++ b/meta/recipes-kernel/oprofile/oprofile.inc
> @@ -20,9 +20,11 @@ FILES_${PN}-staticdev += "${libdir}/${BPN}/lib*.a"
>
> SRC_URI = "file://opstart.patch \
> file://oprofile-root.patch \
> - file://acinclude.m4"
> + file://acinclude.m4 \
> + file://oprofile-cross-compile-tests.patch \
> + file://run-ptest"
>
> -inherit autotools-brokensep pkgconfig
> +inherit autotools-brokensep ptest
You removed pkgconfig, why?
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
More information about the Openembedded-core
mailing list