cpp-common/bt2: use bt2c::CStringView in parameters and return values throughout
[babeltrace.git] / tests / Makefile.am
CommitLineData
0235b0db
MJ
1# SPDX-License-Identifier: MIT
2
d0d4e0ed
SM
3SUBDIRS = \
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 12EXTRA_DIST = $(srcdir)/data \
7bb90dd0 13 bindings/python/bt2/.coveragerc
1b83271b 14
7bb90dd0 15dist_check_SCRIPTS = \
7132b838 16 bindings/python/bt2/test-python-bt2.sh \
7bb90dd0
MJ
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 \
7bb90dd0
MJ
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 \
19bb8b5a 26 bindings/python/bt2/test_integer_range_set.py \
1e920353 27 bindings/python/bt2/test_interrupter.py \
7bb90dd0
MJ
28 bindings/python/bt2/test_message_iterator.py \
29 bindings/python/bt2/test_message.py \
6c0b3817 30 bindings/python/bt2/test_package.py \
7bb90dd0
MJ
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 \
7132b838
PP
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 \
49 cli/test-help.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 \
56 cli/test-trimmer.sh \
57 plugins/sink.text.details/succeed/test-succeed.sh \
58 plugins/sink.text.pretty/test-enum.sh \
440ffe59 59 plugins/sink.text.pretty/test_pretty.py \
7132b838
PP
60 plugins/sink.text.pretty/test-pretty-python.sh \
61 plugins/src.ctf.lttng-live/test-live.sh \
7bb90dd0 62 python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
7132b838 63 python-plugin-provider/test-python-plugin-provider.sh \
7bb90dd0 64 python-plugin-provider/test_python_plugin_provider.py
cd1c5347 65
7bb90dd0 66TESTS_BINDINGS =
9e607e7c
JG
67
68if ENABLE_PYTHON_BINDINGS
7132b838 69TESTS_BINDINGS += bindings/python/bt2/test-python-bt2.sh
cd1c5347
PP
70endif
71
72TESTS_CLI = \
7132b838
PP
73 cli/convert/test-convert-args.sh \
74 cli/test-help.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 \
81 cli/test-trimmer.sh
cd1c5347
PP
82
83TESTS_LIB = \
7132b838
PP
84 lib/test-bt-uuid \
85 lib/test-bt-values \
86 lib/test-fields.sh \
87 lib/test-graph-topo \
88 lib/test-remove-destruction-listener-in-destruction-listener \
89 lib/test-simple-sink \
90 lib/test-trace-ir-ref
cd1c5347 91
906ac65f 92TESTS_BITFIELD = \
7132b838 93 bitfield/test-bitfield
906ac65f 94
331731aa 95TESTS_CTF_WRITER = \
7132b838 96 ctf-writer/test-ctf-writer.sh
331731aa 97
cd1c5347 98if !ENABLE_BUILT_IN_PLUGINS
7132b838 99TESTS_LIB += lib/test-plugin.sh
1805e0b4
PP
100endif
101
e30aed9e 102TESTS_PLUGINS = \
7132b838
PP
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
cd1c5347
PP
108
109if !ENABLE_BUILT_IN_PLUGINS
d8992d68 110if ENABLE_PYTHON_BINDINGS
7132b838
PP
111TESTS_PLUGINS += plugins/src.ctf.fs/query/test-query-support-info.sh
112TESTS_PLUGINS += plugins/src.ctf.fs/query/test-query-trace-info.sh
113TESTS_PLUGINS += plugins/src.ctf.fs/query/test-query-metadata-info.sh
114TESTS_PLUGINS += plugins/sink.ctf.fs/test-assume-single-trace.sh
115TESTS_PLUGINS += plugins/sink.ctf.fs/test-stream-names.sh
d3765576 116endif
cd1c5347
PP
117endif
118
119if ENABLE_DEBUG_INFO
120TESTS_PLUGINS += \
7132b838
PP
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
cd1c5347
PP
129endif
130
188edac1
SM
131if ENABLE_PYTHON_PLUGINS
132if ENABLE_PYTHON_BINDINGS
c7fa6619 133TESTS_CLI += \
7132b838
PP
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
141
142TESTS_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
188edac1
SM
145endif
146endif
147
584af91e 148if HAVE_PYTHON
7132b838 149TESTS_PLUGINS += plugins/src.ctf.lttng-live/test-live.sh
5d7e8359
PP
150
151if DEV_MODE
7132b838 152TESTS_LIB += lib/conds/test-conds.sh
5d7e8359 153endif
584af91e
PP
154endif
155
cd1c5347
PP
156TESTS_PYTHON_PLUGIN_PROVIDER =
157
9e607e7c 158if ENABLE_PYTHON_PLUGINS
7132b838
PP
159TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test-python-plugin-provider.sh
160TESTS_PLUGINS += plugins/sink.text.pretty/test-pretty-python.sh
8cca03c6
FD
161if ENABLE_DEBUG_INFO
162TESTS_PLUGINS += \
7132b838 163 plugins/flt.lttng-utils.debug-info/test-succeed.sh
8cca03c6 164endif
cd1c5347
PP
165endif
166
42f2718c 167TESTS_PARAM_VALIDATION = \
7132b838 168 param-validation/test-param-validation
42f2718c 169
644e0364
MJ
170LOG_DRIVER_FLAGS = --merge --comments
171LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \
172 BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \
173 BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \
86f2cc9e 174 $(SHELL) $(srcdir)/utils/tap-driver.sh
11d328de 175
906ac65f
PP
176TESTS_NO_BITFIELD = \
177 $(TESTS_BINDINGS) \
178 $(TESTS_CLI) \
179 $(TESTS_CTF_WRITER) \
180 $(TESTS_LIB) \
42f2718c 181 $(TESTS_PARAM_VALIDATION) \
906ac65f
PP
182 $(TESTS_PLUGINS) \
183 $(TESTS_PYTHON_PLUGIN_PROVIDER)
184
185TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD)
cd1c5347
PP
186
187define check_target
188check-$(1):
189 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
190endef
191
192$(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
906ac65f 193$(eval $(call check_target,bitfield,$(TESTS_BITFIELD)))
cd1c5347 194$(eval $(call check_target,cli,$(TESTS_CLI)))
331731aa 195$(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER)))
cd1c5347
PP
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)))
906ac65f
PP
199
200check-no-bitfield:
201 $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check
This page took 0.100571 seconds and 4 git commands to generate.