mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-06 15:20:12 +00:00
sdbus-c++: Fix build and upgrade to latest git
Fix ptest run while here Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -1,15 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
set -e
|
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
|
|
||||||
|
|
||||||
${SCRIPTPATH}/sdbus-c++-unit-tests 2>&1 | \
|
|
||||||
sed -r 's/^\[\s+OK\s+\] (.*) \([0-9]+\sms\)$/OK: \1 /' | \
|
|
||||||
sed -r 's/^\[\s+FAILED\s+\] (.*) \([0-9]+\sms\)$/FAILED: \1 /' | \
|
|
||||||
awk '{if ($1 == "OK:" || $1 == "FAILED:") {print $0}}'
|
|
||||||
|
|
||||||
${SCRIPTPATH}/sdbus-c++-integration-tests 2>&1 | \
|
|
||||||
sed -r 's/^\[\s+OK\s+\] (.*) \([0-9]+\sms\)$/OK: \1 /' | \
|
|
||||||
sed -r 's/^\[\s+FAILED\s+\] (.*) \([0-9]+\sms\)$/FAILED: \1 /' | \
|
|
||||||
awk '{if ($1 == "OK:" || $1 == "FAILED:") {print $0}}'
|
|
||||||
+6
@@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
./sdbus-c++-unit-tests 2>&1 && echo "PASS: sdbus-c++-unit-tests" || echo "FAIL: sdbus-c++-unit-tests"
|
||||||
|
|
||||||
|
./sdbus-c++-integration-tests 2>&1 && echo "PASS: sdbus-c++-integration-tests" || echo "FAIL: sdbus-c++-integration-tests"
|
||||||
@@ -12,14 +12,14 @@ PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'with-exte
|
|||||||
${@bb.utils.contains('PTEST_ENABLED', '1', 'with-tests', '', d)}"
|
${@bb.utils.contains('PTEST_ENABLED', '1', 'with-tests', '', d)}"
|
||||||
PACKAGECONFIG[with-builtin-libsystemd] = ",,sdbus-c++-libsystemd,libcap,basu"
|
PACKAGECONFIG[with-builtin-libsystemd] = ",,sdbus-c++-libsystemd,libcap,basu"
|
||||||
PACKAGECONFIG[with-external-libsystemd] = ",,systemd,libsystemd"
|
PACKAGECONFIG[with-external-libsystemd] = ",,systemd,libsystemd"
|
||||||
PACKAGECONFIG[with-tests] = "-DBUILD_TESTS=ON -DTESTS_INSTALL_PATH=${PTEST_PATH},-DBUILD_TESTS=OFF,googletest gmock"
|
PACKAGECONFIG[with-tests] = "-DBUILD_TESTS=ON -DINSTALL_TESTS=ON -DTESTS_INSTALL_PATH=${PTEST_PATH},-DBUILD_TESTS=OFF,googletest gmock"
|
||||||
|
|
||||||
DEPENDS += "expat"
|
DEPENDS += "expat"
|
||||||
|
|
||||||
SRCREV = "30d9f1d46258c2be4ce29b7f7f168ecdf6d4f328"
|
PV .= "+git"
|
||||||
|
SRCREV = "334fcb8833afb298270531dde369135e4b5b88fd"
|
||||||
SRC_URI = "git://github.com/Kistler-Group/sdbus-cpp.git;protocol=https;branch=master"
|
SRC_URI = "git://github.com/Kistler-Group/sdbus-cpp.git;protocol=https;branch=master \
|
||||||
SRC_URI += "file://run-ptest"
|
file://run-ptest"
|
||||||
|
|
||||||
EXTRA_OECMAKE = "-DBUILD_CODE_GEN=OFF \
|
EXTRA_OECMAKE = "-DBUILD_CODE_GEN=OFF \
|
||||||
-DBUILD_DOC=ON \
|
-DBUILD_DOC=ON \
|
||||||
|
|||||||
Reference in New Issue
Block a user