Debian Codegraph @

minimal-examples/mqtt-client/minimal-mqtt-client-multi/selftest.sh.broken-on-travis

raw
1 #!/bin/bash
2 #
3 # $1: path to minimal example binaries...
4 # if lws is built with -DLWS_WITH_MINIMAL_EXAMPLES=1
5 # that will be ./bin from your build dir
6 #
7 # $2: path for logs and results. The results will go
8 # in a subdir named after the directory this script
9 # is in
10 #
11 # $3: offset for test index count
12 #
13 # $4: total test count
14 #
15 # $5: path to ./minimal-examples dir in lws
16 #
17 # Test return code 0: OK, 254: timed out, other: error indication
18
19 . $5/selftests-library.sh
20
21 COUNT_TESTS=1
22
23 #dotest $1 $2 warmcat
24
25 Q=`which mosquitto`
26 spawn "" /tmp $Q -v
27 dotest $1 $2 -p-i100000 -p -i 100000
28
29 kill $SPID 2>/dev/null
30 wait $SPID 2>/dev/null
31 exit $FAILS
32