Boost logo

Boost Interest :

Subject: Re: [Boost-cmake] Individual library testing
From: troy d. straszheim (troy_at_[hidden])
Date: 2009-11-11 10:34:08


David Abrahams wrote:
>
> http://sodium.resophonic.com/boost-cmake/current-docs/individual_libraries.html#tests-and-examples
> sez:
>
> Tests and examples are typically grouped into subdirectories, e.g.:
>
> libs/
> iostreams/
> test/
> examples/
>
> CMake builds a parallel directory hierarchy in the build directory. If
> you are working on, say, the examples for iostreams, you can just cd
> into the directory $BUILDDIR/libs/iostreams/examples and type make:
>
> So, let's say I want to start hacking on a header-only library,
> e.g. Boost.Parameter. Naturally, I want to run its tests as I make
> changes. How do I start doing that?

Set BUILD_TESTS to 'parameter'. When you reconfigure,
libs/parameter/test will be generated. To build the tests, just 'make'
in that directory. To run the tests, type 'ctest' in that directory.

-t


Boost-cmake list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk