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

Function testSystemTools

Source/kwsys/testSystemTools.cxx:1343–1397  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1341}
1342
1343int testSystemTools(int, char*[])
1344{
1345 bool res = true;
1346
1347 int cc;
1348 for (cc = 0; toUnixPaths[cc][0]; cc++) {
1349 res &= CheckConvertToUnixSlashes(toUnixPaths[cc][0], toUnixPaths[cc][1]);
1350 }
1351
1352 // Special check for ~
1353 std::string output;
1354 if (kwsys::SystemTools::GetEnv("HOME", output)) {
1355 output += "/foo bar/lala";
1356 res &= CheckConvertToUnixSlashes("~/foo bar/lala", output);
1357 }
1358
1359 for (cc = 0; checkEscapeChars[cc][0]; cc++) {
1360 res &= CheckEscapeChars(checkEscapeChars[cc][0], checkEscapeChars[cc][1],
1361 *checkEscapeChars[cc][2], checkEscapeChars[cc][3]);
1362 }
1363
1364 res &= CheckFileOperations();
1365
1366 res &= CheckStringOperations();
1367
1368 res &= CheckEnvironmentOperations();
1369
1370 res &= CheckRelativePaths();
1371
1372 res &= CheckCollapsePath();
1373
1374 res &= CheckGetPath();
1375
1376 res &= CheckFind();
1377
1378 res &= CheckIsSubDirectory();
1379
1380 res &= CheckGetLineFromStream();
1381
1382 res &= CheckGetLineFromStreamLongLine();
1383
1384 res &= CheckGetFilenameName();
1385
1386 res &= CheckTextFilesDiffer();
1387
1388 res &= CheckCopyFileIfDifferent();
1389
1390 res &= CheckCopyFileIfNewer();
1391
1392 res &= CheckURLParsing();
1393
1394 res &= CheckSplitString();
1395
1396 return res ? 0 : 1;
1397}

Callers

nothing calls this directly

Calls 15

CheckEscapeCharsFunction · 0.85
CheckStringOperationsFunction · 0.85
CheckRelativePathsFunction · 0.85
CheckCollapsePathFunction · 0.85
CheckGetPathFunction · 0.85
CheckFindFunction · 0.85
CheckIsSubDirectoryFunction · 0.85
CheckGetLineFromStreamFunction · 0.85
CheckGetFilenameNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…