MantisBT - CMake
View Issue Details
0004564CMakeCTestpublic2007-03-09 19:462011-06-17 12:38
Matthew Woehlke 
David Cole 
lowfeaturealways
closedfixed 
 
CMake 2.8.5CMake 2.8.5 
0004564: RFE: run CMake's test suite with 'make check'
For cmake 2.4.7 (or whatever comes next), could 'make check' work (i.e. do the same thing as 'make test', rather than being an unknown target)? Right now I added this to CMakeLists.txt:

ADD_CUSTOM_TARGET(check make test)

Rationale: I want to include cmake with a set of mostly-GNU packages I maintain. To avoid special-casing just for cmake, I need 'check' to be the test-suite target.
No tags attached.
Issue History
2010-12-14 11:41David ColeAssigned ToKen Martin => David Cole
2011-02-01 15:55David ColeNote Added: 0025215
2011-02-01 15:55David ColeStatusassigned => resolved
2011-02-01 15:55David ColeResolutionopen => fixed
2011-02-01 15:57David ColeNote Added: 0025216
2011-02-16 11:44David ColeTarget Version => CMake 2.8.5
2011-06-06 18:25David ColeStatusresolved => closed
2011-06-06 18:25David ColeNote Added: 0026723
2011-06-17 12:38David ColeFixed in Version => CMake 2.8.5

Notes
(0025215)
David Cole   
2011-02-01 15:55   
Fix pushed to 'next'
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=816c9d1aa1f2b42d40c81a991b68c96eb12b6d26 [^]
(0025216)
David Cole   
2011-02-01 15:57   
Once this fix is in a real release of CMake (not until at least 2.8.5), you'll have to configure CMake with that real release (or bootstrap that one) and use:

cmake -DCTEST_TEST_TARGET_ALIAS=check ../CMake

in order to get a "check" target. But you can have one now without modifying the CMake source code first. You can also do the same with any other project that does an "include(CTest)" and uses ctest for its test suite.
(0026723)
David Cole   
2011-06-06 18:25   
Closing resolved issues that have not been updated in more than 3 months.