diff --git a/CMakeLists_files.cmake b/CMakeLists_files.cmake index 0c7c97772..29f30b9d2 100644 --- a/CMakeLists_files.cmake +++ b/CMakeLists_files.cmake @@ -60,6 +60,7 @@ list (APPEND TEST_DATA_FILES if (INCLUDE_NON_PUBLIC_TESTS) list (APPEND TEST_DATA_FILES tests/non_public/SPE1_opm.DATA + tests/non_public/spe1.xml ) endif() diff --git a/tests/integration_tests/sim_fibo_ad_test.cpp b/tests/integration_tests/sim_fibo_ad_test.cpp index 9f3a33e8f..2db498ed8 100644 --- a/tests/integration_tests/sim_fibo_ad_test.cpp +++ b/tests/integration_tests/sim_fibo_ad_test.cpp @@ -176,7 +176,8 @@ std::vector runWithNewParser(parameter::ParameterGroup param) { std::vector state_collection; double gravity[3] = {0.0}; - std::string deck_filename = "SPE1_opm.DATA"; + boost::filesystem::path test_data("non_public/SPE1_opm.DATA"); + std::string deck_filename = test_data.native_file_string(); deck.reset(new EclipseGridParser(deck_filename)); // Grid init grid.reset(new GridManager(*deck)); @@ -269,10 +270,10 @@ std::vector runWithNewParser(parameter::ParameterGroup param) { BOOST_AUTO_TEST_CASE(SPE1_runWithOldAndNewParser_BlackOilStateEqual) { - int argc = 2; - const char ** argv = (const char **)malloc(2* sizeof(argv)); - argv[1] = "spe1.xml"; - parameter::ParameterGroup param(argc, argv, false); + boost::filesystem::path test_data("non_public/spe1.xml"); + std::string deck_filename = test_data.native_file_string(); + const char * argv[] = { "", deck_filename.c_str()}; + parameter::ParameterGroup param(2, argv, false); std::vector runWithOldParserStates = runWithOldParser(param); std::vector runWithNewParserStates = runWithNewParser(param);