2019-02-25 08:48:22 -05:00
|
|
|
/* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
|
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);
|
|
|
|
|
|