Building tests.

Hi,

I'm trying to build the test suite on win32 target but it fails.

'make tests' in the root build dir doesn't do anything. Neither does 'make
all' from the tests subdirectory.

Does anyone have a clue?

Butch.

Building tests.

On Thursday 11 March 2010 12:01:39 Butch Slayer wrote:
> Hi,
>
> I'm trying to build the test suite on win32 target but it fails.

Which release/branch ?

>
> 'make tests' in the root build dir doesn't do anything. Neither does 'make
> all' from the tests subdirectory.
>
> Does anyone have a clue?

You need to specify -DENABLE_TESTS . This used to be a CMAKE_OPTION, but
dropped out in the 1.10 release. I've re-added it. BUILD_TESTS derives from
that flag.

Peter

Ruben Smits's picture

Building tests.

On Thu, Mar 11, 2010 at 12:01 PM, Butch Slayer <butch [dot] slayers [..] ...> wrote:
> Hi,
>
> I'm trying to build the test suite on win32 target but it fails.
>
> 'make tests' in the root build dir doesn't do anything. Neither does 'make
> all' from the tests subdirectory.
>
> Does anyone have a clue?

Did you enable the testing by adding -DBUILD_TESTING when executing cmake?

Ruben

> Butch.
>

Building tests.

2010/3/11 Ruben Smits <ruben [dot] smits [..] ...>

> On Thu, Mar 11, 2010 at 12:01 PM, Butch Slayer <butch [dot] slayers [..] ...>
> wrote:
> > Hi,
> >
> > I'm trying to build the test suite on win32 target but it fails.
> >
> > 'make tests' in the root build dir doesn't do anything. Neither does
> 'make
> > all' from the tests subdirectory.
> >
> > Does anyone have a clue?
>
> Did you enable the testing by adding -DBUILD_TESTING when executing cmake?
>
> Ruben
>
> > Butch.
> >
>
I didn't, now I have and they build.

Thnx.

Building tests.

On Mar 11, 2010, at 06:01 , Butch Slayer wrote:

> Hi,
>
> I'm trying to build the test suite on win32 target but it fails.
>
> 'make tests' in the root build dir doesn't do anything. Neither does 'make all' from the tests subdirectory.
>
> Does anyone have a clue?
>
> Butch.

Presuming that tests are supported on that platform (I've no experience with it)

make check

or

make test

I don't recall which ... you do have testing enabled, right?
S