2 # Copyright (C) 2012-2014 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 icinga-perfdata.cpp test.cpp
28 set_property(SOURCE test.cpp PROPERTY EXCLUDE_UNITY_BUILD TRUE)
30 if(ICINGA2_UNITY_BUILD)
31 mkunity_target(test base_test_SOURCES)
35 SOURCES test.cpp ${base_test_SOURCES}
36 LIBRARIES base config icinga
37 TESTS base_array/construct
48 base_dictionary/construct
51 base_dictionary/foreach
52 base_dictionary/remove
59 base_netstring/netstring
65 base_serialize/dictionary
67 base_shellescape/escape_basic
68 base_shellescape/escape_quoted
69 base_stacktrace/stacktrace
70 base_stream/readline_stdio
87 icinga_perfdata/simple
88 icinga_perfdata/multiple
90 icinga_perfdata/warncritminmax
91 icinga_perfdata/invalid