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