]> granicus.if.org Git - icinga2/blob - test/CMakeLists.txt
71fd610abcc2ea81653c43d27923a50c96c1dfdd
[icinga2] / test / CMakeLists.txt
1 # Icinga 2
2 # Copyright (C) 2012-2014 Icinga Development Team (http://www.icinga.org)
3 #
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.
8 #
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.
13 #
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.
17
18 include(BoostTestTargets)
19
20 set(base_test_SOURCES
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-perfdata.cpp test.cpp
26 )
27
28 set_property(SOURCE test.cpp PROPERTY EXCLUDE_UNITY_BUILD TRUE)
29
30 if(ICINGA2_UNITY_BUILD)
31     mkunity_target(test base_test_SOURCES)
32 endif()
33
34 add_boost_test(base
35   SOURCES test.cpp ${base_test_SOURCES}
36   LIBRARIES base config icinga
37   TESTS base_array/construct
38         base_array/getset
39         base_array/resize
40         base_array/insert
41         base_array/remove
42         base_array/foreach
43         base_array/clone
44         base_array/json
45         base_convert/tolong
46         base_convert/todouble
47         base_convert/tostring
48         base_convert/tobool
49         base_dictionary/construct
50         base_dictionary/get1
51         base_dictionary/get2
52         base_dictionary/foreach
53         base_dictionary/remove
54         base_dictionary/clone
55         base_dictionary/json
56         base_fifo/construct
57         base_fifo/io
58         base_json/invalid1
59         base_match/tolong
60         base_netstring/netstring
61         base_object/construct
62         base_object/getself
63         base_serialize/scalar
64         base_serialize/array
65         base_serialize/dictionary
66         base_serialize/object
67         base_shellescape/escape_basic
68         base_shellescape/escape_quoted
69         base_stacktrace/stacktrace
70         base_stream/readline_stdio
71         base_string/construct
72         base_string/equal
73         base_string/clear
74         base_string/append
75         base_string/trim
76         base_string/contains
77         base_string/replace
78         base_string/index
79         base_string/find
80         base_timer/construct
81         base_timer/interval
82         base_timer/invoke
83         base_timer/scope
84         base_value/scalar
85         base_value/convert
86         base_value/format
87         config_ops/simple
88         icinga_perfdata/simple
89         icinga_perfdata/multiple
90         icinga_perfdata/uom
91         icinga_perfdata/warncritminmax
92         icinga_perfdata/invalid
93 )
94