aare/tests/test_config.hpp.in
Erik Fröjdh d8d1f0c517
Taking v1 as the first release (#92)
- file reading
- decoding master file
2024-11-07 10:14:20 +01:00

12 lines
273 B
C++

#pragma once
#include <filesystem>
#include <cstdlib>
inline auto test_data_path(){
if(const char* env_p = std::getenv("AARE_TEST_DATA")){
return std::filesystem::path(env_p);
}else{
throw std::runtime_error("AARE_TEST_DATA_PATH not set");
}
}