Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions tests/integration_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

#include "multi_agent_solver/multi_agent_problem.hpp"
#include "multi_agent_solver/ocp.hpp"
#ifdef MAS_HAVE_OSQP
#include "multi_agent_solver/solvers/osqp.hpp"
#endif
#include "multi_agent_solver/solvers/ilqr.hpp"
#include "multi_agent_solver/strategies/centralized.hpp"
#include "multi_agent_solver/strategies/nash.hpp"
Expand Down Expand Up @@ -85,6 +87,7 @@ create_single_track_circular_ocp( double initial_theta, double track_radius, dou

} // namespace

#ifdef MAS_HAVE_OSQP
TEST( IntegrationTest, SingleTrackCentralizedOSQP )
{
SolverParams params;
Expand Down Expand Up @@ -143,6 +146,7 @@ TEST( IntegrationTest, SingleTrackCentralizedOSQP )
EXPECT_TRUE( std::isfinite(v) );
}
}
#endif

TEST( IntegrationTest, SingleTrackCentralizedILQR )
{
Expand Down
2 changes: 2 additions & 0 deletions tests/osqp_bounds_test.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#ifdef MAS_HAVE_OSQP
#include <gtest/gtest.h>

#include "multi_agent_solver/ocp.hpp"
Expand Down Expand Up @@ -103,3 +104,4 @@ TEST_F( OSQPBoundsTest, OSQPCollocationSolverRespectsStateBounds )
}

} // namespace mas
#endif // MAS_HAVE_OSQP