tests: rename lib plugins test files
[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-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 \
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 \
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
65
66 TESTS_BINDINGS =
67
68 if ENABLE_PYTHON_BINDINGS
69 TESTS_BINDINGS += bindings/python/bt2/test-python-bt2.sh
70 endif
71
72 TESTS_CLI = \
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
82
83 TESTS_LIB = \
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
91
92 TESTS_BITFIELD = \
93 bitfield/test-bitfield
94
95 TESTS_CTF_WRITER = \
96 ctf-writer/test-ctf-writer.sh
97
98 if !ENABLE_BUILT_IN_PLUGINS
99 TESTS_LIB += lib/test-plugins.sh
100 endif
101
102 TESTS_PLUGINS = \
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
108
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
116 endif
117 endif
118
119 if ENABLE_DEBUG_INFO
120 TESTS_PLUGINS += \
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
129 endif
130
131 if ENABLE_PYTHON_PLUGINS
132 if ENABLE_PYTHON_BINDINGS
133 TESTS_CLI += \
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
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
145 endif
146 endif
147
148 if HAVE_PYTHON
149 TESTS_PLUGINS += plugins/src.ctf.lttng-live/test-live.sh
150
151 if DEV_MODE
152 TESTS_LIB += lib/conds/test-conds.sh
153 endif
154 endif
155
156 TESTS_PYTHON_PLUGIN_PROVIDER =
157
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
161 if ENABLE_DEBUG_INFO
162 TESTS_PLUGINS += \
163 plugins/flt.lttng-utils.debug-info/test-succeed.sh
164 endif
165 endif
166
167 TESTS_PARAM_VALIDATION = \
168 param-validation/test-param-validation
169
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
175
176 TESTS_NO_BITFIELD = \
177 $(TESTS_BINDINGS) \
178 $(TESTS_CLI) \
179 $(TESTS_CTF_WRITER) \
180 $(TESTS_LIB) \
181 $(TESTS_PARAM_VALIDATION) \
182 $(TESTS_PLUGINS) \
183 $(TESTS_PYTHON_PLUGIN_PROVIDER)
184
185 TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD)
186
187 define check_target
188 check-$(1):
189 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
190 endef
191
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)))
199
200 check-no-bitfield:
201 $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check
This page took 0.033633 seconds and 5 git commands to generate.