X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParaMEDMEMTest%2FParaMEDMEMTest.cxx;h=2da61c8e72d421935d865f3d3e61cd44195682d9;hb=c8d33262ed6d2041da8512b02f8c8b4ffadf733d;hp=42899d94a7869dc5b96e4e8fd6733193d21df3f9;hpb=586a7f0f6d8d1592a9547b15d1caac905cb1b053;p=tools%2Fmedcoupling.git diff --git a/src/ParaMEDMEMTest/ParaMEDMEMTest.cxx b/src/ParaMEDMEMTest/ParaMEDMEMTest.cxx index 42899d94a..2da61c8e7 100644 --- a/src/ParaMEDMEMTest/ParaMEDMEMTest.cxx +++ b/src/ParaMEDMEMTest/ParaMEDMEMTest.cxx @@ -18,6 +18,7 @@ // #include "ParaMEDMEMTest.hxx" +#include "TestInterpKernelUtils.hxx" #include #include @@ -30,35 +31,6 @@ #include #endif -//================================================================================ -/*! - * \brief Get path to the resources file. - * - * When running 'make test' source file is taken from MED_SRC/resources folder. - * Otherwise, file is searched in ${MED_ROOT_DIR}/share/salome/resources/med folder. - * - * \param filename name of the resource file (should not include a path) - * \return full path to the resource file - */ -//================================================================================ - -std::string ParaMEDMEMTest::getResourceFile( const std::string& filename ) -{ - std::string resourceFile = ""; - - if ( getenv("top_srcdir") ) { - // we are in 'make test' step - resourceFile = getenv("top_srcdir"); - resourceFile += "/resources/"; - } - else if ( getenv("MED_ROOT_DIR") ) { - // use MED_ROOT_DIR env.var - resourceFile = getenv("MED_ROOT_DIR"); - resourceFile += "/share/salome/resources/med/"; - } - resourceFile += filename; - return resourceFile; -} //================================================================================ @@ -92,7 +64,7 @@ std::string ParaMEDMEMTest::getTmpDirectory() //================================================================================ /*! - * \brief Creates a copy of source file (if source file is specified) + * \brief Creates a copy of source file (if source file is specified) * in the temporary directory and returns a path to the tmp file * * \param tmpfile name of the temporary file (without path)