summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.5.0/run-ptest
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.5.0/run-ptest')
-rwxr-xr-xmeta-oe/recipes-core/sdbus-c++/sdbus-c++-1.5.0/run-ptest15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.5.0/run-ptest b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.5.0/run-ptest
new file mode 100755
index 000000000..2dc6e1eca
--- /dev/null
+++ b/meta-oe/recipes-core/sdbus-c++/sdbus-c++-1.5.0/run-ptest
@@ -0,0 +1,15 @@
1#!/bin/sh
2set -e
3set -o pipefail
4
5SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
6
7${SCRIPTPATH}/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}/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}}'