xref: /third_party/libwebsockets/minimal-examples/mqtt-client/minimal-mqtt-client-multi/selftest.sh.broken-on-travis
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/libwebsockets/minimal-examples/mqtt-client/minimal-mqtt-client-multi/
1d4afb5ceSopenharmony_ci#!/bin/bash
2d4afb5ceSopenharmony_ci#
3d4afb5ceSopenharmony_ci# $1: path to minimal example binaries...
4d4afb5ceSopenharmony_ci#     if lws is built with -DLWS_WITH_MINIMAL_EXAMPLES=1
5d4afb5ceSopenharmony_ci#     that will be ./bin from your build dir
6d4afb5ceSopenharmony_ci#
7d4afb5ceSopenharmony_ci# $2: path for logs and results.  The results will go
8d4afb5ceSopenharmony_ci#     in a subdir named after the directory this script
9d4afb5ceSopenharmony_ci#     is in
10d4afb5ceSopenharmony_ci#
11d4afb5ceSopenharmony_ci# $3: offset for test index count
12d4afb5ceSopenharmony_ci#
13d4afb5ceSopenharmony_ci# $4: total test count
14d4afb5ceSopenharmony_ci#
15d4afb5ceSopenharmony_ci# $5: path to ./minimal-examples dir in lws
16d4afb5ceSopenharmony_ci#
17d4afb5ceSopenharmony_ci# Test return code 0: OK, 254: timed out, other: error indication
18d4afb5ceSopenharmony_ci
19d4afb5ceSopenharmony_ci. $5/selftests-library.sh
20d4afb5ceSopenharmony_ci
21d4afb5ceSopenharmony_ciCOUNT_TESTS=1
22d4afb5ceSopenharmony_ci
23d4afb5ceSopenharmony_ci#dotest $1 $2 warmcat
24d4afb5ceSopenharmony_ci
25d4afb5ceSopenharmony_ciQ=`which mosquitto`
26d4afb5ceSopenharmony_cispawn "" /tmp $Q -v
27d4afb5ceSopenharmony_cidotest $1 $2 -p-i100000 -p -i 100000
28d4afb5ceSopenharmony_ci
29d4afb5ceSopenharmony_cikill $SPID 2>/dev/null
30d4afb5ceSopenharmony_ciwait $SPID 2>/dev/null
31d4afb5ceSopenharmony_ciexit $FAILS
32d4afb5ceSopenharmony_ci
33

Indexes created Thu Nov 07 10:32:03 CST 2024