]> git.ipfire.org Git - thirdparty/openvpn.git/commit
Add unit testing support via cmocka
authorJens Neuhalfen <jens@neuhalfen.name>
Wed, 25 May 2016 17:57:55 +0000 (19:57 +0200)
committerDavid Sommerseth <dazo@privateinternetaccess.com>
Mon, 30 May 2016 20:40:55 +0000 (22:40 +0200)
commit40cb4cfc5d011102daec61ab39583cba0eeb3077
tree3ad7edc3349f40a02c2d7522437cb4147715a7e0
parent600dd9a16fc61ff6e595f500fba5daf14248b739
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>
15 files changed:
.gitmodules [new file with mode: 0644]
Makefile.am
configure.ac
tests/Makefile.am
tests/unit_tests/.gitignore [new file with mode: 0644]
tests/unit_tests/Makefile.am [new file with mode: 0644]
tests/unit_tests/README.md [new file with mode: 0644]
tests/unit_tests/example_test/Makefile.am [new file with mode: 0644]
tests/unit_tests/example_test/README.md [new file with mode: 0644]
tests/unit_tests/example_test/test.c [new file with mode: 0644]
tests/unit_tests/example_test/test2.c [new file with mode: 0644]
vendor/.gitignore [new file with mode: 0644]
vendor/Makefile.am [new file with mode: 0644]
vendor/README.md [new file with mode: 0644]
vendor/cmocka [new submodule]