forked from aws4embeddedlinux/meta-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
amazon-kvs-producer-cpp: fix version of *-sdk-c *-pic
fix: aws4embeddedlinux#1701 add ptest for amazon-kvs-producer-pic changes acc. to oelint-adv (cherry picked from commit 3d11cbe)
- Loading branch information
Thomas Roos
committed
Dec 21, 2022
1 parent
0f7a51d
commit 66b80a1
Showing
5 changed files
with
162 additions
and
103 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
recipes-sdk/amazon-kvs-producer-sdk/amazon-kvs-producer-pic/run-ptest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
cd tests | ||
|
||
rm -rf tests.log | ||
|
||
# known good tests | ||
TESTS="\ | ||
ClientApiFunctionalityTest \ | ||
" | ||
|
||
for TEST in $TESTS | ||
do | ||
./kvspic_test --gtest_filter=*$TEST* >> tests.log 2>&1 | ||
done | ||
|
||
sed -e '/OK/ s/^/PASS: / ; /FAILED/ s/^/FAIL: /' tests.log |
52 changes: 33 additions & 19 deletions
52
recipes-sdk/amazon-kvs-producer-sdk/amazon-kvs-producer-pic_git.bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,63 @@ | ||
# -*- mode: Conf; -*- | ||
SUMMARY = "Amazon Kinesis Video Streams PIC" | ||
DESCRIPTION = "Platform independent code layer for KVS Producer SDK" | ||
HOMEPAGE = "https://github.com/awslabs/amazon-kinesis-video-streams-pic" | ||
LICENSE = "Apache-2.0" | ||
LIC_FILES_CHKSUM = "file://LICENSE;md5=34400b68072d710fecd0a2940a0d1658" | ||
PROVIDES += "aws/amazon-kvs-producer-pic" | ||
|
||
inherit cmake | ||
|
||
BRANCH ?= "master" | ||
SDIR ?= "amazon-kvs-producer-pic" | ||
SRC_URI = "git://github.com/awslabs/amazon-kinesis-video-streams-pic.git;protocol=https;branch=${BRANCH} \ | ||
file://run-ptest \ | ||
" | ||
|
||
# this recipe should be released only together with amazon-kvs-producer-sdk-c and amazon-kvs-producer-sdk-cpp | ||
UPSTREAM_VERSION_UNKNOWN = "1" | ||
# set to match only git_invalid_tag_regex because UPSTREAM_VERSION_UNKNOWN seems to be broken for git | ||
UPSTREAM_CHECK_GITTAGREGEX = "git_invalid_tag_regex" | ||
# this SRCREV commit id should not different than this: | ||
# https://github.com/awslabs/amazon-kinesis-video-streams-producer-c/blob/80c74ac9200b58427a8fcb7782a03b1774020983/CMake/Dependencies/libkvspic-CMakeLists.txt#L10 | ||
SRCREV = "c8325887faa3a4a296c4367b281c778be69875b6" | ||
|
||
LIC_FILES_CHKSUM = "file://LICENSE;md5=34400b68072d710fecd0a2940a0d1658" | ||
S = "${WORKDIR}/git" | ||
|
||
SRC_URI = "git://github.com/awslabs/amazon-kinesis-video-streams-pic.git;protocol=https;branch=${BRANCH}" | ||
inherit cmake pkgconfig ptest | ||
|
||
# this project do not use version tags, use latest commit | ||
UPSTREAM_CHECK_COMMITS = "1" | ||
SRCREV = "dc4bc6cb87cf97cd3b1dc3e8027e0c75cdfa13b3" | ||
PACKAGECONFIG ??= "\ | ||
${@bb.utils.contains('PTEST_ENABLED', '1', 'with-tests', '', d)} \ | ||
" | ||
|
||
S = "${WORKDIR}/git" | ||
# enable PACKAGECONFIG = "static" to build static instead of shared libs | ||
PACKAGECONFIG[static] = "-DBUILD_SHARED_LIBS=OFF,-DBUILD_SHARED_LIBS=ON," | ||
|
||
PACKAGECONFIG[with-tests] = "-DBUILD_TEST=ON,-DBUILD_TEST=OFF,gtest" | ||
|
||
DEPENDS = "gtest " | ||
RDEPENDS:${PN} = "" | ||
CFLAGS:append = " -Wl,-Bsymbolic" | ||
|
||
EXTRA_OECMAKE += " \ | ||
EXTRA_OECMAKE += "\ | ||
-DBUILD_DEPENDENCIES=OFF \ | ||
-DBUILD_TEST=FALSE \ | ||
-DCODE_COVERAGE=FALSE \ | ||
-DCOMPILER_WARNINGS=OFF \ | ||
-DCODE_COVERAGE=OFF \ | ||
-DADDRESS_SANITIZER=OFF \ | ||
-DMEMORY_SANITIZER=OFF \ | ||
-DTHREAD_SANITIZER=OFF \ | ||
-DUNDEFINED_BEHAVIOR_SANITIZER=OFF \ | ||
-DDEBUG_HEAP=OFF \ | ||
-DALIGNED_MEMORY_MODEL=OFF \ | ||
\ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_INSTALL_PREFIX=$D/usr \ | ||
" | ||
|
||
FILES:${PN} = "${libdir}/pkgconfig/*.pc" | ||
FILES:${PN}-dev = "${includedir}/com/amazonaws/kinesis/video/*" | ||
FILES:${PN} += "${libdir}/pkgconfig/*.pc" | ||
|
||
FILES:${PN}-dev += "${includedir}/com/amazonaws/kinesis/video/*" | ||
|
||
FILES:${PN}-ptest += "${libdir}/*.so" | ||
|
||
# Notify that libraries are not versioned | ||
FILES_SOLIBSDEV = "" | ||
|
||
do_install_ptest () { | ||
install -d ${D}${PTEST_PATH}/tests | ||
cp -r ${B}/kvspic_test ${D}${PTEST_PATH}/tests/ | ||
} | ||
|
||
BBCLASSEXTEND = "native nativesdk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.