aboutsummaryrefslogtreecommitdiffstats
path: root/meta-ivi-test/recipes-extended/common-api/common-api-c++-dbus/common-api-c++-dbus_t.inc
blob: 09199db059c9bc13e9937359e072c7e9557569ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
get_list() {
  return 1
}

get_title() {
  echo "Common API C++ test code"
}

_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
}