From: Jens Neuhalfen Content-Type: multipart/alternative; boundary="Apple-Mail=_C1801A75-3241-4EED-9652-F6A411278975" Message-Id: <69E74833-0AD6-4FC4-A17F-FCD19BD0256A@...2127...> Date: Wed, 27 Apr 2016 20:55:35 +0200 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: [Openvpn-devel] Request for comment: Adding unit tests to openvpn List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: openvpn-devel --Apple-Mail=_C1801A75-3241-4EED-9652-F6A411278975 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable 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 w= ill post the =E2=80=9Creal=E2=80=9D patches to the list. https://github.com/OpenVPN/openvpn/pull/43 This set of patches adds unit test support to openvpn. The test framework u= sed is cmocka cmocka source is added as submodule in vendor because a package depenency i= s 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=20 Jens= --Apple-Mail=_C1801A75-3241-4EED-9652-F6A411278975 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable
Hi= ,

I put together = a set of patches that add unit testing support for openvpn. To make comment= s easier I put them together as pull request on github.

Please review the patch and point ou= t points of improvement. After that I will post the =E2=80=9Creal=E2=80=9D = patches to the list.


This set of patches adds unit test support to openvpn. The test = framework used is cmocka

    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 Trust= y

CAVE:

  • cmocka needs cmake to be installed


Cheers 
Jens
= --Apple-Mail=_C1801A75-3241-4EED-9652-F6A411278975--