mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
[Fwk] Moved ProjectDataModel unit test
This commit is contained in:
parent
6cecdf7fc3
commit
1bdb68e3d7
@ -1,43 +0,0 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
namespace cvftest {
|
|
||||||
|
|
||||||
|
|
||||||
//==================================================================================================
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//==================================================================================================
|
|
||||||
class Utils
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
static cvf::String getTestDataDir(const cvf::String& unitTestFolder)
|
|
||||||
{
|
|
||||||
#ifdef WIN32
|
|
||||||
std::string exe = std::string(testing::internal::GetArgvs()[0]);
|
|
||||||
#else
|
|
||||||
std::string dir = std::string(testing::internal::FilePath::GetCurrentDir().ToString());
|
|
||||||
std::string exe = dir + std::string("/") + std::string(testing::internal::GetArgvs()[0]);
|
|
||||||
#endif
|
|
||||||
std::string testPath = exe.substr(0, exe.find(unitTestFolder.toStdString())) + std::string("TestData/");
|
|
||||||
|
|
||||||
return testPath;
|
|
||||||
}
|
|
||||||
|
|
||||||
static cvf::String getGLSLDir(const cvf::String& unitTestFolder)
|
|
||||||
{
|
|
||||||
#ifdef WIN32
|
|
||||||
std::string exe = std::string(testing::internal::GetArgvs()[0]);
|
|
||||||
#else
|
|
||||||
std::string dir = std::string(testing::internal::FilePath::GetCurrentDir().ToString());
|
|
||||||
std::string exe = dir + std::string("/") + std::string(testing::internal::GetArgvs()[0]);
|
|
||||||
#endif
|
|
||||||
std::string glslPath = exe.substr(0, exe.find(unitTestFolder.toStdString())) + std::string("../LibRender/glsl/");
|
|
||||||
|
|
||||||
return glslPath;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -15,7 +15,7 @@ add_subdirectory(AppFwk/cafCommand)
|
|||||||
add_subdirectory(AppFwk/cafUserInterface)
|
add_subdirectory(AppFwk/cafUserInterface)
|
||||||
|
|
||||||
# Unit Tests
|
# Unit Tests
|
||||||
add_subdirectory(AppFwk/cafTests/cafProjectDataModel_UnitTests)
|
add_subdirectory(AppFwk/cafProjectDataModel/cafProjectDataModel_UnitTests)
|
||||||
add_subdirectory(AppFwk/cafProjectDataModel/cafPdmCore/cafPdmCore_UnitTests)
|
add_subdirectory(AppFwk/cafProjectDataModel/cafPdmCore/cafPdmCore_UnitTests)
|
||||||
add_subdirectory(AppFwk/cafProjectDataModel/cafPdmXml/cafPdmXml_UnitTests)
|
add_subdirectory(AppFwk/cafProjectDataModel/cafPdmXml/cafPdmXml_UnitTests)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user