rename header containing file paths for tests

This commit is contained in:
Max Luebke 2023-08-22 12:50:29 +02:00 committed by Max Lübke
parent d6c4be6ea3
commit 358aa51836
3 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@ target_include_directories(testPOET PRIVATE "${PROJECT_SOURCE_DIR}/src")
get_filename_component(TEST_RInsideSourceFile "RInsidePOET_funcs.R" REALPATH)
get_filename_component(TEST_SampleInputScript "${PROJECT_SOURCE_DIR}/test/advection/dolo_adv.R" REALPATH)
configure_file(testDataStructures.hpp.in testDataStructures.hpp)
configure_file(testInputFiles.hpp.in InputFiles.hpp)
target_include_directories(testPOET PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
add_custom_target(check

View File

@ -1,9 +1,9 @@
#include "testDataStructures.hpp"
#include <cstddef>
#include <poet/AdvectionModule.hpp>
#include <string>
#include "InputFiles.hpp"
using namespace poet;
constexpr std::size_t MAX_ITER = 10;

View File

@ -1,7 +1,7 @@
#ifndef TESTRINSIDEPOET_H_
#define TESTRINSIDEPOET_H_
#ifndef TESTINPUTFILES_H_
#define TESTINPUTFILES_H_
inline const char *RInside_source_file = "@TEST_RInsideSourceFile@";
inline const char *SampleInputScript = "@TEST_SampleInputScript@";
#endif // TESTRINSIDEPOET_H_
#endif // TESTINPUTFILES_H_