-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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:
- https://www.gnu.org/software/autoconf-archive/ax_valgrind_check.html
- https://tecnocode.co.uk/2014/12/23/automatically-valgrinding-code-with-ax_valgrind_check/
- https://www.gnu.org/software/autoconf-archive/ax_valgrind_check.html
- https://ansuz.sooke.bc.ca/entry/233
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.)
Metadata
Metadata
Assignees
Labels
No labels