Skip to content
Snippets Groups Projects
Commit d58036aa authored by Andrew Wilson's avatar Andrew Wilson :elephant:
Browse files

Merge branch 'CDHRefactor' of https://gitlab.kitware.com/andrew.wilson/iMSTK into CDHRefactor

parents 52a44943 0186ac28
No related branches found
No related tags found
No related merge requests found
......@@ -373,7 +373,10 @@ add_subdirectory(Source/CollisionDetection)
add_subdirectory(Source/CollisionHandling)
add_subdirectory(Source/Scene)
add_subdirectory(Source/SimulationManager)
<<<<<<< HEAD
add_subdirectory(Source/Testing)
=======
>>>>>>> d1989b9d (REFAC: Remove apiutils)
add_subdirectory(Source/Filtering)
add_subdirectory(Source/FilteringCore)
......
......@@ -28,23 +28,24 @@
int
main(int argc, char** argv)
{
bool removeLog = false;
bool removeLog = true;
for (int i = 0; i < argc; ++i)
{
if (std::string(argv[i]) == "--imstk_keep_log")
{
removeLog = true;
removeLog = false;
}
}
if (removeLog)
{
vtksys::SystemTools::RemoveADirectory("testlog");
vtksys::SystemTools::MakeDirectory("testlog");
vtksys::SystemTools::RemoveADirectory("log");
}
vtksys::SystemTools::MakeDirectory("log");
auto& logger = imstk::Logger::getInstance();
logger.addFileSink("test", "testlog");
logger.addFileSink("test", "log");
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment