Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Dec 24, 2024
1 parent 20df9eb commit d74f595
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/solver/modeler/loadFiles/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
set(SOURCES
readSystem.cpp
readLibraries.cpp
readParameters.cpp

include/antares/solver/modeler/loadFiles/loadFiles.h
)
Expand Down
2 changes: 1 addition & 1 deletion src/solver/modeler/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ int main(int argc, const char** argv)

try
{
const auto parameters = LoadFiles::parseModelerParameters(studyPath);
const auto parameters = LoadFiles::loadParameters(studyPath);
const auto libraries = LoadFiles::loadLibraries(studyPath);
const auto system = LoadFiles::loadSystem(studyPath, libraries);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ solver-parameters: PRESOLVE 1
no-output: true)";
}

auto params = parseModelerParameters(working_tmp_dir);
auto params = parseModelerParameters(fileP);
BOOST_CHECK_EQUAL(params.solver, "sirius");
BOOST_CHECK_EQUAL(params.solverLogs, false);
BOOST_CHECK_EQUAL(params.solverParameters, "PRESOLVE 1");
Expand All @@ -66,7 +66,7 @@ solver-parameters: PRESOLVE 1
no-output: true)";
}

auto params = parseModelerParameters(working_tmp_dir);
auto params = parseModelerParameters(fileP);
BOOST_CHECK_EQUAL(params.solver, "sirius");
BOOST_CHECK_EQUAL(params.solverLogs, false);
BOOST_CHECK_EQUAL(params.solverParameters, "PRESOLVE 1");
Expand Down

0 comments on commit d74f595

Please sign in to comment.