Subject: Re: --enable-tests configure option?

Re: --enable-tests configure option?

From: Brad House <brad_at_brad-house.com>
Date: Thu, 30 Jul 2020 21:26:04 -0400

The problem is c-ares, though a C library, relies on gmock, a C++11 testing framework.  We cannot guarantee there is a
C++ compiler or that it supports C++11 or higher.

On 7/30/20 9:19 PM, Jeffrey Walton wrote:
> Hi Everyone,
>
> I'm building c-ares 1.16.1 from sources. This caught my eye:
>
> $ ./configure --help
> `configure' configures c-ares 1.16.1 ...
> ...
> --enable-tests build test suite
>
> I believe the self tests should be available by default. Users should
> not have to do anything special to get them. Maybe a better option
> would be --disable-tests.
>
> According to the GNU Coding Standard
> (https://www.gnu.org/prep/standards/html_node/Standard-Targets.html),
> 'make check' should build and execute the self tests. This is how most
> packages work. This should work out of the box without the need for
> additional options:
>
> ./configure ...
> make
> make check
> sudo make install
>
> I realize you may not follow the GNU Coding Standard. But 'make check'
> should always work.
>
> Jeff
Received on 2020-07-31