|
@@ -3,7 +3,7 @@
|
|
|
* Company: Lynar Studios
|
|
|
* E-Mail: webmaster@lynarstudios.com
|
|
|
* Created: 2020-08-15
|
|
|
- * Changed: 2021-04-23
|
|
|
+ * Changed: 2021-09-26
|
|
|
*
|
|
|
* */
|
|
|
|
|
@@ -11,6 +11,7 @@
|
|
|
#define TEST_HELPER_HPP
|
|
|
|
|
|
#include <string>
|
|
|
+#include <ls_std/ls_std.hpp>
|
|
|
|
|
|
class TestHelper
|
|
|
{
|
|
@@ -21,36 +22,13 @@ class TestHelper
|
|
|
|
|
|
static std::string getResourcesFolderLocation()
|
|
|
{
|
|
|
- std::string location{};
|
|
|
-
|
|
|
- #ifdef _WIN32
|
|
|
- location = TestHelper::getTestFolderLocation() + R"(resources\)";
|
|
|
- #endif
|
|
|
- #ifdef unix
|
|
|
- location = TestHelper::getTestFolderLocation() + R"(resources/)";
|
|
|
- #endif
|
|
|
- #ifdef __APPLE__
|
|
|
- location = TestHelper::getTestFolderLocation() + R"(resources/)";
|
|
|
- #endif
|
|
|
-
|
|
|
- return location;
|
|
|
+ return TestHelper::getTestFolderLocation() + "resources" + ls_std::FilePathSeparator::get();
|
|
|
}
|
|
|
|
|
|
static std::string getTestFolderLocation()
|
|
|
{
|
|
|
- std::string location{};
|
|
|
-
|
|
|
- #ifdef _WIN32
|
|
|
- location = R"(C:\Users\drums\CLionProjects\lynar-studios-standard-library\test\)";
|
|
|
- #endif
|
|
|
- #ifdef unix
|
|
|
- location = R"(/home/patrick/CLionProjects/lynar-studios-standard-library/test/)";
|
|
|
- #endif
|
|
|
- #ifdef __APPLE__
|
|
|
- location = R"(/Users/patrickmattulat/CLionProjects/lynar-studios-standard-library/test/)";
|
|
|
- #endif
|
|
|
-
|
|
|
- return location;
|
|
|
+ ls_std::File buildDirectory{ls_std::File::getWorkingDirectory()};
|
|
|
+ return buildDirectory.getParent() + "test" + ls_std::FilePathSeparator::get();
|
|
|
}
|
|
|
};
|
|
|
|