Commit | Line | Data |
---|---|---|
0235b0db MJ |
1 | # SPDX-License-Identifier: MIT |
2 | ||
d0d4e0ed SM |
3 | SUBDIRS = \ |
4 | utils \ | |
5 | lib \ | |
6 | bitfield \ | |
7 | ctf-writer \ | |
8 | plugins \ | |
d0d4e0ed | 9 | param-validation |
ac65e355 | 10 | |
6a284733 | 11 | # Directories added to EXTRA_DIST will be recursively copied to the distribution. |
bbff0ab4 | 12 | EXTRA_DIST = $(srcdir)/data \ |
7bb90dd0 | 13 | bindings/python/bt2/.coveragerc |
1b83271b | 14 | |
7bb90dd0 | 15 | dist_check_SCRIPTS = \ |
7bb90dd0 MJ |
16 | bindings/python/bt2/test_clock_class.py \ |
17 | bindings/python/bt2/test_component_class.py \ | |
18 | bindings/python/bt2/test_component.py \ | |
19 | bindings/python/bt2/test_connection.py \ | |
7bb90dd0 MJ |
20 | bindings/python/bt2/test_event_class.py \ |
21 | bindings/python/bt2/test_event.py \ | |
22 | bindings/python/bt2/test_field_class.py \ | |
23 | bindings/python/bt2/test_field.py \ | |
24 | bindings/python/bt2/test_graph.py \ | |
19bb8b5a | 25 | bindings/python/bt2/test_integer_range_set.py \ |
1e920353 | 26 | bindings/python/bt2/test_interrupter.py \ |
7bb90dd0 MJ |
27 | bindings/python/bt2/test_message_iterator.py \ |
28 | bindings/python/bt2/test_message.py \ | |
6c0b3817 | 29 | bindings/python/bt2/test_package.py \ |
7bb90dd0 MJ |
30 | bindings/python/bt2/test_packet.py \ |
31 | bindings/python/bt2/test_plugin.py \ | |
32 | bindings/python/bt2/test_port.py \ | |
644e0364 | 33 | bindings/python/bt2/test_python_bt2 \ |
7bb90dd0 MJ |
34 | bindings/python/bt2/test_query_executor.py \ |
35 | bindings/python/bt2/test_stream_class.py \ | |
36 | bindings/python/bt2/test_stream.py \ | |
37 | bindings/python/bt2/test_trace_collection_message_iterator.py \ | |
38 | bindings/python/bt2/test_trace.py \ | |
39 | bindings/python/bt2/test_value.py \ | |
40 | bindings/python/bt2/utils.py \ | |
595cc8e0 | 41 | cli/convert/test_auto_source_discovery_grouping \ |
3b9d10e2 PP |
42 | cli/convert/test_auto_source_discovery_params \ |
43 | cli/convert/test_auto_source_discovery_log_level \ | |
595cc8e0 | 44 | cli/convert/test_convert_args \ |
4a879f40 | 45 | cli/list-plugins/test_list_plugins \ |
c7fa6619 | 46 | cli/params/test_params \ |
0076e742 | 47 | cli/query/test_query \ |
b5cd7d65 | 48 | cli/test_exit_status \ |
4bf5c85f | 49 | cli/test_help \ |
644e0364 MJ |
50 | cli/test_intersection \ |
51 | cli/test_output_ctf_metadata \ | |
005d49d6 | 52 | cli/test_output_path_ctf_non_lttng_trace \ |
644e0364 MJ |
53 | cli/test_packet_seq_num \ |
54 | cli/test_trace_copy \ | |
55 | cli/test_trace_read \ | |
56 | cli/test_trimmer \ | |
54d785fa | 57 | plugins/sink.text.details/succeed/test_succeed \ |
ed30eb8d | 58 | plugins/sink.text.pretty/test_enum \ |
440ffe59 | 59 | plugins/sink.text.pretty/test_pretty.py \ |
ed30eb8d | 60 | plugins/sink.text.pretty/test_pretty_python \ |
584af91e | 61 | plugins/src.ctf.lttng-live/test_live \ |
7bb90dd0 | 62 | python-plugin-provider/bt_plugin_test_python_plugin_provider.py \ |
644e0364 | 63 | python-plugin-provider/test_python_plugin_provider \ |
7bb90dd0 | 64 | python-plugin-provider/test_python_plugin_provider.py |
cd1c5347 | 65 | |
7bb90dd0 | 66 | TESTS_BINDINGS = |
9e607e7c JG |
67 | |
68 | if ENABLE_PYTHON_BINDINGS | |
b04a139e | 69 | TESTS_BINDINGS += bindings/python/bt2/test_python_bt2 |
cd1c5347 PP |
70 | endif |
71 | ||
72 | TESTS_CLI = \ | |
595cc8e0 | 73 | cli/convert/test_convert_args \ |
4bf5c85f | 74 | cli/test_help \ |
7bb90dd0 | 75 | cli/test_intersection \ |
005d49d6 SM |
76 | cli/test_output_path_ctf_non_lttng_trace \ |
77 | cli/test_packet_seq_num \ | |
cd1c5347 | 78 | cli/test_trace_copy \ |
005d49d6 | 79 | cli/test_trace_read \ |
cd1c5347 PP |
80 | cli/test_trimmer |
81 | ||
82 | TESTS_LIB = \ | |
6162e6b7 | 83 | lib/test_bt_uuid \ |
8bd8ac79 | 84 | lib/test_bt_values \ |
21d04293 | 85 | lib/test_graph_topo \ |
8bd8ac79 SM |
86 | lib/test_remove_destruction_listener_in_destruction_listener \ |
87 | lib/test_simple_sink \ | |
88 | lib/test_trace_ir_ref | |
cd1c5347 | 89 | |
906ac65f PP |
90 | TESTS_BITFIELD = \ |
91 | bitfield/test_bitfield | |
92 | ||
331731aa MJ |
93 | TESTS_CTF_WRITER = \ |
94 | ctf-writer/test_ctf_writer | |
95 | ||
cd1c5347 | 96 | if !ENABLE_BUILT_IN_PLUGINS |
644e0364 | 97 | TESTS_LIB += lib/test_plugin |
1805e0b4 PP |
98 | endif |
99 | ||
e30aed9e | 100 | TESTS_PLUGINS = \ |
29a8227a | 101 | plugins/src.ctf.fs/fail/test_fail \ |
1fba7c7b | 102 | plugins/src.ctf.fs/succeed/test_succeed \ |
7b69723d | 103 | plugins/src.ctf.fs/test_deterministic_ordering \ |
54d785fa PP |
104 | plugins/sink.ctf.fs/succeed/test_succeed \ |
105 | plugins/sink.text.details/succeed/test_succeed | |
cd1c5347 PP |
106 | |
107 | if !ENABLE_BUILT_IN_PLUGINS | |
d8992d68 | 108 | if ENABLE_PYTHON_BINDINGS |
493917ba | 109 | TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_support_info |
b34bfe00 FD |
110 | TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_trace_info |
111 | TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_metadata_info | |
72d458a3 | 112 | TESTS_PLUGINS += plugins/sink.ctf.fs/test_assume_single_trace |
d3765576 | 113 | endif |
cd1c5347 PP |
114 | endif |
115 | ||
116 | if ENABLE_DEBUG_INFO | |
117 | TESTS_PLUGINS += \ | |
66251464 PP |
118 | plugins/flt.lttng-utils.debug-info/test_dwarf_i386-linux-gnu \ |
119 | plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc-linux-gnu \ | |
120 | plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc64le-linux-gnu \ | |
121 | plugins/flt.lttng-utils.debug-info/test_dwarf_x86_64-linux-gnu \ | |
122 | plugins/flt.lttng-utils.debug-info/test_bin_info_i386-linux-gnu \ | |
123 | plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc-linux-gnu \ | |
124 | plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc64le-linux-gnu \ | |
125 | plugins/flt.lttng-utils.debug-info/test_bin_info_x86_64-linux-gnu | |
cd1c5347 PP |
126 | endif |
127 | ||
188edac1 SM |
128 | if ENABLE_PYTHON_PLUGINS |
129 | if ENABLE_PYTHON_BINDINGS | |
c7fa6619 SM |
130 | TESTS_CLI += \ |
131 | cli/convert/test_auto_source_discovery_grouping \ | |
3b9d10e2 | 132 | cli/convert/test_auto_source_discovery_log_level \ |
c7fa6619 | 133 | cli/convert/test_auto_source_discovery_params \ |
4a879f40 | 134 | cli/list-plugins/test_list_plugins \ |
b5cd7d65 | 135 | cli/params/test_params \ |
8d4d72be | 136 | cli/query/test_query \ |
b5cd7d65 | 137 | cli/test_exit_status |
c7fa6619 | 138 | |
38403bf5 | 139 | TESTS_PLUGINS += plugins/flt.utils.trimmer/test_trimming \ |
ed30eb8d GB |
140 | plugins/flt.utils.muxer/succeed/test_succeed \ |
141 | plugins/sink.text.pretty/test_enum | |
188edac1 SM |
142 | endif |
143 | endif | |
144 | ||
584af91e PP |
145 | if HAVE_PYTHON |
146 | TESTS_PLUGINS += plugins/src.ctf.lttng-live/test_live | |
5d7e8359 PP |
147 | |
148 | if DEV_MODE | |
149 | TESTS_LIB += lib/conds/test_conds | |
150 | endif | |
584af91e PP |
151 | endif |
152 | ||
cd1c5347 PP |
153 | TESTS_PYTHON_PLUGIN_PROVIDER = |
154 | ||
9e607e7c | 155 | if ENABLE_PYTHON_PLUGINS |
cd1c5347 | 156 | TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider |
ed30eb8d | 157 | TESTS_PLUGINS += plugins/sink.text.pretty/test_pretty_python |
8cca03c6 FD |
158 | if ENABLE_DEBUG_INFO |
159 | TESTS_PLUGINS += \ | |
160 | plugins/flt.lttng-utils.debug-info/test_succeed | |
161 | endif | |
cd1c5347 PP |
162 | endif |
163 | ||
42f2718c SM |
164 | TESTS_PARAM_VALIDATION = \ |
165 | param-validation/test_param_validation | |
166 | ||
644e0364 MJ |
167 | LOG_DRIVER_FLAGS = --merge --comments |
168 | LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \ | |
169 | BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \ | |
170 | BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \ | |
171 | BT_TESTS_AWK_BIN="$(AWK)" \ | |
172 | BT_TESTS_GREP_BIN="$(GREP)" \ | |
173 | BT_TESTS_PYTHON_BIN="$(PYTHON)" \ | |
e23e08c4 | 174 | BT_TESTS_PYTHON_CONFIG_BIN="$(PYTHON_CONFIG)" \ |
644e0364 | 175 | BT_TESTS_SED_BIN="$(SED)" \ |
86f2cc9e | 176 | $(SHELL) $(srcdir)/utils/tap-driver.sh |
11d328de | 177 | |
906ac65f PP |
178 | TESTS_NO_BITFIELD = \ |
179 | $(TESTS_BINDINGS) \ | |
180 | $(TESTS_CLI) \ | |
181 | $(TESTS_CTF_WRITER) \ | |
182 | $(TESTS_LIB) \ | |
42f2718c | 183 | $(TESTS_PARAM_VALIDATION) \ |
906ac65f PP |
184 | $(TESTS_PLUGINS) \ |
185 | $(TESTS_PYTHON_PLUGIN_PROVIDER) | |
186 | ||
187 | TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD) | |
cd1c5347 PP |
188 | |
189 | define check_target | |
190 | check-$(1): | |
191 | $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check | |
192 | endef | |
193 | ||
194 | $(eval $(call check_target,bindings,$(TESTS_BINDINGS))) | |
906ac65f | 195 | $(eval $(call check_target,bitfield,$(TESTS_BITFIELD))) |
cd1c5347 | 196 | $(eval $(call check_target,cli,$(TESTS_CLI))) |
331731aa | 197 | $(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER))) |
cd1c5347 PP |
198 | $(eval $(call check_target,lib,$(TESTS_LIB))) |
199 | $(eval $(call check_target,plugins,$(TESTS_PLUGINS))) | |
200 | $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER))) | |
906ac65f PP |
201 | |
202 | check-no-bitfield: | |
203 | $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check |