1 # SPDX-License-Identifier: MIT
11 # Directories added to EXTRA_DIST will be recursively copied to the distribution.
12 EXTRA_DIST = $(srcdir)/data \
13 bindings/python/bt2/.coveragerc
15 dist_check_SCRIPTS = \
16 bindings/python/bt2/test-python-bt2.sh \
17 bindings/python/bt2/test_clock_class.py \
18 bindings/python/bt2/test_component_class.py \
19 bindings/python/bt2/test_component.py \
20 bindings/python/bt2/test_connection.py \
21 bindings/python/bt2/test_event_class.py \
22 bindings/python/bt2/test_event.py \
23 bindings/python/bt2/test_field_class.py \
24 bindings/python/bt2/test_field.py \
25 bindings/python/bt2/test_graph.py \
26 bindings/python/bt2/test_integer_range_set.py \
27 bindings/python/bt2/test_interrupter.py \
28 bindings/python/bt2/test_message_iterator.py \
29 bindings/python/bt2/test_message.py \
30 bindings/python/bt2/test_package.py \
31 bindings/python/bt2/test_packet.py \
32 bindings/python/bt2/test_plugin.py \
33 bindings/python/bt2/test_port.py \
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.sh \
42 cli/convert/test-auto-source-discovery-params.sh \
43 cli/convert/test-auto-source-discovery-log-level.sh \
44 cli/convert/test-convert-args.sh \
45 cli/list-plugins/test-list-plugins.sh \
46 cli/params/test-params.sh \
47 cli/query/test-query.sh \
48 cli/test-exit-status.sh \
50 cli/test-intersection.sh \
51 cli/test-output-ctf-metadata.sh \
52 cli/test-output-path-ctf-non-lttng-trace.sh \
53 cli/test-packet-seq-num.sh \
54 cli/test-trace-copy.sh \
55 cli/test-trace-read.sh \
57 plugins/sink.text.details/succeed/test-succeed.sh \
58 plugins/sink.text.pretty/test-enum.sh \
59 plugins/sink.text.pretty/test_pretty.py \
60 plugins/sink.text.pretty/test-pretty-python.sh \
61 plugins/src.ctf.lttng-live/test-live.sh \
62 python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
63 python-plugin-provider/test-python-plugin-provider.sh \
64 python-plugin-provider/test_python_plugin_provider.py
68 if ENABLE_PYTHON_BINDINGS
69 TESTS_BINDINGS += bindings/python/bt2/test-python-bt2.sh
73 cli/convert/test-convert-args.sh \
75 cli/test-intersection.sh \
76 cli/test-output-ctf-metadata.sh \
77 cli/test-output-path-ctf-non-lttng-trace.sh \
78 cli/test-packet-seq-num.sh \
79 cli/test-trace-copy.sh \
80 cli/test-trace-read.sh \
88 lib/test-remove-destruction-listener-in-destruction-listener \
89 lib/test-simple-sink \
93 bitfield/test-bitfield
96 ctf-writer/test-ctf-writer.sh
98 if !ENABLE_BUILT_IN_PLUGINS
99 TESTS_LIB += lib/test-plugin.sh
103 plugins/src.ctf.fs/fail/test-fail.sh \
104 plugins/src.ctf.fs/succeed/test-succeed.sh \
105 plugins/src.ctf.fs/test-deterministic-ordering.sh \
106 plugins/sink.ctf.fs/succeed/test-succeed.sh \
107 plugins/sink.text.details/succeed/test-succeed.sh
109 if !ENABLE_BUILT_IN_PLUGINS
110 if ENABLE_PYTHON_BINDINGS
111 TESTS_PLUGINS += plugins/src.ctf.fs/query/test-query-support-info.sh
112 TESTS_PLUGINS += plugins/src.ctf.fs/query/test-query-trace-info.sh
113 TESTS_PLUGINS += plugins/src.ctf.fs/query/test-query-metadata-info.sh
114 TESTS_PLUGINS += plugins/sink.ctf.fs/test-assume-single-trace.sh
115 TESTS_PLUGINS += plugins/sink.ctf.fs/test-stream-names.sh
121 plugins/flt.lttng-utils.debug-info/test-dwarf-i386-linux-gnu.sh \
122 plugins/flt.lttng-utils.debug-info/test-dwarf-powerpc-linux-gnu.sh \
123 plugins/flt.lttng-utils.debug-info/test-dwarf-powerpc64le-linux-gnu.sh \
124 plugins/flt.lttng-utils.debug-info/test-dwarf-x86-64-linux-gnu.sh \
125 plugins/flt.lttng-utils.debug-info/test-bin-info-i386-linux-gnu.sh \
126 plugins/flt.lttng-utils.debug-info/test-bin-info-powerpc-linux-gnu.sh \
127 plugins/flt.lttng-utils.debug-info/test-bin-info-powerpc64le-linux-gnu.sh \
128 plugins/flt.lttng-utils.debug-info/test-bin-info-x86-64-linux-gnu.sh
131 if ENABLE_PYTHON_PLUGINS
132 if ENABLE_PYTHON_BINDINGS
134 cli/convert/test-auto-source-discovery-grouping.sh \
135 cli/convert/test-auto-source-discovery-log-level.sh \
136 cli/convert/test-auto-source-discovery-params.sh \
137 cli/list-plugins/test-list-plugins.sh \
138 cli/params/test-params.sh \
139 cli/query/test-query.sh \
140 cli/test-exit-status.sh
142 TESTS_PLUGINS += plugins/flt.utils.trimmer/test-trimming.sh \
143 plugins/flt.utils.muxer/succeed/test-succeed.sh \
144 plugins/sink.text.pretty/test-enum.sh
149 TESTS_PLUGINS += plugins/src.ctf.lttng-live/test-live.sh
152 TESTS_LIB += lib/conds/test-conds.sh
156 TESTS_PYTHON_PLUGIN_PROVIDER =
158 if ENABLE_PYTHON_PLUGINS
159 TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test-python-plugin-provider.sh
160 TESTS_PLUGINS += plugins/sink.text.pretty/test-pretty-python.sh
163 plugins/flt.lttng-utils.debug-info/test-succeed.sh
167 TESTS_PARAM_VALIDATION = \
168 param-validation/test-param-validation
170 LOG_DRIVER_FLAGS = --merge --comments
171 LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \
172 BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \
173 BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \
174 $(SHELL) $(srcdir)/utils/tap-driver.sh
176 TESTS_NO_BITFIELD = \
179 $(TESTS_CTF_WRITER) \
181 $(TESTS_PARAM_VALIDATION) \
183 $(TESTS_PYTHON_PLUGIN_PROVIDER)
185 TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD)
189 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
192 $(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
193 $(eval $(call check_target,bitfield,$(TESTS_BITFIELD)))
194 $(eval $(call check_target,cli,$(TESTS_CLI)))
195 $(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER)))
196 $(eval $(call check_target,lib,$(TESTS_LIB)))
197 $(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
198 $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
201 $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check