275 std::cout <<
"Running Test__LoadUnitTestData" << std::endl;
279 std::string suffix =
"/share/Testing/test_data/HronTurekFsi";
283 std::string TestDir = IRAD::Sys::CWD() +
"/UnitTestData";
288 std::cout <<
"LoadUnitTestData Error: GetInputData call failed."
290 result.UpdateResult(
"LoadUnitTestData:Works",
false);
295 if(!IRAD::Sys::FILEEXISTS(TestDir)){
296 std::cout <<
"LoadUnitTestData Error: Could not find directory, "
297 << TestDir <<
", for running tests." << std::endl;
298 result.UpdateResult(
"LoadUnitTestData:Works",
false);
303 std::string OrgDir = IRAD::Sys::CWD();
306 IntDir = IRAD::Sys::ChDir(TestDir);
308 std::cout <<
"LoadUnitTestData Error: Could not change directories to "
309 << TestDir <<
"." << std::endl;
310 result.UpdateResult(
"LoadUnitTestData:Works",
false);
313 result.UpdateResult(
"LoadUnitTestData:Works",
true);
315 IntDir = IRAD::Sys::ChDir(OrgDir);
virtual int GetInputData(std::string sourceDir, std::string destDir)
Function to copy input data from source testing directory for use in unit tests.
std::string SourceDirPath
The string for the testing source directory.