Skip to contentSkip to conversation

Request for comment: Adding unit tests to openvpn

Openvpn-devel Jens Neuhalfen 1 participant 2 messages Apr 27, 2016 – Apr 29, 2016

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

Hi everybody,

in order to keep my local master branch clean, I put the code into a dedicated branch (and also did some polishing).

Unfortunately, github won’t allow me to change this in the pull request.

Without further ado, please have a look at the revised pull request: https://github.com/OpenVPN/openvpn/pull/44 <https://github.com/OpenVPN/openvpn/pull/44>

As always: I’ll send the patches to the list, after I got some comments (or per request).

Cheers
Jens

Quoted 32 lines · Jens Neuhalfen

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
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel