2020-02-07 16:51:42 +01:00
|
|
|
# `gnrc_dhcpv6_client_6lbr` test
|
|
|
|
|
|
|
|
This test utilizes [scapy] to test the DHCPv6 client configuration for a 6LoWPAN
|
|
|
|
border router.
|
|
|
|
|
|
|
|
To test, compile and flash the application to any board of your liking (since
|
|
|
|
`ethos` is used to communicate with non-native boards it really doesn't matter
|
|
|
|
as long as the application fits).
|
|
|
|
|
|
|
|
```
|
|
|
|
make flash
|
|
|
|
```
|
|
|
|
|
|
|
|
And run the tests using
|
|
|
|
|
|
|
|
```
|
2021-02-06 13:09:12 +01:00
|
|
|
sudo make test-as-root
|
2020-02-07 16:51:42 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
Note that root privileges are required since `scapy` needs to construct Ethernet
|
|
|
|
frames to properly communicate over the TAP interface.
|
|
|
|
|
|
|
|
The tests succeeds if you see the string `SUCCESS`.
|
|
|
|
|
2020-10-02 08:17:41 +02:00
|
|
|
If any problems are encountered (i.e. if the test prints the string `FAILED`),
|
2020-02-07 16:51:42 +01:00
|
|
|
set the echo parameter in the `run()` function at the bottom of the test script
|
2021-02-06 13:09:12 +01:00
|
|
|
(tests-as-root/01-run.py) to `True`. The test script will then offer a more detailed
|
2020-02-07 16:51:42 +01:00
|
|
|
output.
|
|
|
|
|
|
|
|
[scapy]: https://scapy.readthedocs.io/en/latest/
|