MCPcopy Create free account
hub / github.com/Kitware/CMake / DumpCTestProperties

Function DumpCTestProperties

Source/CTest/cmCTestMultiProcessHandler.cxx:1142–1273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1140}
1141
1142static Json::Value DumpCTestProperties(
1143 cmCTestTestHandler::cmCTestTestProperties& testProperties)
1144{
1145 Json::Value properties = Json::arrayValue;
1146 if (!testProperties.AttachOnFail.empty()) {
1147 properties.append(DumpCTestProperty(
1148 "ATTACHED_FILES_ON_FAIL", DumpToJsonArray(testProperties.AttachOnFail)));
1149 }
1150 if (!testProperties.AttachedFiles.empty()) {
1151 properties.append(DumpCTestProperty(
1152 "ATTACHED_FILES", DumpToJsonArray(testProperties.AttachedFiles)));
1153 }
1154 if (testProperties.Cost != 0.0f) {
1155 properties.append(
1156 DumpCTestProperty("COST", static_cast<double>(testProperties.Cost)));
1157 }
1158 if (!testProperties.Depends.empty()) {
1159 properties.append(
1160 DumpCTestProperty("DEPENDS", DumpToJsonArray(testProperties.Depends)));
1161 }
1162 if (testProperties.Disabled) {
1163 properties.append(DumpCTestProperty("DISABLED", testProperties.Disabled));
1164 }
1165 if (!testProperties.Environment.empty()) {
1166 properties.append(DumpCTestProperty(
1167 "ENVIRONMENT", DumpToJsonArray(testProperties.Environment)));
1168 }
1169 if (!testProperties.EnvironmentModification.empty()) {
1170 properties.append(DumpCTestProperty(
1171 "ENVIRONMENT_MODIFICATION",
1172 DumpToJsonArray(testProperties.EnvironmentModification)));
1173 }
1174 if (!testProperties.ErrorRegularExpressions.empty()) {
1175 properties.append(DumpCTestProperty(
1176 "FAIL_REGULAR_EXPRESSION",
1177 DumpRegExToJsonArray(testProperties.ErrorRegularExpressions)));
1178 }
1179 if (!testProperties.SkipRegularExpressions.empty()) {
1180 properties.append(DumpCTestProperty(
1181 "SKIP_REGULAR_EXPRESSION",
1182 DumpRegExToJsonArray(testProperties.SkipRegularExpressions)));
1183 }
1184 if (!testProperties.FixturesCleanup.empty()) {
1185 properties.append(DumpCTestProperty(
1186 "FIXTURES_CLEANUP", DumpToJsonArray(testProperties.FixturesCleanup)));
1187 }
1188 if (!testProperties.FixturesRequired.empty()) {
1189 properties.append(DumpCTestProperty(
1190 "FIXTURES_REQUIRED", DumpToJsonArray(testProperties.FixturesRequired)));
1191 }
1192 if (!testProperties.FixturesSetup.empty()) {
1193 properties.append(DumpCTestProperty(
1194 "FIXTURES_SETUP", DumpToJsonArray(testProperties.FixturesSetup)));
1195 }
1196 if (!testProperties.GeneratedResourceSpecFile.empty()) {
1197 properties.append(
1198 DumpCTestProperty("GENERATED_RESOURCE_SPEC_FILE",
1199 testProperties.GeneratedResourceSpecFile));

Callers 1

DumpCTestInfoFunction · 0.85

Calls 9

DumpCTestPropertyFunction · 0.85
DumpToJsonArrayFunction · 0.85
DumpRegExToJsonArrayFunction · 0.85
DumpTimeoutAfterMatchFunction · 0.85
appendMethod · 0.80
emptyMethod · 0.45
countMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…