message: mission: add define to test huge missions
diff: @@ -26,6 +26,9 @@ static std::shared_ptr<MissionItem> add_mission_item(double latitude_deg,
  static void compare_mission_items(const std::shared_ptr<MissionItem> original,
  const std::shared_ptr<MissionItem> downloaded);
  +// Set to 1 to test with 1200 mission items.
  +#define MANY_ITEMS_TEST 0
  +
  TEST_F(SitlTest, MissionAddWaypointsAndFly)
  {
  @@ -63,6 +66,9 @@ TEST_F(SitlTest, MissionAddWaypointsAndFly)
  std::vector<std::shared_ptr<MissionItem>> mission_items;
  +#if MANY_ITEMS_TEST==1
  + for (int i = 0; i < 50; ++i) {
  +#endif
  mission_items.push_back(
  add_mission_item(47.398170327054473,
  8.5456490218639658,
  @@ -110,6 +116,10 @@ TEST_F(SitlTest, MissionAddWaypointsAndFly)
  NAN,
  MissionItem::CameraAction::STOP_PHOTO_INTERVAL));
  +#if MANY_ITEMS_TEST==1
  + }
  +#endif
  +
  {
  LogInfo() << "Uploading mission...";
  // We only have the upload_mission function asynchronous for now, so we wrap it using
  