check_solvers.hpp file
C++ solver plugin test suite callable as a library.
Provides a self-contained test suite that exercises every method of LinearInterface against every available solver plugin. The results are returned as structured data so callers can pretty-print, log, or assert on them without any external tool dependency.
Entry points
run_solver_tests(solver_name)– run all tests for one solver.check_all_solvers()– run all tests for every available solver; returns a non-zero exit code if any test fails.
CLI integration
Both functions are invoked by the --check-solvers flag of the gtopt binary so operators can validate the solver environment without writing any input files.
Namespaces
- namespace gtopt
Classes
- struct gtopt::SolverTestReport
- Aggregated results for all tests run against one solver.
- struct gtopt::SolverTestResult
- Result of running one named test against one solver.