This is definitely a good start... not sure the linux specific test driver
is the *best* place to test the common parts... but this can be improved
later on. Some non-perfect tests are better than no tests.
.. and when you get your Linux testhost to actually compile with sitnl
(it was still at --enable-iproute2) it will actually do something ;-)
[==========] route_test_list: Running 4 test(s).
[ RUN ] test_is_special_addr
[ OK ] test_is_special_addr
[ RUN ] test_netmask_to_netbits
[ OK ] test_netmask_to_netbits
[ RUN ] test_netmask_to_netbits2
[ OK ] test_netmask_to_netbits2
[ RUN ] test_route_ipv6_clear_host_bits
[ OK ] test_route_ipv6_clear_host_bits
[==========] route_test_list: 4 test(s) run.
[ PASSED ] 4 test(s).
Test 9: OK
Your patch has been applied to the master branch.
commit 241c5eb8afa06ee6c7dc05fe3c6b7df7b2379258
Author: Charlie Vigue
Date: Tue Nov 3 12:35:54 2026 +0100
tests: add unit tests for route.c
Signed-off-by: Charlie Vigue <[email protected]>
Acked-by: Razvan Cojocaru <[email protected]>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1946
Message-Id: <[email protected]>
URL:
https://www.mail-archive.com/[email protected]/msg40621.html
Signed-off-by: Gert Doering <[email protected]>
--
kind regards,
Gert Doering
_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel