Subject: Re: [PATCH] Disable tests at build time?

Re: [PATCH] Disable tests at build time?

From: David Drysdale <drysdale_at_google.com>
Date: Mon, 22 Feb 2016 16:16:18 +0000

Hi Brad,

Yeah, that was an omission with 1.11.0 -- Daniel put in commit 10a1b7d509c8
soon after to add a --disable-tests option for ./configure.

David

On Mon, Feb 22, 2016 at 4:08 PM, Brad House <brad_at_mainstreetsoftworks.com>
wrote:

> I'm trying to do some testing of c-ares. I checked out the GIT tag for
> the 1.11.0 release,
> and am testing against various OS's. However a *lot* of these do not
> support C++11 and it
> appears this is required for building, even though c-ares itself does not
> have any such
> requirement.
>
> At this point, it appears that means there is no way to build without
> making changes to the
> build system (configure.ac) to disable the config subdir if you don't
> have a C++11 compiler.
> Is this intentional?
>
> I'd think it should just disable the building of the tests if the system
> doesn't have the
> prerequisites ... or at least provide a configure flag to specifically
> disable building of
> the tests.
>
> I've attached a possible patch to automatically select if it should build
> tests or not,
> and if you explicitly pass --enable-tests and it can't be used on that
> system, it will
> cause configure to fail instead of silently disabling them.
>
> -Brad
>
Received on 2016-02-22