tests: add `src.ctf.fs` single field testing framework
[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
821af099
SM
11AM_CPPFLAGS += -I$(top_srcdir)/tests/utils
12
13COMMON_TEST_LDADD = \
14 $(top_builddir)/tests/utils/tap/libtap.la \
15 $(top_builddir)/src/common/libcommon.la \
16 $(top_builddir)/src/logging/liblogging.la
17
6a284733 18# Directories added to EXTRA_DIST will be recursively copied to the distribution.
bbff0ab4 19EXTRA_DIST = $(srcdir)/data \
7bb90dd0 20 bindings/python/bt2/.coveragerc
1b83271b 21
7bb90dd0 22dist_check_SCRIPTS = \
7132b838 23 bindings/python/bt2/test-python-bt2.sh \
7bb90dd0
MJ
24 bindings/python/bt2/test_clock_class.py \
25 bindings/python/bt2/test_component_class.py \
26 bindings/python/bt2/test_component.py \
27 bindings/python/bt2/test_connection.py \
7bb90dd0
MJ
28 bindings/python/bt2/test_event_class.py \
29 bindings/python/bt2/test_event.py \
30 bindings/python/bt2/test_field_class.py \
31 bindings/python/bt2/test_field.py \
32 bindings/python/bt2/test_graph.py \
19bb8b5a 33 bindings/python/bt2/test_integer_range_set.py \
1e920353 34 bindings/python/bt2/test_interrupter.py \
7bb90dd0
MJ
35 bindings/python/bt2/test_message_iterator.py \
36 bindings/python/bt2/test_message.py \
6c0b3817 37 bindings/python/bt2/test_package.py \
7bb90dd0
MJ
38 bindings/python/bt2/test_packet.py \
39 bindings/python/bt2/test_plugin.py \
40 bindings/python/bt2/test_port.py \
41 bindings/python/bt2/test_query_executor.py \
42 bindings/python/bt2/test_stream_class.py \
43 bindings/python/bt2/test_stream.py \
44 bindings/python/bt2/test_trace_collection_message_iterator.py \
45 bindings/python/bt2/test_trace.py \
46 bindings/python/bt2/test_value.py \
47 bindings/python/bt2/utils.py \
7132b838
PP
48 cli/convert/test-auto-source-discovery-grouping.sh \
49 cli/convert/test-auto-source-discovery-params.sh \
50 cli/convert/test-auto-source-discovery-log-level.sh \
51 cli/convert/test-convert-args.sh \
52 cli/list-plugins/test-list-plugins.sh \
53 cli/params/test-params.sh \
54 cli/query/test-query.sh \
55 cli/test-exit-status.sh \
56 cli/test-help.sh \
57 cli/test-intersection.sh \
58 cli/test-output-ctf-metadata.sh \
59 cli/test-output-path-ctf-non-lttng-trace.sh \
60 cli/test-packet-seq-num.sh \
61 cli/test-trace-copy.sh \
62 cli/test-trace-read.sh \
63 cli/test-trimmer.sh \
64 plugins/sink.text.details/succeed/test-succeed.sh \
65 plugins/sink.text.pretty/test-enum.sh \
440ffe59 66 plugins/sink.text.pretty/test_pretty.py \
7132b838
PP
67 plugins/sink.text.pretty/test-pretty-python.sh \
68 plugins/src.ctf.lttng-live/test-live.sh \
7bb90dd0 69 python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
7132b838 70 python-plugin-provider/test-python-plugin-provider.sh \
7bb90dd0 71 python-plugin-provider/test_python_plugin_provider.py
cd1c5347 72
821af099
SM
73noinst_PROGRAMS =
74
7bb90dd0 75TESTS_BINDINGS =
9e607e7c
JG
76
77if ENABLE_PYTHON_BINDINGS
7132b838 78TESTS_BINDINGS += bindings/python/bt2/test-python-bt2.sh
cd1c5347
PP
79endif
80
81TESTS_CLI = \
7132b838
PP
82 cli/convert/test-convert-args.sh \
83 cli/test-help.sh \
84 cli/test-intersection.sh \
85 cli/test-output-ctf-metadata.sh \
86 cli/test-output-path-ctf-non-lttng-trace.sh \
87 cli/test-packet-seq-num.sh \
88 cli/test-trace-copy.sh \
89 cli/test-trace-read.sh \
90 cli/test-trimmer.sh
cd1c5347 91
821af099
SM
92noinst_PROGRAMS += \
93 cpp-common/test-c-string-view
94
95cpp_common_test_c_string_view_SOURCES = \
96 cpp-common/test-c-string-view.cpp
97
98cpp_common_test_c_string_view_LDADD = \
99 $(COMMON_TEST_LDADD)
100
101TESTS_CPP_COMMON = \
102 cpp-common/test-c-string-view
103
cd1c5347 104TESTS_LIB = \
7132b838
PP
105 lib/test-bt-uuid \
106 lib/test-bt-values \
107 lib/test-fields.sh \
108 lib/test-graph-topo \
109 lib/test-remove-destruction-listener-in-destruction-listener \
110 lib/test-simple-sink \
111 lib/test-trace-ir-ref
cd1c5347 112
906ac65f 113TESTS_BITFIELD = \
7132b838 114 bitfield/test-bitfield
906ac65f 115
331731aa 116TESTS_CTF_WRITER = \
7132b838 117 ctf-writer/test-ctf-writer.sh
331731aa 118
cd1c5347 119if !ENABLE_BUILT_IN_PLUGINS
9f5bdcae 120TESTS_LIB += lib/test-plugins.sh
1805e0b4
PP
121endif
122
e30aed9e 123TESTS_PLUGINS = \
7132b838
PP
124 plugins/src.ctf.fs/fail/test-fail.sh \
125 plugins/src.ctf.fs/succeed/test-succeed.sh \
126 plugins/src.ctf.fs/test-deterministic-ordering.sh \
127 plugins/sink.ctf.fs/succeed/test-succeed.sh \
128 plugins/sink.text.details/succeed/test-succeed.sh
cd1c5347
PP
129
130if !ENABLE_BUILT_IN_PLUGINS
d8992d68 131if ENABLE_PYTHON_BINDINGS
7132b838
PP
132TESTS_PLUGINS += plugins/src.ctf.fs/query/test-query-support-info.sh
133TESTS_PLUGINS += plugins/src.ctf.fs/query/test-query-trace-info.sh
134TESTS_PLUGINS += plugins/src.ctf.fs/query/test-query-metadata-info.sh
135TESTS_PLUGINS += plugins/sink.ctf.fs/test-assume-single-trace.sh
136TESTS_PLUGINS += plugins/sink.ctf.fs/test-stream-names.sh
d3765576 137endif
cd1c5347
PP
138endif
139
140if ENABLE_DEBUG_INFO
141TESTS_PLUGINS += \
7132b838
PP
142 plugins/flt.lttng-utils.debug-info/test-dwarf-i386-linux-gnu.sh \
143 plugins/flt.lttng-utils.debug-info/test-dwarf-powerpc-linux-gnu.sh \
144 plugins/flt.lttng-utils.debug-info/test-dwarf-powerpc64le-linux-gnu.sh \
145 plugins/flt.lttng-utils.debug-info/test-dwarf-x86-64-linux-gnu.sh \
146 plugins/flt.lttng-utils.debug-info/test-bin-info-i386-linux-gnu.sh \
147 plugins/flt.lttng-utils.debug-info/test-bin-info-powerpc-linux-gnu.sh \
148 plugins/flt.lttng-utils.debug-info/test-bin-info-powerpc64le-linux-gnu.sh \
149 plugins/flt.lttng-utils.debug-info/test-bin-info-x86-64-linux-gnu.sh
cd1c5347
PP
150endif
151
188edac1
SM
152if ENABLE_PYTHON_PLUGINS
153if ENABLE_PYTHON_BINDINGS
c7fa6619 154TESTS_CLI += \
7132b838
PP
155 cli/convert/test-auto-source-discovery-grouping.sh \
156 cli/convert/test-auto-source-discovery-log-level.sh \
157 cli/convert/test-auto-source-discovery-params.sh \
158 cli/list-plugins/test-list-plugins.sh \
159 cli/params/test-params.sh \
160 cli/query/test-query.sh \
161 cli/test-exit-status.sh
162
163TESTS_PLUGINS += plugins/flt.utils.trimmer/test-trimming.sh \
164 plugins/flt.utils.muxer/succeed/test-succeed.sh \
10ba5f69
OD
165 plugins/sink.text.pretty/test-enum.sh \
166 plugins/src.ctf.fs/field/test-field.sh
188edac1
SM
167endif
168endif
169
584af91e 170if HAVE_PYTHON
7132b838 171TESTS_PLUGINS += plugins/src.ctf.lttng-live/test-live.sh
5d7e8359
PP
172
173if DEV_MODE
7132b838 174TESTS_LIB += lib/conds/test-conds.sh
5d7e8359 175endif
584af91e
PP
176endif
177
cd1c5347
PP
178TESTS_PYTHON_PLUGIN_PROVIDER =
179
9e607e7c 180if ENABLE_PYTHON_PLUGINS
7132b838
PP
181TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test-python-plugin-provider.sh
182TESTS_PLUGINS += plugins/sink.text.pretty/test-pretty-python.sh
8cca03c6
FD
183if ENABLE_DEBUG_INFO
184TESTS_PLUGINS += \
7132b838 185 plugins/flt.lttng-utils.debug-info/test-succeed.sh
8cca03c6 186endif
cd1c5347
PP
187endif
188
42f2718c 189TESTS_PARAM_VALIDATION = \
7132b838 190 param-validation/test-param-validation
42f2718c 191
644e0364
MJ
192LOG_DRIVER_FLAGS = --merge --comments
193LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \
194 BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \
195 BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \
86f2cc9e 196 $(SHELL) $(srcdir)/utils/tap-driver.sh
11d328de 197
906ac65f
PP
198TESTS_NO_BITFIELD = \
199 $(TESTS_BINDINGS) \
200 $(TESTS_CLI) \
821af099 201 $(TESTS_CPP_COMMON) \
906ac65f
PP
202 $(TESTS_CTF_WRITER) \
203 $(TESTS_LIB) \
42f2718c 204 $(TESTS_PARAM_VALIDATION) \
906ac65f
PP
205 $(TESTS_PLUGINS) \
206 $(TESTS_PYTHON_PLUGIN_PROVIDER)
207
208TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD)
cd1c5347
PP
209
210define check_target
211check-$(1):
212 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
213endef
214
215$(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
906ac65f 216$(eval $(call check_target,bitfield,$(TESTS_BITFIELD)))
cd1c5347 217$(eval $(call check_target,cli,$(TESTS_CLI)))
821af099 218$(eval $(call check_target,cpp-common,$(TESTS_CPP_COMMON)))
331731aa 219$(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER)))
cd1c5347
PP
220$(eval $(call check_target,lib,$(TESTS_LIB)))
221$(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
222$(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
906ac65f
PP
223
224check-no-bitfield:
225 $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check
This page took 0.098218 seconds and 4 git commands to generate.