Files
aare/tests/test_config.hpp.in
2026-09-24 09:09:37 +02:00

13 lines
324 B
Plaintext

// SPDX-License-Identifier: MPL-2.0
#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("Path to test data: $AARE_TEST_DATA not set");
}
}