summaryrefslogtreecommitdiffstats
path: root/meta-ivi-test/recipes-extended/common-api/capicxx-perf/capicxx-perf_t.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-ivi-test/recipes-extended/common-api/capicxx-perf/capicxx-perf_t.inc')
-rw-r--r--meta-ivi-test/recipes-extended/common-api/capicxx-perf/capicxx-perf_t.inc22
1 files changed, 19 insertions, 3 deletions
diff --git a/meta-ivi-test/recipes-extended/common-api/capicxx-perf/capicxx-perf_t.inc b/meta-ivi-test/recipes-extended/common-api/capicxx-perf/capicxx-perf_t.inc
index 2503c10..09199db 100644
--- a/meta-ivi-test/recipes-extended/common-api/capicxx-perf/capicxx-perf_t.inc
+++ b/meta-ivi-test/recipes-extended/common-api/capicxx-perf/capicxx-perf_t.inc
@@ -7,9 +7,25 @@ get_title() {
echo "Common API C++ test code"
}
-run_1() {
- /opt/tests/capicxx-perf/capicxx-server &
- /opt/tests/capicxx-perf/capicxx-client
+_run_dir=/opt/tests/capicxx-perf
+_run_1() {
+ ${_run_dir}/capicxx-server &
+ ${_run_dir}/capicxx-client
kill -9 `pidof capicxx-server`
sleep 1
}
+
+run_1() {
+ if [ "x${1}" != "x" ]; then
+ _run_1 >& /tmp/t
+ _test_completed=`cat /tmp/t | grep "test completed"`
+ _10000_sent=`cat /tmp/t | grep "sync messages sent" | grep 10000`
+ if [ "x${_test_completed}" != "x" -a "y${_10000_sent}" != "y" ]; then
+ echo " PASSED"
+ else
+ echo " FAILED"
+ fi
+ else
+ _run_1
+ fi
+}