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 | |
6a284733 | 11 | # Directories added to EXTRA_DIST will be recursively copied to the distribution. |
bbff0ab4 | 12 | EXTRA_DIST = $(srcdir)/data \ |
7bb90dd0 | 13 | bindings/python/bt2/.coveragerc |
1b83271b | 14 | |
7bb90dd0 | 15 | dist_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 | 66 | TESTS_BINDINGS = |
9e607e7c JG |
67 | |
68 | if ENABLE_PYTHON_BINDINGS | |
7132b838 | 69 | TESTS_BINDINGS += bindings/python/bt2/test-python-bt2.sh |
cd1c5347 PP |
70 | endif |
71 | ||
72 | TESTS_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 | |
83 | TESTS_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 | 92 | TESTS_BITFIELD = \ |
7132b838 | 93 | bitfield/test-bitfield |
906ac65f | 94 | |
331731aa | 95 | TESTS_CTF_WRITER = \ |
7132b838 | 96 | ctf-writer/test-ctf-writer.sh |
331731aa | 97 | |
cd1c5347 | 98 | if !ENABLE_BUILT_IN_PLUGINS |
7132b838 | 99 | TESTS_LIB += lib/test-plugin.sh |
1805e0b4 PP |
100 | endif |
101 | ||
e30aed9e | 102 | TESTS_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 | |
109 | if !ENABLE_BUILT_IN_PLUGINS | |
d8992d68 | 110 | if ENABLE_PYTHON_BINDINGS |
7132b838 PP |
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 | |
d3765576 | 116 | endif |
cd1c5347 PP |
117 | endif |
118 | ||
119 | if ENABLE_DEBUG_INFO | |
120 | TESTS_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 |
129 | endif |
130 | ||
188edac1 SM |
131 | if ENABLE_PYTHON_PLUGINS |
132 | if ENABLE_PYTHON_BINDINGS | |
c7fa6619 | 133 | TESTS_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 | ||
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 | |
188edac1 SM |
145 | endif |
146 | endif | |
147 | ||
584af91e | 148 | if HAVE_PYTHON |
7132b838 | 149 | TESTS_PLUGINS += plugins/src.ctf.lttng-live/test-live.sh |
5d7e8359 PP |
150 | |
151 | if DEV_MODE | |
7132b838 | 152 | TESTS_LIB += lib/conds/test-conds.sh |
5d7e8359 | 153 | endif |
584af91e PP |
154 | endif |
155 | ||
cd1c5347 PP |
156 | TESTS_PYTHON_PLUGIN_PROVIDER = |
157 | ||
9e607e7c | 158 | if ENABLE_PYTHON_PLUGINS |
7132b838 PP |
159 | TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test-python-plugin-provider.sh |
160 | TESTS_PLUGINS += plugins/sink.text.pretty/test-pretty-python.sh | |
8cca03c6 FD |
161 | if ENABLE_DEBUG_INFO |
162 | TESTS_PLUGINS += \ | |
7132b838 | 163 | plugins/flt.lttng-utils.debug-info/test-succeed.sh |
8cca03c6 | 164 | endif |
cd1c5347 PP |
165 | endif |
166 | ||
42f2718c | 167 | TESTS_PARAM_VALIDATION = \ |
7132b838 | 168 | param-validation/test-param-validation |
42f2718c | 169 | |
644e0364 MJ |
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' \ | |
86f2cc9e | 174 | $(SHELL) $(srcdir)/utils/tap-driver.sh |
11d328de | 175 | |
906ac65f PP |
176 | TESTS_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 | ||
185 | TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD) | |
cd1c5347 PP |
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))) | |
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 | |
200 | check-no-bitfield: | |
201 | $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check |