2013-10-24 17:06:00 +02:00
|
|
|
#include "test_resources_manager.hpp"
|
|
|
|
|
|
|
|
#define PUDDLE_TEST_DIRECTORY "puddle"
|
|
|
|
#define CONCORDIA_TAGSET_DIRECTORY "concordia-tagset"
|
|
|
|
#define CONCORDIA_CONFIG_DIRECTORY "concordia-config"
|
|
|
|
|
2015-04-15 14:14:10 +02:00
|
|
|
std::string TestResourcesManager::getPuddleFilePath(const std::string & filename) {
|
|
|
|
std::string result = std::string(TEST_RESOURCES_DIRECTORY);
|
2013-10-24 17:06:00 +02:00
|
|
|
return result + "/" + PUDDLE_TEST_DIRECTORY + "/" + filename;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2015-04-15 14:14:10 +02:00
|
|
|
std::string TestResourcesManager::getTestConcordiaConfigFilePath(const std::string & filename) {
|
|
|
|
std::string result = std::string(TEST_RESOURCES_DIRECTORY);
|
2013-10-24 17:06:00 +02:00
|
|
|
return result + "/" + CONCORDIA_CONFIG_DIRECTORY + "/" + filename;
|
|
|
|
}
|
|
|
|
|
2015-04-15 14:14:10 +02:00
|
|
|
std::string TestResourcesManager::getProdConcordiaConfigFilePath(const std::string & filename) {
|
|
|
|
std::string result = std::string(PROD_RESOURCES_DIRECTORY);
|
2013-10-24 17:06:00 +02:00
|
|
|
return result + "/" + CONCORDIA_CONFIG_DIRECTORY + "/" + filename;
|
|
|
|
}
|
|
|
|
|
2015-04-15 14:14:10 +02:00
|
|
|
std::string TestResourcesManager::getTestFilePath(const std::string & module, const std::string & filename) {
|
|
|
|
std::string result = std::string(TEST_RESOURCES_DIRECTORY);
|
2013-11-28 16:47:57 +01:00
|
|
|
return result + "/" + module + "/" + filename;
|
|
|
|
}
|
|
|
|
|