From: vsr Date: Tue, 13 May 2008 11:44:19 +0000 (+0000) Subject: Replace DATA_DIR environment variable in tests by MED_ROOT_DIR X-Git-Tag: BR_Ensight_Indus_Patched1~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5bb64d3209829e88075f1e6c226e4ed7c26613fc;p=tools%2Fmedcoupling.git Replace DATA_DIR environment variable in tests by MED_ROOT_DIR --- diff --git a/src/INTERP_KERNEL/Test/Interpolation3DTest.cxx b/src/INTERP_KERNEL/Test/Interpolation3DTest.cxx index 1522cfac6..8453fa484 100644 --- a/src/INTERP_KERNEL/Test/Interpolation3DTest.cxx +++ b/src/INTERP_KERNEL/Test/Interpolation3DTest.cxx @@ -248,7 +248,8 @@ void Interpolation3DTest::tearDown() void Interpolation3DTest::calcIntersectionMatrix(const char* mesh1path, const char* mesh1, const char* mesh2path, const char* mesh2, IntersectionMatrix& m) const { - const string dataDir = getenv("DATA_DIR"); + const string dataBaseDir = getenv("MED_ROOT_DIR"); + const string dataDir = dataBaseDir + "/share/salome/resources/med/"; LOG(1, std::endl << "=== -> intersecting src = " << mesh1 << ", target = " << mesh2 ); diff --git a/src/INTERP_KERNEL/Test/MeshTestToolkit.txx b/src/INTERP_KERNEL/Test/MeshTestToolkit.txx index 919563a94..61fbdfcfe 100644 --- a/src/INTERP_KERNEL/Test/MeshTestToolkit.txx +++ b/src/INTERP_KERNEL/Test/MeshTestToolkit.txx @@ -345,7 +345,7 @@ namespace INTERP_TEST void MeshTestToolkit::calcIntersectionMatrix(const char* mesh1path, const char* mesh1, const char* mesh2path, const char* mesh2, IntersectionMatrix& m) const { const string dataBaseDir = getenv("MED_ROOT_DIR"); - const string dataDir = dataBaseDir + string("/share/salome/resources/MedFiles/"); + const string dataDir = dataBaseDir + string("/share/salome/resources/med/"); LOG(1, std::endl << "=== -> intersecting src = " << mesh1path << ", target = " << mesh2path ); diff --git a/src/INTERP_KERNEL/Test/PerfTest.cxx b/src/INTERP_KERNEL/Test/PerfTest.cxx index 6d141be08..e6597f7f6 100644 --- a/src/INTERP_KERNEL/Test/PerfTest.cxx +++ b/src/INTERP_KERNEL/Test/PerfTest.cxx @@ -49,7 +49,7 @@ namespace INTERP_TEST void calcIntersectionMatrix(const char* mesh1path, const char* mesh1, const char* mesh2path, const char* mesh2, IntersectionMatrix& m) { const string dataBaseDir = getenv("MED_ROOT_DIR"); - const string dataDir = dataBaseDir + "share/salome/resources/med/"; + const string dataDir = dataBaseDir + "/share/salome/resources/med/"; LOG(1, std::endl << "=== -> intersecting src = " << mesh1 << ", target = " << mesh2 ); diff --git a/src/INTERP_KERNEL/Test/RemapperTest.cxx b/src/INTERP_KERNEL/Test/RemapperTest.cxx index abd1b7c28..50f4b03f8 100644 --- a/src/INTERP_KERNEL/Test/RemapperTest.cxx +++ b/src/INTERP_KERNEL/Test/RemapperTest.cxx @@ -27,11 +27,11 @@ namespace INTERP_TEST */ void RemapperTest::test_Remapper() { string sourcename=getenv("MED_ROOT_DIR"); - sourcename +="/share/salome/resources/MedFiles/square1.med"; + sourcename +="/share/salome/resources/med/square1.med"; MEDMEM::MESH source_mesh (MED_DRIVER,sourcename,"Mesh_2"); string targetname=getenv("MED_ROOT_DIR"); - targetname +="/share/salome/resources/MedFiles/square2.med"; + targetname +="/share/salome/resources/med/square2.med"; MEDMEM::MESH target_mesh (MED_DRIVER,targetname,"Mesh_3"); MEDMEM::SUPPORT source_support(&source_mesh,"on All support"); diff --git a/src/INTERP_KERNEL/Test/TestingUtils.hxx b/src/INTERP_KERNEL/Test/TestingUtils.hxx index d10abfc0f..7046410b3 100644 --- a/src/INTERP_KERNEL/Test/TestingUtils.hxx +++ b/src/INTERP_KERNEL/Test/TestingUtils.hxx @@ -188,7 +188,8 @@ std::pair countNumberOfMatrixEntries(const IntersectionMatrix& m) void calcIntersectionMatrix(const char* mesh1path, const char* mesh1, const char* mesh2path, const char* mesh2, IntersectionMatrix& m) { - const string dataDir = getenv("DATA_DIR"); + const string dataBaseDir = getenv("MED_ROOT_DIR"); + const string dataDir = dataBaseDir + "/share/salome/resources/med/"; LOG(1, std::endl << "=== -> intersecting src = " << mesh1 << ", target = " << mesh2 );