From: aszh07 <mail2szahir@gmail.com>
To: openembedded-core@lists.openembedded.org, mail2szahir@gmail.com
Cc: ranjitsinh.rathod@kpit.com
Subject: [OE-core][master][PATCH] alsa-lib: Enabling ptest for alsa-lib component
Date: Mon, 12 Feb 2024 19:16:45 +0530 [thread overview]
Message-ID: <20240212134645.7972-1-mail2szahir@gmail.com> (raw)
This change adds ptest for alsa-lib.
1) Adding CFLAGS change for include the header file path for resolving
below compilation issue;
In file included from ../../../alsa-lib-1.2.1.2/test/lsb/config.c:4:
../../../alsa-lib-1.2.1.2/test/lsb/test.h:5:10: fatal error:
alsa/asoundlib.h: No such file or directory
5 | #include <alsa/asoundlib.h>
2) Removed the test suite execution 'make' call using 'sed' command.
3) Compiled the test directory source code using "oe_runmake check" command.
4) Copied all the required binaries into PTEST path using do_install_ptest()
function.
Signed-off-by: aszh07 <mail2szahir@gmail.com>
---
.../distro/include/ptest-packagelists.inc | 1 +
.../alsa/alsa-lib_1.2.10.bb | 19 +++++++++++++++++++
2 files changed, 20 insertions(+)
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc
index 9057c12b09..78b4920996 100644
--- a/meta/conf/distro/include/ptest-packagelists.inc
+++ b/meta/conf/distro/include/ptest-packagelists.inc
@@ -5,6 +5,7 @@
#
PTESTS_FAST = "\
acl \
+ alsa-lib-ptest \
apr-util \
attr \
babeltrace \
diff --git a/meta/recipes-multimedia/alsa/alsa-lib_1.2.10.bb b/meta/recipes-multimedia/alsa/alsa-lib_1.2.10.bb
index 83bc6877d2..f3a4693a45 100644
--- a/meta/recipes-multimedia/alsa/alsa-lib_1.2.10.bb
+++ b/meta/recipes-multimedia/alsa/alsa-lib_1.2.10.bb
@@ -44,3 +44,22 @@ RREPLACES:alsa-conf = "alsa-conf-base"
RCONFLICTS:alsa-conf = "alsa-conf-base"
BBCLASSEXTEND = "native nativesdk"
+
+EXTRA_OEMAKE:append = " AM_CPPFLAGS=-I${S}/include"
+
+do_compile:append() {
+ sed -i 's/^.*$(MAKE) $(AM_MAKEFLAGS) check-TESTS.*$/ /' ${S}/test/lsb/Makefile.in
+ oe_runmake check
+}
+
+do_install_ptest:append() {
+ for f in control client_event_filter namehint
+ do
+ install -m 0755 "${B}/test/.libs/$f" "${D}${PTEST_PATH}";
+ done
+
+ for f in config midi_event
+ do
+ install -m 0755 "${B}/test/lsb/.libs/$f" "${D}${PTEST_PATH}";
+ done
+}
--
2.17.1
next reply other threads:[~2024-02-12 13:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-12 13:46 aszh07 [this message]
2024-02-12 13:56 ` [OE-core][master][PATCH] alsa-lib: Enabling ptest for alsa-lib component Alexander Kanavin
2024-02-12 14:37 ` Ross Burton
-- strict thread matches above, loose matches on Subject: below --
2024-10-16 17:16 [OE-core][master][PATCH] alsa-lib: enabling " aszh07
2024-10-16 17:44 ` Khem Raj
2024-10-16 19:30 ` Alexander Kanavin
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=20240212134645.7972-1-mail2szahir@gmail.com \
--to=mail2szahir@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=ranjitsinh.rathod@kpit.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox