2019-02-25 14:48:22 +01:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
2017-10-19 17:32:52 +02: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-04 04:25:35 +01:00
|
|
|
IcingaCheckableFixture()
|
2017-10-19 17:32:52 +02:00
|
|
|
{
|
|
|
|
BOOST_TEST_MESSAGE("setup running Icinga 2 core");
|
|
|
|
|
|
|
|
Application::InitializeBase();
|
|
|
|
}
|
|
|
|
|
2018-01-04 04:25:35 +01:00
|
|
|
~IcingaCheckableFixture()
|
2017-10-19 17:32:52 +02:00
|
|
|
{
|
|
|
|
BOOST_TEST_MESSAGE("cleanup Icinga 2 core");
|
|
|
|
Application::UninitializeBase();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
BOOST_GLOBAL_FIXTURE(IcingaCheckableFixture);
|
|
|
|
|