This website requires JavaScript.
Explore
Help
Register
Sign In
upstream
/
openvpn
Watch
1
Star
0
Fork
You've already forked openvpn
0
mirror of
https://github.com/OpenVPN/openvpn.git
synced
2026-06-09 08:59:57 -04:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
Actions
4
fuzzing
openvpn
/
tests
/
unit_tests
/
Makefile.am
6 lines
95 B
Makefile
Raw
Permalink
Normal View
History
Unescape
Escape
Add unit testing support via cmocka cmocka [1,2] is a testing framework for C. Adding unit test capabilities to the openvpn repository will greatly ease the task of writing correct code. cmocka source code is added as git submodule in ./vendor. A submodule approach has been chosen over a classical library dependency because libcmocka is not available, or only available in very old versions (e.g. on Ubuntu). cmocka is build during 'make check' and installed in vendor/dist/. [1] https://cmocka.org/ [2] https://lwn.net/Articles/558106/ Signed-off-by: Jens Neuhalfen <jens@neuhalfen.name> Acked-by: Steffan Karger <steffan@karger.me> Message-Id: <20160525175756.56186-2-openvpn-devel@neuhalfen.name> URL: http://article.gmane.org/gmane.network.openvpn.devel/11725 Signed-off-by: David Sommerseth <dazo@privateinternetaccess.com>
2016-05-25 13:57:55 -04:00
AUTOMAKE_OPTIONS
=
foreign
Only build and run cmocka unit tests if its submodule is initialized Commit 40cb4cfc5d01110 added infrastructure to write unit tests using cmocka. This was implemented using a git submodule to fetch an up-to-date cmocka test framework. The issue which appeared was that 'make check' stopped working if the cmocka submodule was not initialized and updated. As we do not want this to be a hard depenency, this patch makes running these unit tests conditional. If cmocka has not been initialized, skip them or if it has been initialized all unit tests will be run. [v2 - Also check if cmake is available, as cmocka depends on that to be built ] Signed-off-by: David Sommerseth <dazo@privateinternetaccess.com> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <1464703645-26640-1-git-send-email-openvpn@sf.lists.topphemmelig.net> URL: http://article.gmane.org/gmane.network.openvpn.devel/11758
2016-05-31 06:28:46 -04:00
i
f
C
M
O
C
K
A
_
I
N
I
T
I
A
L
I
Z
E
D
Make argv unit tests obey {MBEDTLS, OPENSSL}_{LIBS, CFLAGS} Fixes builds that use MBEDTLS_CFLAGS and friends to tell the build where the header files and libraries are. Also alphabetically orders some of the listed files in relates Makefile.am files. Signed-off-by: Steffan Karger <steffan@karger.me> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <1479152603-5103-1-git-send-email-steffan@karger.me> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13050.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
2016-11-14 14:43:23 -05:00
SUBDIRS
=
example_test openvpn plugins
Only build and run cmocka unit tests if its submodule is initialized Commit 40cb4cfc5d01110 added infrastructure to write unit tests using cmocka. This was implemented using a git submodule to fetch an up-to-date cmocka test framework. The issue which appeared was that 'make check' stopped working if the cmocka submodule was not initialized and updated. As we do not want this to be a hard depenency, this patch makes running these unit tests conditional. If cmocka has not been initialized, skip them or if it has been initialized all unit tests will be run. [v2 - Also check if cmake is available, as cmocka depends on that to be built ] Signed-off-by: David Sommerseth <dazo@privateinternetaccess.com> Acked-by: Gert Doering <gert@greenie.muc.de> Message-Id: <1464703645-26640-1-git-send-email-openvpn@sf.lists.topphemmelig.net> URL: http://article.gmane.org/gmane.network.openvpn.devel/11758
2016-05-31 06:28:46 -04:00
e
n
d
i
f
Reference in a new issue
Copy permalink