2 # Copyright (C) 2012-2018 Icinga Development Team (https://www.icinga.com/)
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software Foundation
16 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
18 include(BoostTestTargets)
21 icingaapplication-fixture.cpp
40 icinga-checkresult.cpp
41 icinga-legacytimeperiod.cpp
43 icinga-notification.cpp
47 $<TARGET_OBJECTS:config>
48 $<TARGET_OBJECTS:remote>
49 $<TARGET_OBJECTS:icinga>
52 if(ICINGA2_UNITY_BUILD)
53 mkunity_target(base test base_test_SOURCES)
57 SOURCES test-runner.cpp ${base_test_SOURCES}
58 LIBRARIES ${base_DEPS}
74 base_dictionary/construct
77 base_dictionary/foreach
78 base_dictionary/remove
85 base_netstring/netstring
90 base_serialize/dictionary
92 base_shellescape/escape_basic
93 base_shellescape/escape_quoted
94 base_stacktrace/stacktrace
95 base_stream/readline_stdio
112 base_type/instantiate
118 icinga_checkresult/host_1attempt
119 icinga_checkresult/host_2attempts
120 icinga_checkresult/host_3attempts
121 icinga_checkresult/service_1attempt
122 icinga_checkresult/service_2attempts
123 icinga_checkresult/service_3attempts
124 icinga_checkresult/host_flapping_notification
125 icinga_checkresult/service_flapping_notification
126 icinga_notification/state_filter
127 icinga_notification/type_filter
129 icinga_legacytimeperiod/simple
130 icinga_perfdata/empty
131 icinga_perfdata/simple
132 icinga_perfdata/quotes
133 icinga_perfdata/multiple
135 icinga_perfdata/warncritminmax
136 icinga_perfdata/ignore_invalid_warn_crit_min_max
137 icinga_perfdata/invalid
138 icinga_perfdata/multi
139 remote_url/id_and_path
140 remote_url/parameters
141 remote_url/get_and_set
143 remote_url/illegal_legal_strings
146 if(ICINGA2_WITH_LIVESTATUS)
147 set(livestatus_test_SOURCES
148 icingaapplication-fixture.cpp
149 livestatus-fixture.cpp
152 $<TARGET_OBJECTS:config>
153 $<TARGET_OBJECTS:remote>
154 $<TARGET_OBJECTS:icinga>
155 $<TARGET_OBJECTS:livestatus>
156 $<TARGET_OBJECTS:methods>
159 if(ICINGA2_UNITY_BUILD)
160 mkunity_target(livestatus test livestatus_test_SOURCES)
163 add_boost_test(livestatus
164 SOURCES test-runner.cpp ${livestatus_test_SOURCES}
165 LIBRARIES ${base_DEPS}
166 TESTS livestatus/hosts livestatus/services
170 set(icinga_checkable_test_SOURCES
171 icingaapplication-fixture.cpp
172 icinga-checkable-fixture.cpp
173 icinga-checkable-flapping.cpp
175 $<TARGET_OBJECTS:config>
176 $<TARGET_OBJECTS:remote>
177 $<TARGET_OBJECTS:icinga>
178 $<TARGET_OBJECTS:cli>
181 if(ICINGA2_UNITY_BUILD)
182 mkunity_target(icinga_checkable test icinga_checkable_test_SOURCES)
185 add_boost_test(icinga_checkable
186 SOURCES test-runner.cpp ${icinga_checkable_test_SOURCES}
187 LIBRARIES ${base_DEPS}
188 TESTS icinga_checkable_flapping/host_not_flapping
189 icinga_checkable_flapping/host_flapping
190 icinga_checkable_flapping/host_flapping_recover
191 icinga_checkable_flapping/host_flapping_docs_example