1 # Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
3 include(BoostTestTargets)
6 icingaapplication-fixture.cpp
16 base-object-packer.cpp
27 icinga-checkresult.cpp
28 icinga-legacytimeperiod.cpp
30 icinga-notification.cpp
34 $<TARGET_OBJECTS:config>
35 $<TARGET_OBJECTS:remote>
36 $<TARGET_OBJECTS:icinga>
39 if(ICINGA2_UNITY_BUILD)
40 mkunity_target(base test base_test_SOURCES)
44 SOURCES test-runner.cpp ${base_test_SOURCES}
45 LIBRARIES ${base_DEPS}
61 base_dictionary/construct
62 base_dictionary/initializer1
63 base_dictionary/initializer2
66 base_dictionary/foreach
67 base_dictionary/remove
73 base_object_packer/pack_null
74 base_object_packer/pack_false
75 base_object_packer/pack_true
76 base_object_packer/pack_number
77 base_object_packer/pack_string
78 base_object_packer/pack_array
79 base_object_packer/pack_object
81 base_netstring/netstring
86 base_serialize/dictionary
88 base_shellescape/escape_basic
89 base_shellescape/escape_quoted
90 base_stacktrace/stacktrace
91 base_stream/readline_stdio
108 base_type/instantiate
109 base_utility/comparepasswords_works
110 base_utility/comparepasswords_issafe
116 icinga_checkresult/host_1attempt
117 icinga_checkresult/host_2attempts
118 icinga_checkresult/host_3attempts
119 icinga_checkresult/service_1attempt
120 icinga_checkresult/service_2attempts
121 icinga_checkresult/service_3attempts
122 icinga_checkresult/host_flapping_notification
123 icinga_checkresult/service_flapping_notification
124 icinga_notification/state_filter
125 icinga_notification/type_filter
127 icinga_legacytimeperiod/simple
128 icinga_perfdata/empty
129 icinga_perfdata/simple
130 icinga_perfdata/quotes
131 icinga_perfdata/multiple
133 icinga_perfdata/warncritminmax
134 icinga_perfdata/ignore_invalid_warn_crit_min_max
135 icinga_perfdata/invalid
136 icinga_perfdata/multi
137 remote_url/id_and_path
138 remote_url/parameters
139 remote_url/get_and_set
141 remote_url/illegal_legal_strings
144 if(ICINGA2_WITH_LIVESTATUS)
145 set(livestatus_test_SOURCES
146 icingaapplication-fixture.cpp
147 livestatus-fixture.cpp
150 $<TARGET_OBJECTS:config>
151 $<TARGET_OBJECTS:remote>
152 $<TARGET_OBJECTS:icinga>
153 $<TARGET_OBJECTS:livestatus>
154 $<TARGET_OBJECTS:methods>
157 if(ICINGA2_UNITY_BUILD)
158 mkunity_target(livestatus test livestatus_test_SOURCES)
161 add_boost_test(livestatus
162 SOURCES test-runner.cpp ${livestatus_test_SOURCES}
163 LIBRARIES ${base_DEPS}
164 TESTS livestatus/hosts livestatus/services
168 set(icinga_checkable_test_SOURCES
169 icingaapplication-fixture.cpp
170 icinga-checkable-fixture.cpp
171 icinga-checkable-flapping.cpp
173 $<TARGET_OBJECTS:config>
174 $<TARGET_OBJECTS:remote>
175 $<TARGET_OBJECTS:icinga>
176 $<TARGET_OBJECTS:cli>
179 if(ICINGA2_UNITY_BUILD)
180 mkunity_target(icinga_checkable test icinga_checkable_test_SOURCES)
183 add_boost_test(icinga_checkable
184 SOURCES test-runner.cpp ${icinga_checkable_test_SOURCES}
185 LIBRARIES ${base_DEPS}
186 TESTS icinga_checkable_flapping/host_not_flapping
187 icinga_checkable_flapping/host_flapping
188 icinga_checkable_flapping/host_flapping_recover
189 icinga_checkable_flapping/host_flapping_docs_example