References: <20161121174953.GM28918@...1296...> <9048486e-03d9-7aa1-74f8-892a9cc7c1ee@...515...> From: =?UTF-8?Q?Samuli_Sepp=c3=a4nen?= Message-ID: <4ea0b775-5681-b908-f06d-9251d28e8c8a@...515...> Date: Mon, 19 Dec 2016 12:01:33 +0200 MIME-Version: 1.0 In-Reply-To: Subject: Re: [Openvpn-devel] https://travis-ci.org/OpenVPN/openvpn/builds List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable To: =?UTF-8?B?0JjQu9GM0Y8g0KjQuNC/0LjRhtC40L0=?= Cc: "openvpn-devel@lists.sourceforge.net" Il 19/12/2016 11:38, =D0=98=D0=BB=D1=8C=D1=8F =D0=A8=D0=B8=D0=BF=D0=B8=D1= =86=D0=B8=D0=BD ha scritto: > > > 2016-12-19 14:11 GMT+05:00 Samuli Sepp=C3=A4nen >: > > Il 19/12/2016 10:22, =D0=98=D0=BB=D1=8C=D1=8F =D0=A8=D0=B8=D0=BF=D0= =B8=D1=86=D0=B8=D0=BD ha scritto: > > > > 2016-11-27 4:29 GMT+05:00 David Sommerseth > > >>: > > On 26/11/16 12:32, =D0=98=D0=BB=D1=8C=D1=8F =D0=A8=D0=B8=D0= =BF=D0=B8=D1=86=D0=B8=D0=BD wrote: > > > > > > 2016-11-21 22:49 GMT+05:00 Gert Doering > > > > > > >>>: > > > > Hi, > > > > On Mon, Nov 21, 2016 at 10:31:45PM +0500, ???????? > ?????????????? wrote: > > > this line > > > > > > > https://github.com/OpenVPN/openvpn/blob/master/tests/unit_tests/o= penvpn/Makefile.am#L17 > > > > > > > > > >> > > > > > > causes an error > > > > GNU LD manpage says this is a trick to make it link > "another function" > > "--wrap parse_line" would make it link > __wrap_parse_line() instead - > > most likely because @d12fk provided a stub function > that mocks the > > result (or whatever). > > > > Have not looked into this in more detail. > > > > > > > http://www.mockator.com/projects/mockator/wiki/Wrap_Functions > > > > > > > > "Alas, this feature is *only available with the GNU tool > chain on > > Linux*. GCC for Mac OS X does not offer the linker flag > |-wrap|. " > > > > should we skip those tests on osx ? or someone will > rewrite them ? > > I'd hold back a little bit. I know Arne, Heiko and some > people from > #cmocka on FreeNode had a discussion about this issue > earlier this week. > I don't know what they agreed on, but there was a > discussion where they > looked at a few alternatives at least. > > > > any news on that ? > > > We discussed this in previous IRC meeting, and there is still no > real fix: > > > > > The easiest "fix" would be to just disable cmocka unit tests for > MacOS X in .travis.yml. I believe the unit tests behave exactly the > same on every platform(?), so removing MacOS X would not have any > negative impact on code quality. > > > ok, can you send a patch on that ? > Right now cmocka tests are skipped if a) cmocka Git submodule is not initialized b) CMake is not installed See commit 45f6e7991cf for details. Travis logs say this: $ git clone --depth=3D50 --branch=3Dmaster=20 https://github.com/OpenVPN/openvpn.git OpenVPN/openvpn $ git submodule update --init --recursive Which means that cmocka Git submodule gets sucked in automatically. So=20 that leaves us with the following options afaics: 1) Remove the cmocka directory after the fact (rather nasty) 2) Ensure that CMake is not installed on MacOS X (does mbedTLS require=20 this?) 3) Allow the user to select if cmocka tests are run or not Thoughts anyone? --=20 Samuli Sepp=C3=A4nen Community Manager OpenVPN Technologies, Inc irc freenode net: mattock