You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been running "make check" before commits, but it requires some local config before running. On linux, assuming libmcrx is in ~/src, that looks like:
docker container run -d --rm --name amtgw-5 --privileged grumpyoldtroll/amtgw $(python3 ~/src/libmcrx/driad.py 23.212.185.5)
sudo ip route add 23.212.185.5/32 dev docker0
Then, as long as my sender of traffic from 23.212.185.5->232.1.1.1:5001 is alive and properly registered in the DNS and reachable, the tests pass. (Else they hang forever, which maybe also should be fixed to fail after some time.)
Ideally, this would also be coupled with adding valgrind to the tests and failing on violations. Some links on how to do so are here:
Other nice-to-haves would be gcov or similar, with some kind of coverage report shown on pages (also mentioned in some of the above but probably more research needed.)
The text was updated successfully, but these errors were encountered:
Maybe better than having the test environment run docker and pull external traffic would be to run https://github.com/GrumpyOldTroll/libmcrx/blob/master/test/send.py locally and switch the tests to use that. (PS: I think it has to be inside netns spaces to make ipv6 work if running sender and receiver on the same host, there is some important routing difference for multicast between v4 and v6 that I haven't tracked down.)
I've been running "make check" before commits, but it requires some local config before running. On linux, assuming libmcrx is in ~/src, that looks like:
Then, as long as my sender of traffic from 23.212.185.5->232.1.1.1:5001 is alive and properly registered in the DNS and reachable, the tests pass. (Else they hang forever, which maybe also should be fixed to fail after some time.)
Ideally, this would also be coupled with adding valgrind to the tests and failing on violations. Some links on how to do so are here:
Other nice-to-haves would be gcov or similar, with some kind of coverage report shown on pages (also mentioned in some of the above but probably more research needed.)
The text was updated successfully, but these errors were encountered: