[riot-notifications] [RIOT-OS/RIOT] tests: provide tests for emcute (#11823)

Martine Lenders notifications at github.com
Wed Jul 10 16:09:54 CEST 2019


Ok, some details on the test server now that I cleaned it up a bit: it is a [`scapy` automaton](https://scapy.readthedocs.io/en/latest/advanced_usage.html#automata) (basically a deterministic automaton with sockets and packet parsing ability) and is defined as follows. 

![mqttsn_test_server](https://user-images.githubusercontent.com/675644/60975689-a85bfc80-a32c-11e9-8683-b9f965b891db.png)

You can generate this graphic yourself, using the following within a reachable portion of the test script:
```py
    MQTTSNServer.graph(options="-Gratio=.4", format="png",
            target="mqttsn_test_server.png")
```

This allows me to test some expected packet exchanges and include also some unexpected data exchanges. If the automaton reaches an error state, an exception is thrown. If it reaches the END state, the automaton's `run()` method stops.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11823#issuecomment-510077337
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190710/0048b18f/attachment.html>


More information about the notifications mailing list