2 # Copyright (C) 2012-2018 Icinga Development Team (https://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
31 base-object-packer.cpp
41 icinga-checkresult.cpp
42 icinga-legacytimeperiod.cpp
44 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}
75 base_dictionary/construct
78 base_dictionary/foreach
79 base_dictionary/remove
85 base_object_packer/pack_null
86 base_object_packer/pack_false
87 base_object_packer/pack_true
88 base_object_packer/pack_number
89 base_object_packer/pack_string
90 base_object_packer/pack_array
91 base_object_packer/pack_object
93 base_netstring/netstring
98 base_serialize/dictionary
100 base_shellescape/escape_basic
101 base_shellescape/escape_quoted
102 base_stacktrace/stacktrace
103 base_stream/readline_stdio
104 base_string/construct
120 base_type/instantiate
126 icinga_checkresult/host_1attempt
127 icinga_checkresult/host_2attempts
128 icinga_checkresult/host_3attempts
129 icinga_checkresult/service_1attempt
130 icinga_checkresult/service_2attempts
131 icinga_checkresult/service_3attempts
132 icinga_checkresult/host_flapping_notification
133 icinga_checkresult/service_flapping_notification
134 icinga_notification/state_filter
135 icinga_notification/type_filter
137 icinga_legacytimeperiod/simple
138 icinga_perfdata/empty
139 icinga_perfdata/simple
140 icinga_perfdata/quotes
141 icinga_perfdata/multiple
143 icinga_perfdata/warncritminmax
144 icinga_perfdata/ignore_invalid_warn_crit_min_max
145 icinga_perfdata/invalid
146 icinga_perfdata/multi
147 remote_url/id_and_path
148 remote_url/parameters
149 remote_url/get_and_set
151 remote_url/illegal_legal_strings
154 if(ICINGA2_WITH_LIVESTATUS)
155 set(livestatus_test_SOURCES
156 icingaapplication-fixture.cpp
157 livestatus-fixture.cpp
160 $<TARGET_OBJECTS:config>
161 $<TARGET_OBJECTS:remote>
162 $<TARGET_OBJECTS:icinga>
163 $<TARGET_OBJECTS:livestatus>
164 $<TARGET_OBJECTS:methods>
167 if(ICINGA2_UNITY_BUILD)
168 mkunity_target(livestatus test livestatus_test_SOURCES)
171 add_boost_test(livestatus
172 SOURCES test-runner.cpp ${livestatus_test_SOURCES}
173 LIBRARIES ${base_DEPS}
174 TESTS livestatus/hosts livestatus/services
178 set(icinga_checkable_test_SOURCES
179 icingaapplication-fixture.cpp
180 icinga-checkable-fixture.cpp
181 icinga-checkable-flapping.cpp
183 $<TARGET_OBJECTS:config>
184 $<TARGET_OBJECTS:remote>
185 $<TARGET_OBJECTS:icinga>
186 $<TARGET_OBJECTS:cli>
189 if(ICINGA2_UNITY_BUILD)
190 mkunity_target(icinga_checkable test icinga_checkable_test_SOURCES)
193 add_boost_test(icinga_checkable
194 SOURCES test-runner.cpp ${icinga_checkable_test_SOURCES}
195 LIBRARIES ${base_DEPS}
196 TESTS icinga_checkable_flapping/host_not_flapping
197 icinga_checkable_flapping/host_flapping
198 icinga_checkable_flapping/host_flapping_recover
199 icinga_checkable_flapping/host_flapping_docs_example