Hi, I put together a set of patches that add unit testing support for openvpn. To make comments easier I put them together as pull request on github.
Please review the patch and point out points of improvement. After that I will post the “real” patches to the list. https://github.com/OpenVPN/openvpn/pull/43 <https://github.com/OpenVPN/openvpn/pull/43> This set of patches adds unit test support to openvpn. The test framework used is cmocka <https://cmocka.org/> cmocka source is added as submodule in vendor because a package depenency is not feasible (e.g. not available on all platforms) cmocka is automatically build during make check. the patchset contains tests for searchandreplace as an example Tested on MacOS & Ubuntu Trusty CAVE: cmocka needs cmake to be installed Cheers Jens