Reformat Python files with Black v20.8b1
[babeltrace.git] / tests / Makefile.am
1 # SPDX-License-Identifier: MIT
2
3 SUBDIRS = \
4 utils \
5 lib \
6 bitfield \
7 ctf-writer \
8 plugins \
9 param-validation
10
11 # Directories added to EXTRA_DIST will be recursively copied to the distribution.
12 EXTRA_DIST = $(srcdir)/data \
13 bindings/python/bt2/.coveragerc
14
15 dist_check_SCRIPTS = \
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 \
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 \
25 bindings/python/bt2/test_integer_range_set.py \
26 bindings/python/bt2/test_interrupter.py \
27 bindings/python/bt2/test_message_iterator.py \
28 bindings/python/bt2/test_message.py \
29 bindings/python/bt2/test_package.py \
30 bindings/python/bt2/test_packet.py \
31 bindings/python/bt2/test_plugin.py \
32 bindings/python/bt2/test_port.py \
33 bindings/python/bt2/test_python_bt2 \
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 \
41 cli/convert/test_auto_source_discovery_grouping \
42 cli/convert/test_auto_source_discovery_params \
43 cli/convert/test_auto_source_discovery_log_level \
44 cli/convert/test_convert_args \
45 cli/list-plugins/test_list_plugins \
46 cli/params/test_params \
47 cli/query/test_query \
48 cli/test_exit_status \
49 cli/test_help \
50 cli/test_intersection \
51 cli/test_output_ctf_metadata \
52 cli/test_output_path_ctf_non_lttng_trace \
53 cli/test_packet_seq_num \
54 cli/test_trace_copy \
55 cli/test_trace_read \
56 cli/test_trimmer \
57 plugins/sink.text.details/succeed/test_succeed \
58 plugins/sink.text.pretty/test_enum \
59 plugins/sink.text.pretty/test_pretty.py \
60 plugins/sink.text.pretty/test_pretty_python \
61 plugins/src.ctf.lttng-live/test_live \
62 python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
63 python-plugin-provider/test_python_plugin_provider \
64 python-plugin-provider/test_python_plugin_provider.py
65
66 TESTS_BINDINGS =
67
68 if ENABLE_PYTHON_BINDINGS
69 TESTS_BINDINGS += bindings/python/bt2/test_python_bt2
70 endif
71
72 TESTS_CLI = \
73 cli/convert/test_convert_args \
74 cli/test_help \
75 cli/test_intersection \
76 cli/test_output_path_ctf_non_lttng_trace \
77 cli/test_packet_seq_num \
78 cli/test_trace_copy \
79 cli/test_trace_read \
80 cli/test_trimmer
81
82 TESTS_LIB = \
83 lib/test_bt_uuid \
84 lib/test_bt_values \
85 lib/test_graph_topo \
86 lib/test_remove_destruction_listener_in_destruction_listener \
87 lib/test_simple_sink \
88 lib/test_trace_ir_ref
89
90 TESTS_BITFIELD = \
91 bitfield/test_bitfield
92
93 TESTS_CTF_WRITER = \
94 ctf-writer/test_ctf_writer
95
96 if !ENABLE_BUILT_IN_PLUGINS
97 TESTS_LIB += lib/test_plugin
98 endif
99
100 TESTS_PLUGINS = \
101 plugins/src.ctf.fs/fail/test_fail \
102 plugins/src.ctf.fs/succeed/test_succeed \
103 plugins/src.ctf.fs/test_deterministic_ordering \
104 plugins/sink.ctf.fs/succeed/test_succeed \
105 plugins/sink.text.details/succeed/test_succeed
106
107 if !ENABLE_BUILT_IN_PLUGINS
108 if ENABLE_PYTHON_BINDINGS
109 TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_support_info
110 TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_trace_info
111 TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_metadata_info
112 endif
113 endif
114
115 if ENABLE_DEBUG_INFO
116 TESTS_PLUGINS += \
117 plugins/flt.lttng-utils.debug-info/test_dwarf_i386-linux-gnu \
118 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc-linux-gnu \
119 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc64le-linux-gnu \
120 plugins/flt.lttng-utils.debug-info/test_dwarf_x86_64-linux-gnu \
121 plugins/flt.lttng-utils.debug-info/test_bin_info_i386-linux-gnu \
122 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc-linux-gnu \
123 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc64le-linux-gnu \
124 plugins/flt.lttng-utils.debug-info/test_bin_info_x86_64-linux-gnu
125 endif
126
127 if ENABLE_PYTHON_PLUGINS
128 if ENABLE_PYTHON_BINDINGS
129 TESTS_CLI += \
130 cli/convert/test_auto_source_discovery_grouping \
131 cli/convert/test_auto_source_discovery_log_level \
132 cli/convert/test_auto_source_discovery_params \
133 cli/list-plugins/test_list_plugins \
134 cli/params/test_params \
135 cli/query/test_query \
136 cli/test_exit_status
137
138 TESTS_PLUGINS += plugins/flt.utils.trimmer/test_trimming \
139 plugins/flt.utils.muxer/succeed/test_succeed \
140 plugins/sink.text.pretty/test_enum
141 endif
142 endif
143
144 if HAVE_PYTHON
145 TESTS_PLUGINS += plugins/src.ctf.lttng-live/test_live
146
147 if DEV_MODE
148 TESTS_LIB += lib/conds/test_conds
149 endif
150 endif
151
152 TESTS_PYTHON_PLUGIN_PROVIDER =
153
154 if ENABLE_PYTHON_PLUGINS
155 TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
156 TESTS_PLUGINS += plugins/sink.text.pretty/test_pretty_python
157 if ENABLE_DEBUG_INFO
158 TESTS_PLUGINS += \
159 plugins/flt.lttng-utils.debug-info/test_succeed
160 endif
161 endif
162
163 TESTS_PARAM_VALIDATION = \
164 param-validation/test_param_validation
165
166 LOG_DRIVER_FLAGS = --merge --comments
167 LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \
168 BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \
169 BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \
170 BT_TESTS_AWK_BIN="$(AWK)" \
171 BT_TESTS_GREP_BIN="$(GREP)" \
172 BT_TESTS_PYTHON_BIN="$(PYTHON)" \
173 BT_TESTS_PYTHON_CONFIG_BIN="$(PYTHON_CONFIG)" \
174 BT_TESTS_SED_BIN="$(SED)" \
175 $(SHELL) $(srcdir)/utils/tap-driver.sh
176
177 TESTS_NO_BITFIELD = \
178 $(TESTS_BINDINGS) \
179 $(TESTS_CLI) \
180 $(TESTS_CTF_WRITER) \
181 $(TESTS_LIB) \
182 $(TESTS_PARAM_VALIDATION) \
183 $(TESTS_PLUGINS) \
184 $(TESTS_PYTHON_PLUGIN_PROVIDER)
185
186 TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD)
187
188 define check_target
189 check-$(1):
190 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
191 endef
192
193 $(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
194 $(eval $(call check_target,bitfield,$(TESTS_BITFIELD)))
195 $(eval $(call check_target,cli,$(TESTS_CLI)))
196 $(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER)))
197 $(eval $(call check_target,lib,$(TESTS_LIB)))
198 $(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
199 $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
200
201 check-no-bitfield:
202 $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check
This page took 0.036224 seconds and 4 git commands to generate.