[CMake] ${CTEST_CONFIGURATION_TYPE} expanded to an empty string while running ctest

Gaetan Lehmann gaetan.lehmann at jouy.inra.fr
Wed Jun 21 10:44:39 EDT 2006


Hi,

I'm trying to run a different code some test with different path depending  
of the configuration (debug, release, ...) with Xcode and cmake 2.4.2

I have seen on the mailing list that ${CTEST_CONFIGURATION_TYPE} should be  
expanded to the configuration type. However, it seem to be expanded to an  
empty string.

ADD_TEST(mytest echo "testing \${CTEST_CONFIGURATION_TYPE}")

produce:

Start processing tests
Test project
Constructing a list of tests
Done constructing a list of tests
Changing directory into  
/Users/glehmann/src/contrib-itk/WrapITK/build-xcode/Python/Tests
   1/ 33 Testing mytest
Test command: /bin/echo testing\
testing
-- Process completed
    Passed

The following tests passed:
         mytest

100% tests passed, 0 tests failed out of 1


What is the right way to use configuration type with tests ?

Thanks,

Gaetan


-- 
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66    fax: 01 34 65 29 09
http://voxel.jouy.inra.fr


More information about the CMake mailing list