]> granicus.if.org Git - icinga2/blob - test/icinga-checkable-fixture.cpp
Merge pull request #6999 from Icinga/bugfix/compiler-warnings
[icinga2] / test / icinga-checkable-fixture.cpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #include "cli/daemonutility.hpp"
4 #include "base/application.hpp"
5 #include "base/loader.hpp"
6 #include <BoostTestTargetConfig.h>
7 #include <fstream>
8
9 using namespace icinga;
10
11 struct IcingaCheckableFixture
12 {
13         IcingaCheckableFixture()
14         {
15                 BOOST_TEST_MESSAGE("setup running Icinga 2 core");
16
17                 Application::InitializeBase();
18         }
19
20         ~IcingaCheckableFixture()
21         {
22                 BOOST_TEST_MESSAGE("cleanup Icinga 2 core");
23                 Application::UninitializeBase();
24         }
25 };
26
27 BOOST_GLOBAL_FIXTURE(IcingaCheckableFixture);
28