2026-01-27 09:06:40 -05:00
|
|
|
// SPDX-FileCopyrightText: 2012 Icinga GmbH <https://icinga.com>
|
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-10-19 11:32:52 -04:00
|
|
|
|
|
|
|
|
#include "cli/daemonutility.hpp"
|
|
|
|
|
#include "base/application.hpp"
|
|
|
|
|
#include "base/loader.hpp"
|
|
|
|
|
#include <BoostTestTargetConfig.h>
|
|
|
|
|
#include <fstream>
|
|
|
|
|
|
|
|
|
|
using namespace icinga;
|
|
|
|
|
|
|
|
|
|
struct IcingaCheckableFixture
|
|
|
|
|
{
|
2018-01-03 22:25:35 -05:00
|
|
|
IcingaCheckableFixture()
|
2017-10-19 11:32:52 -04:00
|
|
|
{
|
|
|
|
|
BOOST_TEST_MESSAGE("setup running Icinga 2 core");
|
|
|
|
|
|
|
|
|
|
Application::InitializeBase();
|
|
|
|
|
}
|
|
|
|
|
|
2018-01-03 22:25:35 -05:00
|
|
|
~IcingaCheckableFixture()
|
2017-10-19 11:32:52 -04:00
|
|
|
{
|
|
|
|
|
BOOST_TEST_MESSAGE("cleanup Icinga 2 core");
|
|
|
|
|
Application::UninitializeBase();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
BOOST_GLOBAL_FIXTURE(IcingaCheckableFixture);
|
|
|
|
|
|