Functions | |
| string | getResourceFile (const string &filename) |
| Get path to the resources file. | |
| string | getTmpDirectory () |
| Returns writable temporary directory. | |
| std::string | makeTmpFile (const std::string &tmpfile, const std::string &srcfile) |
| Creates a copy of source file (if source file is specified) in the temporary directory and returns a path to the tmp file. | |
| std::string MEDSPLITTERTest_Utils::getResourceFile | ( | const string & | filename | ) |
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.
| filename | name of the resource file (should not include a path) |
References test_NonCoincidentDEC.filename.
| std::string MEDSPLITTERTest_Utils::getTmpDirectory | ( | ) |
Returns writable temporary directory.
| std::string MEDSPLITTERTest_Utils::makeTmpFile | ( | const std::string & | tmpfile, |
| const std::string & | srcfile | ||
| ) |
Creates a copy of source file (if source file is specified) in the temporary directory and returns a path to the tmp file.
| tmpfile | name of the temporary file (without path) |
| srcfile | source file |
References medutilities.cmd, fixSlashes(), and getTmpDirectory().