MantisBT - CMake
View Issue Details
0015446CMakeCTestpublic2015-03-13 17:292015-11-02 09:13
Zach Mullen 
Zach Mullen 
normalfeaturealways
closedfixed 
 
CMake 3.3CMake 3.3 
0015446: In verbose mode, display env vars that were explicitly set for each test
We use set_property with the ENVIRONMENT property for many of our tests to control their runtime behavior. When running in verbose mode we see the full command line that is executed, but not the environment variables that were explicitly set for the test invocation. It would be nice to include those.
No tags attached.
Issue History
2015-03-13 17:29Zach MullenNew Issue
2015-03-13 17:54Zach MullenNote Added: 0038209
2015-03-15 10:31Brad KingNote Added: 0038215
2015-03-15 13:15Zach MullenNote Added: 0038217
2015-03-16 09:09Brad KingNote Added: 0038224
2015-03-16 09:45Zach MullenNote Added: 0038225
2015-03-17 10:12Brad KingNote Added: 0038229
2015-03-17 10:13Brad KingAssigned To => Zach Mullen
2015-03-17 10:13Brad KingStatusnew => resolved
2015-03-17 10:13Brad KingResolutionopen => fixed
2015-03-17 10:13Brad KingFixed in Version => CMake 3.3
2015-03-17 10:13Brad KingTarget Version => CMake 3.3
2015-11-02 09:13Robert MaynardNote Added: 0039733
2015-11-02 09:13Robert MaynardStatusresolved => closed

Notes
(0038209)
Zach Mullen   
2015-03-13 17:54   
Any thoughts on this? I was considering taking a crack at submitting a patch for it, are others OK with simply outputting these when in verbose mode?
(0038215)
Brad King   
2015-03-15 10:31   
Yes, this makes sense to me. Please proceed.
(0038217)
Zach Mullen   
2015-03-15 13:15   
http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=64e22138a7dfb5d23940ffb52b8b83f4b10e2b67 [^]
(0038224)
Brad King   
2015-03-16 09:09   
Re 0015446:0038217: Thanks for working on it. The test currently fails on all multi-config generators. The add_test call needs to pass '-C $<CONFIGURATION>' to ctest, at least. Some of the other tests do this and can be used as examples.
(0038225)
Zach Mullen   
2015-03-16 09:45   
Just pushed an update to the topic: http://www.cmake.org/gitweb?p=cmake.git;a=commitdiff;h=373eb5496726103d42f447c5a6cd47b8ac5ac138 [^]
(0038229)
Brad King   
2015-03-17 10:12   
Thanks. I fixed one more typo and squashed the changes into one commit:

 CTest: Output test-specific env vars in verbose mode
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=874fdd91 [^]
(0039733)
Robert Maynard   
2015-11-02 09:13   
Closing resolved issues that have not been updated in more than 4 months.