Skip to content

Commit

Permalink
changed integration tests to reflect changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AskewParity committed Oct 17, 2024
1 parent 0e97d49 commit 0dce15a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 38 deletions.
10 changes: 1 addition & 9 deletions tests/integration/airdrop_approach.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,7 @@
#include "utilities/datatypes.hpp"
#include "utilities/http.hpp"

#define DECLARE_HANDLER_PARAMS(STATE, REQ, RESP) \
int argc = 2; \
char path1[] = "bin/obcpp"; \
char path2[] = "../configs/dev-config.json"; \
char *paths[] = {path1, path2}; \
char **paths_ptr = paths; \
std::shared_ptr<MissionState> STATE = std::make_shared<MissionState>(OBCConfig(argc, paths_ptr)); \
httplib::Request REQ; \
httplib::Response RESP
#include "handler_params.hpp"

const static char* mission_json_2024 = R"(
{
Expand Down
12 changes: 2 additions & 10 deletions tests/integration/coverage_pathing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,8 @@
#include "utilities/datatypes.hpp"
#include "utilities/http.hpp"

#define DECLARE_HANDLER_PARAMS(STATE, REQ, RESP) \
int argc = 2; \
char path1[] = "bin/obcpp"; \
char path2[] = "../configs/dev-config.json"; \
char *paths[] = {path1, path2}; \
char **paths_ptr = paths; \
std::shared_ptr<MissionState> STATE = \
std::make_shared<MissionState>(OBCConfig(argc, paths_ptr)); \
httplib::Request REQ; \
httplib::Response RESP
#include "handler_params.hpp"


const static char *mission_json_2020 = R"(
{
Expand Down
11 changes: 1 addition & 10 deletions tests/integration/coverage_pathing_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,7 @@
#include "utilities/datatypes.hpp"
#include "utilities/http.hpp"

#define DECLARE_HANDLER_PARAMS(STATE, REQ, RESP) \
int argc = 2; \
char path1[] = "bin/obcpp"; \
char path2[] = "../configs/dev-config.json"; \
char* paths[] = {path1, path2}; \
char** paths_ptr = paths; \
std::shared_ptr<MissionState> STATE = \
std::make_shared<MissionState>(OBCConfig(argc, paths_ptr)); \
httplib::Request REQ; \
httplib::Response RESP
#include "handler_params.hpp"

const static char* mission_json_2024 = R"(
{
Expand Down
10 changes: 1 addition & 9 deletions tests/integration/path_planning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,7 @@
#include "utilities/datatypes.hpp"
#include "utilities/http.hpp"

#define DECLARE_HANDLER_PARAMS(STATE, REQ, RESP) \
int argc = 2; \
char path1[] = "bin/obcpp"; \
char path2[] = "../configs/dev-config.json"; \
char *paths[] = {path1, path2}; \
char **paths_ptr = paths; \
std::shared_ptr<MissionState> STATE = std::make_shared<MissionState>(OBCConfig(argc, paths_ptr)); \
httplib::Request REQ; \
httplib::Response RESP
#include "handler_params.hpp"

const static char* mission_json_2020 = R"(
{
Expand Down

0 comments on commit 0dce15a

Please sign in to comment.