diff mbox

[1/4] Probe for libcheck by default.

Message ID 1314891739-1881-2-git-send-email-kraxel@redhat.com
State New
Headers show

Commit Message

Gerd Hoffmann Sept. 1, 2011, 3:42 p.m. UTC
Probe for libcheck and build checks (if found) by default.
Can be explicitly disabled using --disable-check-utests.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Anthony Liguori Sept. 1, 2011, 7:37 p.m. UTC | #1
On 09/01/2011 10:42 AM, Gerd Hoffmann wrote:
> Probe for libcheck and build checks (if found) by default.
> Can be explicitly disabled using --disable-check-utests.
>
> Signed-off-by: Gerd Hoffmann<kraxel@redhat.com>
> ---
>   configure |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)

I think we should convert the check tests to gtest, and then have make 
check use gtester and gtester-report generate a single report of all of 
the test cases.

We could then have build bot run make check and post the output.  I 
don't want to end up with a bunch of non gtest unit tests...

Regards,

Anthony Liguori

>
> diff --git a/configure b/configure
> index 1340c33..920de9e 100755
> --- a/configure
> +++ b/configure
> @@ -170,7 +170,7 @@ mixemu="no"
>   aix="no"
>   blobs="yes"
>   pkgversion=""
> -check_utests="no"
> +check_utests=""
>   user_pie="no"
>   zero_malloc=""
>   trace_backend="nop"
Gerd Hoffmann Sept. 2, 2011, 7:42 a.m. UTC | #2
On 09/01/11 21:37, Anthony Liguori wrote:
> On 09/01/2011 10:42 AM, Gerd Hoffmann wrote:
>> Probe for libcheck and build checks (if found) by default.
>> Can be explicitly disabled using --disable-check-utests.
>>
>> Signed-off-by: Gerd Hoffmann<kraxel@redhat.com>
>> ---
>> configure | 2 +-
>> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> I think we should convert the check tests to gtest, and then have make
> check use gtester and gtester-report generate a single report of all of
> the test cases.

I wouldn't object, that is *way* beyond the scope of this little patch 
series though.

> We could then have build bot run make check and post the output.

Running "make check" in buildbot is indeed the motivation to do this ;)

> I don't
> want to end up with a bunch of non gtest unit tests...

This patch series doesn't add any.  It just adds some build system glue 
so "make check" runs the existing stuff.

cheers,
   Gerd
Markus Armbruster Sept. 5, 2011, 7:39 a.m. UTC | #3
Gerd Hoffmann <kraxel@redhat.com> writes:

> On 09/01/11 21:37, Anthony Liguori wrote:
>> On 09/01/2011 10:42 AM, Gerd Hoffmann wrote:
>>> Probe for libcheck and build checks (if found) by default.
>>> Can be explicitly disabled using --disable-check-utests.
>>>
>>> Signed-off-by: Gerd Hoffmann<kraxel@redhat.com>
>>> ---
>>> configure | 2 +-
>>> 1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> I think we should convert the check tests to gtest, and then have make
>> check use gtester and gtester-report generate a single report of all of
>> the test cases.
>
> I wouldn't object, that is *way* beyond the scope of this little patch
> series though.

One step at a time.

>> We could then have build bot run make check and post the output.
>
> Running "make check" in buildbot is indeed the motivation to do this ;)
>
>> I don't
>> want to end up with a bunch of non gtest unit tests...
>
> This patch series doesn't add any.

Yep.  If you want to standardize on gtest, you get to convert or remove
the existing tests.  Until then, we use what we have.

>                                     It just adds some build system
> glue so "make check" runs the existing stuff.

Running self-tests shouldn't be made any harder than that.
diff mbox

Patch

diff --git a/configure b/configure
index 1340c33..920de9e 100755
--- a/configure
+++ b/configure
@@ -170,7 +170,7 @@  mixemu="no"
 aix="no"
 blobs="yes"
 pkgversion=""
-check_utests="no"
+check_utests=""
 user_pie="no"
 zero_malloc=""
 trace_backend="nop"