This commit is contained in:
2024-10-22 09:25:55 -05:00
parent 0f60a5a467
commit 5138b0d1ab
6 changed files with 18 additions and 68 deletions

View File

@ -110,10 +110,19 @@ auto generate_test_file_name(std::string_view file_name_no_extension)
return generated_files.back()->get_path();
}
auto get_test_config_dir() -> std::string {
static auto test_path = ([]() -> std::string {
auto dir = utils::get_environment_variable("PROJECT_TEST_CONFIG_DIR");
return utils::path::combine(dir.empty() ? "." : dir, {"test_config"});
})();
return test_path;
}
auto get_test_input_dir() -> std::string {
static auto test_path = ([]() -> std::string {
auto dir = utils::get_environment_variable("PROJECT_TEST_DIR");
return utils::path::combine(dir.empty() ? "." : dir, {"test_config"});
auto dir = utils::get_environment_variable("PROJECT_TEST_INPUT_DIR");
return utils::path::combine(dir.empty() ? "." : dir, {"test_input"});
})();
return test_path;