<HTML><BODY>We are using Jenkins and want it to parse CTest results. There is <br> already a plugin for that, that takes Test.xml produced by `ctest -T <br> Test` as an input. In `Test.xml` there are records like this:<br> <br> <Test Status="passed"><br> <Name>TEST-netutils</Name><br> <Path>/var/lib/jenkins/workspace/build/tech1utils</Path><br> <FullName>/var/lib/jenkins/workspace/build/tech1utils/TEST-netutils</FullName><br> <FullCommandLine>/var/lib/jenkins/workspace/build/tech1utils/test-netutils-core2</FullCommandLine><br> <br> We run `cmake --build; ctest` multiple times in different directories <br> for x86+x64 and Debug+Release builds, which results in multiple <br> `Test.xml` files. After aggregating them, Jenkins plugin outputs report <br> like this:<br> <br> projectroot.var.lib.jenkins.workspace.build:<br> tech1utils:<br> TEST_netutils 5.3 sec Passed<br> TEST_netutils 5.1 sec Passed<br> TEST_netutils 2.8 sec Passed<br> TEST_netutils 2.9 sec Passed<br> <br> which is kinda unreadable, you cannot immediately guess which test is <br> which one. Turns out that if we replace the <Path> property in XML from <br> `/var/lib/jenkins/workspace/build` to something like `build-32-debug`, <br> the report becomes more readable:<br> <br> projectroot.build-32-debug:<br> tech1utils:<br> TEST_netutils 5.3 sec Passed<br> projectroot.build-64-debug:<br> tech1utils:<br> TEST_netutils 5.1 sec Passed<br> ...<br> <br> Is it possible to feed to CTest some -Dparameters or ENV_VARS to provide <br> needed values in Path, instead of writing a script to replace XML <br> contents afterwards?</BODY></HTML>