Playground: testing multi-node networks #819
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR proposes end-to-end testing for multi-node networks within a Playground. It uses CMake to build testing scripts that refer to the correct executables. A test for a proposed extension to the playground format is included.
The testing scenario comprises five simulated Thymio-II robots partitioned into three networks.
The programs are simple beacons, that broadcast an alive message with the id of the node evry three seconds.
Playground
test-1-processes.playgroundillustrates how to build three networks in a five-node playground, using<process>tags to start asebaswitch, asebamassloader, and asebahttp (for inlined Aesl programs).Playground
test-2-networks.playgroundillustrates a proposed extension to the XML definition, suggested in #624 (comment). Since this test isn't implemented, the CMakeLists.txt declares that this test is expected to fail.