From: Saul Wold <sgw@linux.intel.com>
To: Gabriel Barbu <gabriel.barbu@enea.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH] strace: Add ptest
Date: Wed, 24 Jul 2013 08:06:59 -0700 [thread overview]
Message-ID: <51EFED93.7080109@linux.intel.com> (raw)
In-Reply-To: <1374667573-31160-1-git-send-email-gabriel.barbu@enea.com>
On 07/24/2013 05:06 AM, Gabriel Barbu wrote:
> Install strace test suite and run it as ptest.
>
> Signed-off-by: Gabriel Barbu <gabriel.barbu@enea.com>
> ---
> .../strace/strace-4.8/Makefile-ptest.patch | 23 ++++++++++++++++++++
> meta/recipes-devtools/strace/strace-4.8/run-ptest | 2 ++
> meta/recipes-devtools/strace/strace_4.8.bb | 19 ++++++++++++++--
> 3 files changed, 42 insertions(+), 2 deletions(-)
> create mode 100644 meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch
> create mode 100755 meta/recipes-devtools/strace/strace-4.8/run-ptest
>
> diff --git a/meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch b/meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch
> new file mode 100644
> index 0000000..9cd491b
> --- /dev/null
Please add an Upstream-Status and Signed-off-by per the OE-Core patch
guidelines.
http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
I have had to ask this of the recent ptest, maybe your team can do an
internal review before sending these patches to the list.
Thanks
Sau!
> +++ b/meta/recipes-devtools/strace/strace-4.8/Makefile-ptest.patch
> @@ -0,0 +1,23 @@
> +--- old/tests/Makefile.am 2013-07-23 13:44:24.660481381 +0200
> ++++ new/tests/Makefile.am 2013-07-23 16:22:42.937654391 +0200
> +@@ -9,3 +9,20 @@
> + EXTRA_DIST = init.sh $(TESTS)
> +
> + CLEANFILES = check.log
> ++
> ++buildtest-TESTS: $(check_PROGRAMS) $(TESTS)
> ++
> ++install-ptest:
> ++ install $(BUILDDIR)/strace $(DESTDIR)
> ++ install "$(srcdir)/.."/strace-log-merge $(DESTDIR)
> ++ install -d $(DESTDIR)/$(TESTDIR)
> ++ cp $(BUILDDIR)/$(TESTDIR)/Makefile $(DESTDIR)/$(TESTDIR)
> ++ sed -i -e 's/^Makefile:/_Makefile:/' $(DESTDIR)/$(TESTDIR)/Makefile
> ++ for file in $(check_PROGRAMS); do \
> ++ install $(BUILDDIR)/$(TESTDIR)/$$file $(DESTDIR)/$(TESTDIR); \
> ++ done
> ++ for file in $(EXTRA_DIST); do \
> ++ install $(srcdir)/$$file $(DESTDIR)/$(TESTDIR); \
> ++ sed -i -e 's/$${srcdir=.}/./g' $(DESTDIR)/$(TESTDIR)/$$file; \
> ++ done
> ++ sed -i -e 's/$$srcdir/./g' $(DESTDIR)/$(TESTDIR)/net
> diff --git a/meta/recipes-devtools/strace/strace-4.8/run-ptest b/meta/recipes-devtools/strace/strace-4.8/run-ptest
> new file mode 100755
> index 0000000..133cf92
> --- /dev/null
> +++ b/meta/recipes-devtools/strace/strace-4.8/run-ptest
> @@ -0,0 +1,2 @@
> +#!/bin/sh
> +make -C tests -k runtest-TESTS
> diff --git a/meta/recipes-devtools/strace/strace_4.8.bb b/meta/recipes-devtools/strace/strace_4.8.bb
> index 0f4d2f0..79a4ad7 100644
> --- a/meta/recipes-devtools/strace/strace_4.8.bb
> +++ b/meta/recipes-devtools/strace/strace_4.8.bb
> @@ -7,11 +7,16 @@ PR = "r0"
>
> SRC_URI = "${SOURCEFORGE_MIRROR}/strace/strace-${PV}.tar.xz \
> file://git-version-gen \
> - file://strace-add-configure-options.patch"
> + file://strace-add-configure-options.patch \
> + file://Makefile-ptest.patch \
> + file://run-ptest \
> + "
>
> SRC_URI[md5sum] = "c575ef43829586801f514fd91bfe7575"
> SRC_URI[sha256sum] = "f492291f07a7c805c07a8395cce1ea054a6401ad414f4cc12185672215e1d7f8"
> -inherit autotools
> +
> +inherit autotools ptest
> +RDEPENDS_${PN}-ptest += "make"
>
> PACKAGECONFIG_class-target ?= "libaio"
> PACKAGECONFIG_class-target += "${@base_contains('DISTRO_FEATURES', 'acl', 'acl', '', d)}"
> @@ -21,6 +26,8 @@ PACKAGECONFIG[acl] = "--enable-acl,--disable-acl,acl"
>
> export INCLUDES = "-I. -I./linux"
>
> +TESTDIR = "tests"
> +
> do_configure_prepend() {
> cp ${WORKDIR}/git-version-gen ${S}
> }
> @@ -30,4 +37,12 @@ do_install_append() {
> rm ${D}${bindir}/strace-graph
> }
>
> +do_compile_ptest() {
> + oe_runmake -C ${TESTDIR} buildtest-TESTS
> +}
> +
> +do_install_ptest() {
> + oe_runmake -C ${TESTDIR} install-ptest BUILDDIR=${B} DESTDIR=${D}${PTEST_PATH} TESTDIR=${TESTDIR}
> +}
> +
> BBCLASSEXTEND = "native"
>
next prev parent reply other threads:[~2013-07-24 15:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-24 12:06 [PATCH] strace: Add ptest Gabriel Barbu
2013-07-24 15:06 ` Saul Wold [this message]
2013-07-25 13:28 ` Gabriel Barbu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51EFED93.7080109@linux.intel.com \
--to=sgw@linux.intel.com \
--cc=gabriel.barbu@enea.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.