The following issue has been SUBMITTED. 
====================================================================== 
http://cmake.org/Bug/view.php?id=14298 
====================================================================== 
Reported By:                Mathieu Malaterre
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14298
Category:                   CMake
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-07-17 05:14 EDT
Last Modified:              2013-07-17 05:14 EDT
====================================================================== 
Summary:                    add_test and test with space
Description: 
Please document that add_test does not deal with test name with spaces.

Eg:

 get_filename_component(filename "${dcmfile}" NAME)
 add_test(NAME "my_app_${filename}"
   COMMAND ${EXECUTABLE_OUTPUT_PATH}/my_app "${dcmfile}"
 )

should really be:

 get_filename_component(filename "${dcmfile}" NAME)
 string(REPLACE " " "_" filename_nospace "${filename}")
 add_test(NAME "my_app_${filename_nospace}"
   COMMAND ${EXECUTABLE_OUTPUT_PATH}/my_app "${dcmfile}"
 )

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-07-17 05:14 Mathieu MalaterreNew Issue                                    
======================================================================

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to