References: <20161121174953.GM28918@...1296...> <9048486e-03d9-7aa1-74f8-892a9cc7c1ee@...515...> <4ea0b775-5681-b908-f06d-9251d28e8c8a@...515...> From: David Sommerseth Message-ID: Date: Mon, 19 Dec 2016 16:31:26 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oi3uG3HUWbwu6hSA3iAPPDlaghD5RGjqq" Subject: Re: [Openvpn-devel] https://travis-ci.org/OpenVPN/openvpn/builds Reply-To: openvpn-devel@lists.sourceforge.net List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?0JjQu9GM0Y8g0KjQuNC/0LjRhtC40L0=?= , =?UTF-8?Q?Samuli_Sepp=c3=a4nen?= Cc: "openvpn-devel@lists.sourceforge.net" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --oi3uG3HUWbwu6hSA3iAPPDlaghD5RGjqq Content-Type: multipart/mixed; boundary="jXhFrbgP0xFrkd7uKtdMIIKsgJkfWAap3"; protected-headers="v1" From: David Sommerseth Reply-To: openvpn-devel@lists.sourceforge.net To: =?UTF-8?B?0JjQu9GM0Y8g0KjQuNC/0LjRhtC40L0=?= , =?UTF-8?Q?Samuli_Sepp=c3=a4nen?= Cc: "openvpn-devel@lists.sourceforge.net" Message-ID: Subject: Re: [Openvpn-devel] https://travis-ci.org/OpenVPN/openvpn/builds References: <20161121174953.GM28918@...1296...> <9048486e-03d9-7aa1-74f8-892a9cc7c1ee@...515...> <4ea0b775-5681-b908-f06d-9251d28e8c8a@...515...> In-Reply-To: --jXhFrbgP0xFrkd7uKtdMIIKsgJkfWAap3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 19/12/16 14:59, =D0=98=D0=BB=D1=8C=D1=8F =D0=A8=D0=B8=D0=BF=D0=B8=D1=86= =D0=B8=D0=BD wrote: >=20 >=20 > 2016-12-19 18:49 GMT+05:00 Samuli Sepp=C3=A4nen >: >=20 > Il 19/12/2016 15:44, David Sommerseth ha scritto: >=20 > On 19/12/16 11:01, Samuli Sepp=C3=A4nen wrote: > [...snip...] >=20 > Right now cmocka tests are skipped if >=20 > a) cmocka Git submodule is not initialized > b) CMake is not installed >=20 > See commit 45f6e7991cf for details. >=20 > Travis logs say this: >=20 > $ git clone --depth=3D50 --branch=3Dmaster > https://github.com/OpenVPN/openvpn.git > OpenVPN/openvpn > $ git submodule update --init --recursive >=20 > Which means that cmocka Git submodule gets sucked in > automatically. So > that leaves us with the following options afaics: >=20 > 1) Remove the cmocka directory after the fact (rather nasty) >=20 >=20 > In deed nasty. Why not rather detect if it os OSX and skip the '= git > submodule' step? >=20 >=20 > Yes, this would suck much less. >=20 > Chipitsine: could you have a look how this could be done? Basically > we'd need to different Git command than the above if MacOS X is > detected. >=20 >=20 >=20 > ? >=20 > --- configure.ac.orig 2016-12-19 18:50:30.657739835 +0500 > +++ configure.ac 2016-12-19 18:57:43.145828431 > +0500 > @@ -1268,7 +1268,12 @@ > AC_CHECK_PROGS([CMAKE], [cmake]) > if test -n "${CMAKE}"; then > if test -f "${srcdir}/vendor/cmocka/CMakeLists.txt"; then > - AM_CONDITIONAL([CMOCKA_INITIALIZED], [true]) > + if test "${TRAVIS_OS_NAME}" !=3D "osx"; then > + AM_CONDITIONAL([CMOCKA_INITIALIZED], [true]) > + else > + AM_CONDITIONAL([CMOCKA_INITIALIZED], [false]) > + AC_MSG_RESULT([!! WARNING !! The cmoka is turned off on osx > due to missing linker functions. Unit testing cannot be performed.]) > + fi > else > AM_CONDITIONAL([CMOCKA_INITIALIZED], [false]) > AC_MSG_RESULT([!! WARNING !! The cmoka git submodule has not been > initialized or updated. Unit testing cannot be performed.]) >=20 >=20 >=20 > I've no idea how to detect osx, but it is rather easy on travis-ci I'm strongly leaning towards a NAK on this approach, unless there exist absolutely no other way. I don't want to see configure.ac carrying Travis references for no good reason. I have not looked at all how the Travis integration works. But I'm putting some faith into "it is rather easy on travis-ci" ... and that's the place I meant should "auto-detect" if the test was being executed on OSX or not. --=20 kind regards, David Sommerseth OpenVPN Technologies, Inc --jXhFrbgP0xFrkd7uKtdMIIKsgJkfWAap3-- --oi3uG3HUWbwu6hSA3iAPPDlaghD5RGjqq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJYV/1OAAoJEIbPlEyWcf3yXQkP/3i/wLWiLdbm2zCuISN98iuN zjQImyyex17g/o5tq6LuNpAnRX9DPATq2HPxv/ME0LfiHukDz+JtbZa92IoavupI a5leBAqMgInTIvGnRWjHGBoSX1nstGxzXLwasbu8Q/ks4uOrnajQXnaxAyRKih3P wxyuRcN7l2qOExzJZ3leRmFqd6Ni04CzRF4Li1a2ns1a6TVpOz3a7z7/w8/4jYSU s9CgN8CaHfoPaUitTBxBYaS/teMLy2pSc6BcZZ68RUK6AuoPrUOgkAokL3iPOfEj TuGae1VNJapmkRXGXLJKWXEF1XBi6SUqpM6FCeqgZBStI/Jwh94+JOcCE+PLZToe t9IoSYZDuOEEAdXQA9LkJFL6U+U+hLhejupQgmUBeHMsk3BQDR/ISoome7pl8D0O Nt2AElV3ICvQTR6yy4LZu14dBE6SVVQ+KHZS/Ch+ayag0K9osnB6QLdlkF+7E0fd OmSX8CZiPPwW/8qdPCDql6Hye58RhFqDUypATUUl5glkbpzZ+94CZfTq7DhKKhK/ Ib8aGbNYTYqt4ZA8Bqn3at+w5VN4XC9214C9eRRIqZg1mkFM3SG5pj/PTH5d27s3 Zp8lsJH+pZO9rl7kritW4W44fYE5RJKlP/cTnB76MGrRFbJ7pH33G4ZwcBina6WW cq5zLQSBMO5tP7lWTOs5 =zXGA -----END PGP SIGNATURE----- --oi3uG3HUWbwu6hSA3iAPPDlaghD5RGjqq--