• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2
3echo "Starting $0"
4
5bin/lws-minimal-dbus-ws-proxy 2> /tmp/dbuss&
6
7echo "  server starting"
8sleep 1s
9PID_PROX=$!
10
11echo "  client starting"
12bin/lws-minimal-dbus-ws-proxy-testclient -x 10 2> /tmp/dbusc
13R=$?
14
15kill -2 $PID_PROX
16
17if [ $R -ne 0 ] ; then
18	echo "$0 FAILED"
19	cat /tmp/dbuss
20	cat /tmp/dbusc
21	exit 1
22fi
23
24if [ -z "`cat /tmp/dbusc | grep 'rx: 9, tx: 9'`" ] ; then
25	echo "$0 FAILED"
26	cat /tmp/dbuss
27	cat /tmp/dbusc
28	exit 1
29fi
30
31echo "$0 PASSED"
32
33exit 0
34
35