Zach Mullen 874fdd914a CTest: Output test-specific env vars in verbose mode (#15446)
Any environment vars that were configured for a test via the
ENVIRONMENT property will now be output when the test is run
with verbose logging enabled.
2015-03-17 10:11:33 -04:00

12 lines
244 B
CMake

cmake_minimum_required (VERSION 2.6)
project(CTestTestVerboseOutput)
include(CTest)
add_executable(nop nop.c)
add_test(NAME TestWithProperties COMMAND nop)
set_property(TEST TestWithProperties PROPERTY ENVIRONMENT
"foo=bar"
"this=that"
)