-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TSCH: simple IPv6 communication test #2079
base: master
Are you sure you want to change the base?
Conversation
Cool! |
@simonduq Agree. In fact, I tried doing that yesterday with replacing |
<project EXPORT="discard">[APPS_DIR]/serial_socket</project> | ||
<project EXPORT="discard">[APPS_DIR]/collect-view</project> | ||
<project EXPORT="discard">[APPS_DIR]/powertracker</project> | ||
<project EXPORT="discard">[APPS_DIR]/radiologger-headless</project> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should be removed.
Yeah I think changing target directly in .csc files takes more than just a search and replace unfortunately. Different targets load different plugins etc. You might have to create cooja motes by hand (GUI) and look at the resulting csc. |
65aba4c
to
dddad85
Compare
Planning on porting this one as well to platform |
dddad85
to
876ba41
Compare
test-driven development :) |
@simonduq Yup, I like that style of development 😄 |
Summary
This PR introduces a regression test to confirm if basic IPv6 communication is done successfully with TSCH and the
z1
platform.In the test, two nodes, TSCH Coordinator and TSCH Node, are created with the
z1
platform. As soon as TSCH Node joins a network formed by TSCH Coordinator, the node sends a unicast packet and a broadcast packet to the coordinator by UDP. The coordinator sends back the received message to the node with the same communication type as the received packet, unicast or broadcast.If and only if both of them receive one unicast message and one broadcast message, the test ends with success. Otherwise, the test fails.
It is said that some link error randomly occurs for the
z1
platform, and it causes test failure. To prevent such a failure from making Travis red, the new test is marked withflaky
as19-z1-rpl-tsch.csc.flaky
and others.[UPDATE]
The same test for the
cooja
platform is also introduced.Dependency
The test fails with the latest codebase. To make this test succeed, the following changes are needed:
How to Run
$ cd regression-tests/11-ipv6 $ java -Xshare:on -jar ../../tools/cooja/dist/cooja.jar -nogui=22-z1-tsch-simple-ipv6-test.csc.flaky -contiki=../..
The test result can be found in
COOJA.testlog
[success case]
[failure case]