[cmake-developers] Unit testing of new generators
Josh Green
inbilla at gmail.com
Fri May 1 09:31:03 EDT 2015
Hi Brad,
Thanks for the quick response!
So let me see if I have this right....
I have the following development environment:
/dev/CMake -- checkout of CMake repo
/dev/build -- visual studio cmake projects
/dev/build-fastbuild -- the directory where I am generating fastbuild
projects into.
So, your instuctions are...
When generating the build directory, I should use:
/dev/build> cmake.exe ..\CMake -DBUILD_TESTING=ON
then I should build CMake using visual studio.
Once that is done, I should do the following:
/dev/build-fastbuild> ..\build\bin\debug\Cmake.exe -G Fastbuild ..\CMake
-DCMake_TEST_EXTERNAL_CMAKE=/dev/build/bin/debug/Cmake.exe
then I should do the following:
/dev/build-fastbuild> ctest
is that right?
So what kind of tests will this run?
Is this documented anywhere?
Thanks
Josh
On Fri, May 1, 2015 at 10:52 PM, Brad King <brad.king at kitware.com> wrote:
> On 05/01/2015 08:49 AM, Josh Green wrote:
> > attempting to get a FASTBuild generator working for CMake.
> > I've successfully managed to get the CMake project itself
>
> Great!
>
> > I'm now looking for some standard unit tests to run against
> > the generator
>
> You should be able to run the CMake test suite. If you have
> CMake itself building then just configure with BUILD_TESTING
> set to ON and then run "ctest" in the build tree. Otherwise
> you can build CMake with another compiler and then configure
> a CMake build tree with your new generator and add
>
> -DCMake_TEST_EXTERNAL_CMAKE=/path/to/other/bin
>
> This will configure it to run the test suite against that binary
> but with your new generator.
>
> -Brad
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20150501/9ae15321/attachment.html>
More information about the cmake-developers
mailing list