]> 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 21:03:16 +0000 (23:03 +0200)
commit1739c102a5c7db510f0ae3c125501a3d1ba3e85f
tree10dc402a898505c174b83bf6dbe5d0d4e52f8659
parent85f6a2b49db5544732b14ee3f0798e84329d6da1
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>
(cherry picked from commit 40cb4cfc5d011102daec61ab39583cba0eeb3077)
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]