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:
> Tests and examples are typically grouped into subdirectories, e.g.:
> 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.