| 1341 | } |
| 1342 | |
| 1343 | int 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…