summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.7.6/run-ptest
diff options
context:
space:
mode:
authorsangelovic <angelovic.s@gmail.com>2019-06-12 11:50:07 +0200
committerKhem Raj <raj.khem@gmail.com>2020-01-06 19:22:26 -0800
commitb2baaae2711d098c06423858662e29a8375fe6b8 (patch)
treee0aa103d7e518f6c3d69708df7a3fae52a87dc40 /meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.7.6/run-ptest
parente70fc74473a2df1609530a32e3a8c039702eeb07 (diff)
downloadmeta-openembedded-b2baaae2711d098c06423858662e29a8375fe6b8.tar.gz
sdbus-c++: Introduce recipes for sdbus-c++ library and its tools
sdbus-c++ is a high-level, expressive, easy-to-use C++ D-Bus client library written on top of systemd D-Bus client C library. Signed-off-by: Stanislav Angelovic <angelovic.s@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.7.6/run-ptest')
-rwxr-xr-xmeta-oe/recipes-core/sdbus-c++/sdbus-c++-0.7.6/run-ptest15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.7.6/run-ptest b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.7.6/run-ptest
new file mode 100755
index 000000000..f6ade0c7e
--- /dev/null
+++ b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-0.7.6/run-ptest
@@ -0,0 +1,15 @@
1#!/bin/sh
2set -e
3set -o pipefail
4
5SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
6
7${SCRIPTPATH}/../tests/sdbus-c++-unit-tests 2>&1 | \
8sed -r 's/^\[\s+OK\s+\] (.*) \([0-9]+\sms\)$/OK: \1 /' | \
9sed -r 's/^\[\s+FAILED\s+\] (.*) \([0-9]+\sms\)$/FAILED: \1 /' | \
10awk '{if ($1 == "OK:" || $1 == "FAILED:") {print $0}}'
11
12${SCRIPTPATH}/../tests/sdbus-c++-integration-tests 2>&1 | \
13sed -r 's/^\[\s+OK\s+\] (.*) \([0-9]+\sms\)$/OK: \1 /' | \
14sed -r 's/^\[\s+FAILED\s+\] (.*) \([0-9]+\sms\)$/FAILED: \1 /' | \
15awk '{if ($1 == "OK:" || $1 == "FAILED:") {print $0}}'