2 # Copyright (C) 2012-2015 Icinga Development Team (http://www.icinga.org)
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 base-array.cpp base-convert.cpp base-dictionary.cpp base-fifo.cpp
22 base-json.cpp base-match.cpp base-netstring.cpp base-object.cpp
23 base-serialize.cpp base-shellescape.cpp base-stacktrace.cpp
24 base-stream.cpp base-string.cpp base-timer.cpp base-type.cpp
25 base-value.cpp config-ops.cpp icinga-macros.cpp
26 icinga-perfdata.cpp test.cpp
30 set(livestatus_test_SOURCES
35 set_property(SOURCE test.cpp PROPERTY EXCLUDE_UNITY_BUILD TRUE)
37 if(ICINGA2_UNITY_BUILD)
38 mkunity_target(test base_test_SOURCES)
42 SOURCES test.cpp ${base_test_SOURCES}
43 LIBRARIES base config icinga
44 TESTS base_array/construct
56 base_dictionary/construct
59 base_dictionary/foreach
60 base_dictionary/remove
67 base_netstring/netstring
72 base_serialize/dictionary
74 base_shellescape/escape_basic
75 base_shellescape/escape_quoted
76 base_stacktrace/stacktrace
77 base_stream/readline_stdio
101 icinga_perfdata/empty
102 icinga_perfdata/simple
103 icinga_perfdata/quotes
104 icinga_perfdata/multiple
106 icinga_perfdata/warncritminmax
107 icinga_perfdata/ignore_invalid_warn_crit_min_max
108 icinga_perfdata/invalid
109 icinga_perfdata/multi
110 remote_url/id_and_path
111 remote_url/parameters
112 remote_url/get_and_set
114 remote_url/illegal_legal_strings
117 if(ICINGA2_WITH_LIVESTATUS)
118 add_boost_test(livestatus
119 SOURCES test.cpp ${livestatus_test_SOURCES}
120 LIBRARIES base config icinga cli livestatus
121 TESTS livestatus/hosts livestatus/services