alsa-lib: Add ptest
PATCH 1/1 alsa-lib: Add ptest
From: Poonam Jadhav <[email protected]>
Alsa-lib is a user space library that provides audio and MIDI functionality apis for simplifying application programming and provide higher level functionality
ptest executes below binaries on target:
1.config
2.control
3.client_event_filter
4.midi_event
5.namehint
--- .../distro/include/ptest-packagelists.inc | 1 + .../alsa/alsa-lib/run-ptest | 14 ++++++++++++ .../alsa/alsa-lib_1.2.6.1.bb | 22 +++++++++++++++++-- 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-multimedia/alsa/alsa-lib/run-ptest
meta/conf/distro/include/ptest-packagelists.inc +1 -0
@@ -5,6 +5,7 @@ # PTESTS_FAST = "\ acl-ptest \ + alsa-lib-ptest \ apr-ptest \ apr-util-ptest \ attr-ptest \
meta/recipes-multimedia/alsa/alsa-lib/run-ptest new file +14 -0
@@ -0,0 +1,14 @@ +#!/bin/sh +set -eux + +for t in config control midi_event client_event_filter client_event_filter +do + if "./$t" > "alsa-lib_$t.log" 2>&1 + then + echo "PASS: $t" + else + echo "FAIL: $t" + cat "alsa-lib_$t.log" + fi + rm "alsa-lib_$t.log" +done
meta/recipes-multimedia/alsa/alsa-lib_1.2.6.1.bb +20 -2
@@ -9,10 +9,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7 \ file://src/socket.c;md5=285675b45e83f571c6a957fe4ab79c93;beginline=9;endline=24 \ " -SRC_URI = "https://www.alsa-project.org/files/pub/lib/${BP}.tar.bz2" +SRC_URI = "https://www.alsa-project.org/files/pub/lib/${BP}.tar.bz2 \ + file://run-ptest \ + " SRC_URI[sha256sum] = "ad582993d52cdb5fb159a0beab60a6ac57eab0cc1bdf85dc4db6d6197f02333f" -inherit autotools pkgconfig +inherit autotools pkgconfig ptest EXTRA_OECONF += " \ ${@bb.utils.contains('TARGET_FPU', 'soft', '--with-softfloat', '', d)} \
@@ -42,3 +44,19 @@ RREPLACES:alsa-conf = "alsa-conf-base" RCONFLICTS:alsa-conf = "alsa-conf-base" BBCLASSEXTEND = "native nativesdk" + +do_compile_append() { + ${CC} ${CFLAGS} ${LDFLAGS} "${S}/test/lsb/config.c" -I "${S}/include" -L "${B}/src/.libs/" -lasound -o config + ${CC} ${CFLAGS} ${LDFLAGS} "${S}/test/control.c" -I "${S}/include" -L "${B}/src/.libs/" -lasound -o control + ${CC} ${CFLAGS} ${LDFLAGS} "${S}/test/client_event"_filter.c -I "${S}/include" -L "${B}/src/.libs/" -lasound -o client_event_filter + ${CC} ${CFLAGS} ${LDFLAGS} "${S}/test/namehint.c" -I "${S}/include" -L "${B}/src/.libs/" -lasound -o namehint + ${CC} ${CFLAGS} ${LDFLAGS} "${S}/test/lsb/midi_event.c" -I "${S}/include" -L "${B}/src/.libs/" -lasound -o midi_event +} + +do_install_ptest_append() { + install -m 0755 "${B}/config" "${D}${PTEST_PATH}" + install -m 0755 "${B}/control" "${D}${PTEST_PATH}" + install -m 0755 "${B}/client_event_filter" "${D}${PTEST_PATH}" + install -m 0755 "${B}/midi_event" "${D}${PTEST_PATH}" + install -m 0755 "${B}/namehint" "${D}${PTEST_PATH}" +}
Signature · 1 line
2.25.1
This is now the third time the patches are sent, without addressing my questions first or fixing the patches.
Alex
Quoted 105 lines · Poonam Jadhav
From: Poonam Jadhav <[email protected]>
Alsa-lib is a user space library that provides audio and MIDI functionality apis for simplifying application programming and provide higher level functionality
ptest executes below binaries on target:
1.config
2.control
3.client_event_filter
4.midi_event
5.namehintSigned-off-by Poonam Jadhav <[email protected]>--- .../distro/include/ptest-packagelists.inc | 1 + .../alsa/alsa-lib/run-ptest | 14 ++++++++++++ .../alsa/alsa-lib_1.2.6.1.bb | 22 +++++++++++++++++-- 3 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-multimedia/alsa/alsa-lib/run-ptestmeta/conf/distro/include/ptest-packagelists.inc +1
-0@@ -5,6 +5,7 @@ # PTESTS_FAST = "\ acl-ptest \ + alsa-lib-ptest \ apr-ptest \ apr-util-ptest \ attr-ptest \meta/recipes-multimedia/alsa/alsa-lib/run-ptest new file +14
-0@@ -0,0 +1,14 @@ +#!/bin/sh +set -eux + +for t in config control midi_event client_event_filter client_event_filter +do + if "./$t" > "alsa-lib_$t.log" 2>&1 + then + echo "PASS: $t" + else + echo "FAIL: $t" + cat "alsa-lib_$t.log" + fi + rm "alsa-lib_$t.log" +donemeta/recipes-multimedia/alsa/alsa-lib_1.2.6.1.bb +20
-3@@ -9,10 +9,12 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=a916467b91076e631dd8edb7424769c7 \ file://src/socket.c;md5=285675b45e83f571c6a957fe4ab79c93;beginline=9;endline=24 \ " -SRC_URI = "https://www.alsa-project.org/files/pub/lib/${BP}.tar.bz2" +SRC_URI = "https://www.alsa-project.org/files/pub/lib/${BP}.tar.bz2 \ + file://run-ptest \ + " SRC_URI[sha256sum] = "ad582993d52cdb5fb159a0beab60a6ac57eab0cc1bdf85dc4db6d6197f02333f" -inherit autotools pkgconfig +inherit autotools pkgconfig ptest EXTRA_OECONF += " \ ${@bb.utils.contains('TARGET_FPU', 'soft', '--with-softfloat', '', d)} \@@ -42,3 +44,19 @@ RREPLACES:alsa-conf = "alsa-conf-base" RCONFLICTS:alsa-conf = "alsa-conf-base" BBCLASSEXTEND = "native nativesdk" + +do_compile_append() { + ${CC} ${CFLAGS} ${LDFLAGS} "${S}/test/lsb/config.c" -I "${S}/include" -L "${B}/src/.libs/" -lasound -o config + ${CC} ${CFLAGS} ${LDFLAGS} "${S}/test/control.c" -I "${S}/include" -L "${B}/src/.libs/" -lasound -o control + ${CC} ${CFLAGS} ${LDFLAGS} "${S}/test/client_event"_filter.c -I "${S}/include" -L "${B}/src/.libs/" -lasound -o client_event_filter + ${CC} ${CFLAGS} ${LDFLAGS} "${S}/test/namehint.c" -I "${S}/include" -L "${B}/src/.libs/" -lasound -o namehint + ${CC} ${CFLAGS} ${LDFLAGS} "${S}/test/lsb/midi_event.c" -I "${S}/include" -L "${B}/src/.libs/" -lasound -o midi_event +} + +do_install_ptest_append() { + install -m 0755 "${B}/config" "${D}${PTEST_PATH}" + install -m 0755 "${B}/control" "${D}${PTEST_PATH}" + install -m 0755 "${B}/client_event_filter" "${D}${PTEST_PATH}" + install -m 0755 "${B}/midi_event" "${D}${PTEST_PATH}" + install -m 0755 "${B}/namehint" "${D}${PTEST_PATH}" +} --2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#185582): https://lists.openembedded.org/g/openembedded-core/message/185582
Mute This Topic: https://lists.openembedded.org/mt/100594669/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-