]> git.ipfire.org Git - thirdparty/openvpn.git/commit
build: Package missing mock_msg.h
authorDavid Sommerseth <davids@openvpn.net>
Wed, 17 Apr 2019 20:30:15 +0000 (22:30 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 3 May 2019 18:40:28 +0000 (20:40 +0200)
commit19a22ac5a8673e87157a516b936ce008bacb44ea
tree1da5cd408178eabab7222c853d9e557bf8ac956a
parent4ded2deda0d6d33d38fbbd1f4cd4e9acc0836a89
build: Package missing mock_msg.h

The mock_msg.h file was not enlisted in the _SOURCES lists in
Makefile.am for the unit tests.  This caused the mock_msg.h file to not
be present in the .tar.gz file created by 'make dist'.

This was not noticed earlier as we haven't really tried much to run git
clone of the cmocka project manually in vendor/ from an unpacked
tarball.

With this fix the cmocka unit tests can also run from tarballs, with
manually extracting/fetching the cmocka source code in vendor/cmocka.

Signed-off-by: David Sommerseth <davids@openvpn.net>
----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----

How to test:

- Create a tarball: make distcheck (or just 'dist')
- Extract openvpn-2.5_git.tar.gz in a clean directory
- cd openvpn-2.5_git/vendor
- git clone https://git.cryptomilk.org/projects/cmocka.git
- ./configure
- make check
- Observe that the cmocka unit tests ran as expected

Depending on the CMake version, you might want to check out cmocka git
commit b2732b52202ae48f; which is the one we use in the git submodule.
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
Message-Id: <20190417203015.1903-1-davids@openvpn.net>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg18380.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
tests/unit_tests/openvpn/Makefile.am