Commit | Line | Data |
---|---|---|
0235b0db MJ |
1 | # SPDX-License-Identifier: MIT |
2 | ||
d0d4e0ed SM |
3 | SUBDIRS = \ |
4 | utils \ | |
5 | lib \ | |
6 | bitfield \ | |
7 | ctf-writer \ | |
8 | plugins \ | |
d0d4e0ed | 9 | param-validation |
ac65e355 | 10 | |
821af099 SM |
11 | AM_CPPFLAGS += -I$(top_srcdir)/tests/utils |
12 | ||
13 | COMMON_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 | 19 | EXTRA_DIST = $(srcdir)/data \ |
7bb90dd0 | 20 | bindings/python/bt2/.coveragerc |
1b83271b | 21 | |
7bb90dd0 | 22 | dist_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 |
73 | noinst_PROGRAMS = |
74 | ||
7bb90dd0 | 75 | TESTS_BINDINGS = |
9e607e7c JG |
76 | |
77 | if ENABLE_PYTHON_BINDINGS | |
7132b838 | 78 | TESTS_BINDINGS += bindings/python/bt2/test-python-bt2.sh |
cd1c5347 PP |
79 | endif |
80 | ||
81 | TESTS_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 |
92 | noinst_PROGRAMS += \ |
93 | cpp-common/test-c-string-view | |
94 | ||
95 | cpp_common_test_c_string_view_SOURCES = \ | |
96 | cpp-common/test-c-string-view.cpp | |
97 | ||
98 | cpp_common_test_c_string_view_LDADD = \ | |
99 | $(COMMON_TEST_LDADD) | |
100 | ||
101 | TESTS_CPP_COMMON = \ | |
102 | cpp-common/test-c-string-view | |
103 | ||
cd1c5347 | 104 | TESTS_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 | 113 | TESTS_BITFIELD = \ |
7132b838 | 114 | bitfield/test-bitfield |
906ac65f | 115 | |
331731aa | 116 | TESTS_CTF_WRITER = \ |
7132b838 | 117 | ctf-writer/test-ctf-writer.sh |
331731aa | 118 | |
cd1c5347 | 119 | if !ENABLE_BUILT_IN_PLUGINS |
9f5bdcae | 120 | TESTS_LIB += lib/test-plugins.sh |
1805e0b4 PP |
121 | endif |
122 | ||
e30aed9e | 123 | TESTS_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 | |
130 | if !ENABLE_BUILT_IN_PLUGINS | |
d8992d68 | 131 | if ENABLE_PYTHON_BINDINGS |
7132b838 PP |
132 | TESTS_PLUGINS += plugins/src.ctf.fs/query/test-query-support-info.sh |
133 | TESTS_PLUGINS += plugins/src.ctf.fs/query/test-query-trace-info.sh | |
134 | TESTS_PLUGINS += plugins/src.ctf.fs/query/test-query-metadata-info.sh | |
135 | TESTS_PLUGINS += plugins/sink.ctf.fs/test-assume-single-trace.sh | |
136 | TESTS_PLUGINS += plugins/sink.ctf.fs/test-stream-names.sh | |
d3765576 | 137 | endif |
cd1c5347 PP |
138 | endif |
139 | ||
140 | if ENABLE_DEBUG_INFO | |
141 | TESTS_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 |
150 | endif |
151 | ||
188edac1 SM |
152 | if ENABLE_PYTHON_PLUGINS |
153 | if ENABLE_PYTHON_BINDINGS | |
c7fa6619 | 154 | TESTS_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 | ||
163 | TESTS_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 |
167 | endif |
168 | endif | |
169 | ||
584af91e | 170 | if HAVE_PYTHON |
7132b838 | 171 | TESTS_PLUGINS += plugins/src.ctf.lttng-live/test-live.sh |
5d7e8359 PP |
172 | |
173 | if DEV_MODE | |
7132b838 | 174 | TESTS_LIB += lib/conds/test-conds.sh |
5d7e8359 | 175 | endif |
584af91e PP |
176 | endif |
177 | ||
cd1c5347 PP |
178 | TESTS_PYTHON_PLUGIN_PROVIDER = |
179 | ||
9e607e7c | 180 | if ENABLE_PYTHON_PLUGINS |
7132b838 PP |
181 | TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test-python-plugin-provider.sh |
182 | TESTS_PLUGINS += plugins/sink.text.pretty/test-pretty-python.sh | |
8cca03c6 FD |
183 | if ENABLE_DEBUG_INFO |
184 | TESTS_PLUGINS += \ | |
7132b838 | 185 | plugins/flt.lttng-utils.debug-info/test-succeed.sh |
8cca03c6 | 186 | endif |
cd1c5347 PP |
187 | endif |
188 | ||
42f2718c | 189 | TESTS_PARAM_VALIDATION = \ |
7132b838 | 190 | param-validation/test-param-validation |
42f2718c | 191 | |
644e0364 MJ |
192 | LOG_DRIVER_FLAGS = --merge --comments |
193 | LOG_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 |
198 | TESTS_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 | ||
208 | TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD) | |
cd1c5347 PP |
209 | |
210 | define check_target | |
211 | check-$(1): | |
212 | $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check | |
213 | endef | |
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 | |
224 | check-no-bitfield: | |
225 | $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check |