mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-01-22 21:50:45 +01:00
Taking v1 as the first release (#92)
- file reading - decoding master file
This commit is contained in:
12
tests/test_config.hpp.in
Normal file
12
tests/test_config.hpp.in
Normal file
@@ -0,0 +1,12 @@
|
||||
#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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user