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
48 $<TARGET_OBJECTS:config>
49 $<TARGET_OBJECTS:remote>
50 $<TARGET_OBJECTS:icinga>
53 if(ICINGA2_UNITY_BUILD)
54 mkunity_target(base test base_test_SOURCES)
58 SOURCES test-runner.cpp ${base_test_SOURCES}
59 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
147 if(ICINGA2_WITH_LIVESTATUS)
148 set(livestatus_test_SOURCES
149 icingaapplication-fixture.cpp
150 livestatus-fixture.cpp
153 $<TARGET_OBJECTS:config>
154 $<TARGET_OBJECTS:remote>
155 $<TARGET_OBJECTS:icinga>
156 $<TARGET_OBJECTS:livestatus>
157 $<TARGET_OBJECTS:methods>
160 if(ICINGA2_UNITY_BUILD)
161 mkunity_target(livestatus test livestatus_test_SOURCES)
164 add_boost_test(livestatus
165 SOURCES test-runner.cpp ${livestatus_test_SOURCES}
166 LIBRARIES ${base_DEPS}
167 TESTS livestatus/hosts livestatus/services
171 set(icinga_checkable_test_SOURCES
172 icingaapplication-fixture.cpp
173 icinga-checkable-fixture.cpp
174 icinga-checkable-flapping.cpp
176 $<TARGET_OBJECTS:config>
177 $<TARGET_OBJECTS:remote>
178 $<TARGET_OBJECTS:icinga>
179 $<TARGET_OBJECTS:cli>
182 if(ICINGA2_UNITY_BUILD)
183 mkunity_target(icinga_checkable test icinga_checkable_test_SOURCES)
186 add_boost_test(icinga_checkable
187 SOURCES test-runner.cpp ${icinga_checkable_test_SOURCES}
188 LIBRARIES ${base_DEPS}
189 TESTS icinga_checkable_flapping/host_not_flapping
190 icinga_checkable_flapping/host_flapping
191 icinga_checkable_flapping/host_flapping_recover
192 icinga_checkable_flapping/host_flapping_docs_example