[cmake-developers] Specification for CTest XML format
Gregor Jasny
gjasny at googlemail.com
Tue Mar 5 09:57:11 EST 2019
Hello,
I'm wondering if there is a specification for the XML test output file
produced by CTest?
Some background: For a dashboard we'd like to know in which
CMakeLists.txt a test was created. For that we use the Path tag. Here
the baz test was declared in subdir/CMakeLists.txt
> <Name>baz</Name>
> <Path>./subdir</Path>
> <FullName>./subdir/baz</FullName>
> <FullCommandLine>/Users/gjasny/Git/Experimental/PP-970-test-case/_build/main</FullCommandLine>
But if I change the WORKING_DIRECTORY property of a test
> add_test(NAME custom_workdir COMMAND main)
> set_property(TEST custom_workdir PROPERTY WORKING_DIRECTORY /tmp)
it suddenly affects the Path:
> <Name>custom_workdir</Name>
> <Path>/tmp</Path>
> <FullName>/tmp/custom_workdir</FullName>
> <FullCommandLine>/Users/gjasny/Git/Experimental/PP-970-test-case/_build/main</FullCommandLine>
What is Path and FullName supposed to contain?
Thanks,
Gregor
More information about the cmake-developers
mailing list