2 # Copyright (C) 2012-2016 Icinga Development Team (https://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-checkresult.cpp icinga-macros.cpp
26 icinga-perfdata.cpp remote-base64.cpp remote-url.cpp
29 if(ICINGA2_UNITY_BUILD)
30 mkunity_target(base test base_test_SOURCES)
34 SOURCES base-test.cpp ${base_test_SOURCES}
35 LIBRARIES base config icinga
36 TESTS base_array/construct
48 base_dictionary/construct
51 base_dictionary/foreach
52 base_dictionary/remove
59 base_netstring/netstring
64 base_serialize/dictionary
66 base_shellescape/escape_basic
67 base_shellescape/escape_quoted
68 base_stacktrace/stacktrace
69 base_stream/readline_stdio
92 icinga_checkresult/host
93 icinga_checkresult/service
96 icinga_perfdata/simple
97 icinga_perfdata/quotes
98 icinga_perfdata/multiple
100 icinga_perfdata/warncritminmax
101 icinga_perfdata/ignore_invalid_warn_crit_min_max
102 icinga_perfdata/invalid
103 icinga_perfdata/multi
105 remote_url/id_and_path
106 remote_url/parameters
107 remote_url/get_and_set
109 remote_url/illegal_legal_strings
112 if(ICINGA2_WITH_LIVESTATUS)
113 set(livestatus_test_SOURCES
117 if(ICINGA2_UNITY_BUILD)
118 mkunity_target(livestatus test livestatus_test_SOURCES)
121 add_boost_test(livestatus
122 SOURCES livestatus-test.cpp ${livestatus_test_SOURCES}
123 LIBRARIES base config icinga cli livestatus
125 TESTS livestatus/hosts livestatus/services