Closed sjunges closed 4 months ago
@volkm As this now seems to compile with Gurobi, we need to add the --noGurobi flag to the tests. How do we do that?
I will make sure that the MILP test also listens to the noGurobi flag.
One issue: ctest does not forward the arguments to googletest. We are currently using ctest to run all the tests and have a make target "test". There seems to be some workaround for supporting arguments. Another possibility would be to define the extra arguments in cmake when defining the googletest.
One additional small note: warnings on unknown arguments are currently not printed because the log level is set to ERROR.
Hmm. I am not so sure how to properly handle this then...
Maybe not so nice, but we could add a CMake flag DISABLE_GUROBI_TESTS
and use that instead of the --nogurobi
cmdline flag. We loose flexibility because we have to set the flag at build time, but at least it is working.
Another idea could be to use labels and then exclude tests based on the label.
Even another idea is to use environment variables.
@volkm i now check for the license at the start of every test suite. That also includes test suites which do not need that test, but hey...
I think it looks good for now. It is a bit overkill to check the license for every test suite, but I agree that it is currently the easiest way to handle the Gurobi license.
This PR adds four features towards better support for LP based MDP model checking: