Commit | Line | Data |
---|---|---|
b7fa35fc SM |
1 | SUBDIRS = \ |
2 | utils \ | |
3 | lib \ | |
4 | bitfield \ | |
5 | ctf-writer \ | |
6 | plugins \ | |
b7fa35fc | 7 | param-validation |
ac65e355 | 8 | |
ab9abfca | 9 | # Directories added to EXTRA_DIST will be recursively copied to the distribution. |
b7c5d194 | 10 | EXTRA_DIST = $(srcdir)/data \ |
8a773708 | 11 | bindings/python/bt2/.coveragerc |
1b83271b | 12 | |
8a773708 | 13 | dist_check_SCRIPTS = \ |
8a773708 MJ |
14 | bindings/python/bt2/test_clock_class.py \ |
15 | bindings/python/bt2/test_component_class.py \ | |
16 | bindings/python/bt2/test_component.py \ | |
17 | bindings/python/bt2/test_connection.py \ | |
8a773708 MJ |
18 | bindings/python/bt2/test_event_class.py \ |
19 | bindings/python/bt2/test_event.py \ | |
20 | bindings/python/bt2/test_field_class.py \ | |
21 | bindings/python/bt2/test_field.py \ | |
22 | bindings/python/bt2/test_graph.py \ | |
025c8fb8 | 23 | bindings/python/bt2/test_integer_range_set.py \ |
78ab137b | 24 | bindings/python/bt2/test_interrupter.py \ |
8a773708 MJ |
25 | bindings/python/bt2/test_message_iterator.py \ |
26 | bindings/python/bt2/test_message.py \ | |
1f4f74e8 | 27 | bindings/python/bt2/test_package.py \ |
8a773708 MJ |
28 | bindings/python/bt2/test_packet.py \ |
29 | bindings/python/bt2/test_plugin.py \ | |
30 | bindings/python/bt2/test_port.py \ | |
abdabab5 | 31 | bindings/python/bt2/test_python_bt2 \ |
8a773708 MJ |
32 | bindings/python/bt2/test_query_executor.py \ |
33 | bindings/python/bt2/test_stream_class.py \ | |
34 | bindings/python/bt2/test_stream.py \ | |
35 | bindings/python/bt2/test_trace_collection_message_iterator.py \ | |
36 | bindings/python/bt2/test_trace.py \ | |
37 | bindings/python/bt2/test_value.py \ | |
38 | bindings/python/bt2/utils.py \ | |
d55d79bd | 39 | cli/convert/test_auto_source_discovery_grouping \ |
9dfe185c PP |
40 | cli/convert/test_auto_source_discovery_params \ |
41 | cli/convert/test_auto_source_discovery_log_level \ | |
d55d79bd | 42 | cli/convert/test_convert_args \ |
370d150f | 43 | cli/list-plugins/test_list_plugins \ |
269daba5 | 44 | cli/params/test_params \ |
7dd06a04 | 45 | cli/query/test_query \ |
851802b1 | 46 | cli/test_exit_status \ |
810e5642 | 47 | cli/test_help \ |
abdabab5 MJ |
48 | cli/test_intersection \ |
49 | cli/test_output_ctf_metadata \ | |
c77d62f1 | 50 | cli/test_output_path_ctf_non_lttng_trace \ |
abdabab5 MJ |
51 | cli/test_packet_seq_num \ |
52 | cli/test_trace_copy \ | |
53 | cli/test_trace_read \ | |
54 | cli/test_trimmer \ | |
7b6519c7 | 55 | plugins/sink.text.details/succeed/test_succeed \ |
5ca921cf SM |
56 | plugins/sink.text.pretty/test_pretty \ |
57 | plugins/sink.text.pretty/test_pretty.py \ | |
0198f2fb | 58 | plugins/src.ctf.lttng-live/test_live \ |
8a773708 | 59 | python-plugin-provider/bt_plugin_test_python_plugin_provider.py \ |
abdabab5 | 60 | python-plugin-provider/test_python_plugin_provider \ |
8a773708 | 61 | python-plugin-provider/test_python_plugin_provider.py |
f0a3508c | 62 | |
8a773708 | 63 | TESTS_BINDINGS = |
72b1f06a JG |
64 | |
65 | if ENABLE_PYTHON_BINDINGS | |
1385760a | 66 | TESTS_BINDINGS += bindings/python/bt2/test_python_bt2 |
f0a3508c PP |
67 | endif |
68 | ||
69 | TESTS_CLI = \ | |
d55d79bd | 70 | cli/convert/test_convert_args \ |
810e5642 | 71 | cli/test_help \ |
8a773708 | 72 | cli/test_intersection \ |
c77d62f1 SM |
73 | cli/test_output_path_ctf_non_lttng_trace \ |
74 | cli/test_packet_seq_num \ | |
f0a3508c | 75 | cli/test_trace_copy \ |
c77d62f1 | 76 | cli/test_trace_read \ |
f0a3508c PP |
77 | cli/test_trimmer |
78 | ||
79 | TESTS_LIB = \ | |
d126826c | 80 | lib/test_bt_uuid \ |
33efe395 | 81 | lib/test_bt_values \ |
010c429e | 82 | lib/test_graph_topo \ |
33efe395 SM |
83 | lib/test_remove_destruction_listener_in_destruction_listener \ |
84 | lib/test_simple_sink \ | |
85 | lib/test_trace_ir_ref | |
f0a3508c | 86 | |
ec3e1721 PP |
87 | TESTS_BITFIELD = \ |
88 | bitfield/test_bitfield | |
89 | ||
e40bd1f0 MJ |
90 | TESTS_CTF_WRITER = \ |
91 | ctf-writer/test_ctf_writer | |
92 | ||
f0a3508c | 93 | if !ENABLE_BUILT_IN_PLUGINS |
abdabab5 | 94 | TESTS_LIB += lib/test_plugin |
7e579125 PP |
95 | endif |
96 | ||
130858eb | 97 | TESTS_PLUGINS = \ |
80022dd5 | 98 | plugins/src.ctf.fs/fail/test_fail \ |
e19f607d | 99 | plugins/src.ctf.fs/succeed/test_succeed \ |
18118efb | 100 | plugins/src.ctf.fs/test_deterministic_ordering \ |
7b6519c7 PP |
101 | plugins/sink.ctf.fs/succeed/test_succeed \ |
102 | plugins/sink.text.details/succeed/test_succeed | |
f0a3508c PP |
103 | |
104 | if !ENABLE_BUILT_IN_PLUGINS | |
36abff2a | 105 | if ENABLE_PYTHON_BINDINGS |
1d3426bc | 106 | TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_support_info |
bf68f4a4 FD |
107 | TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_trace_info |
108 | TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_metadata_info | |
0bbddf6c | 109 | TESTS_PLUGINS += plugins/sink.ctf.fs/test_assume_single_trace |
1e03d33b | 110 | TESTS_PLUGINS += plugins/sink.ctf.fs/test_stream_names |
275a0234 | 111 | endif |
f0a3508c PP |
112 | endif |
113 | ||
114 | if ENABLE_DEBUG_INFO | |
115 | TESTS_PLUGINS += \ | |
82c537ae PP |
116 | plugins/flt.lttng-utils.debug-info/test_dwarf_i386-linux-gnu \ |
117 | plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc-linux-gnu \ | |
118 | plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc64le-linux-gnu \ | |
119 | plugins/flt.lttng-utils.debug-info/test_dwarf_x86_64-linux-gnu \ | |
120 | plugins/flt.lttng-utils.debug-info/test_bin_info_i386-linux-gnu \ | |
121 | plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc-linux-gnu \ | |
122 | plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc64le-linux-gnu \ | |
123 | plugins/flt.lttng-utils.debug-info/test_bin_info_x86_64-linux-gnu | |
f0a3508c PP |
124 | endif |
125 | ||
b7cbc799 SM |
126 | if ENABLE_PYTHON_PLUGINS |
127 | if ENABLE_PYTHON_BINDINGS | |
269daba5 SM |
128 | TESTS_CLI += \ |
129 | cli/convert/test_auto_source_discovery_grouping \ | |
9dfe185c | 130 | cli/convert/test_auto_source_discovery_log_level \ |
269daba5 | 131 | cli/convert/test_auto_source_discovery_params \ |
370d150f | 132 | cli/list-plugins/test_list_plugins \ |
851802b1 | 133 | cli/params/test_params \ |
8e4fa50c | 134 | cli/query/test_query \ |
851802b1 | 135 | cli/test_exit_status |
269daba5 | 136 | |
241aad0a FD |
137 | TESTS_PLUGINS += plugins/flt.utils.trimmer/test_trimming \ |
138 | plugins/flt.utils.muxer/succeed/test_succeed | |
b7cbc799 SM |
139 | endif |
140 | endif | |
141 | ||
0198f2fb PP |
142 | if HAVE_PYTHON |
143 | TESTS_PLUGINS += plugins/src.ctf.lttng-live/test_live | |
144 | endif | |
145 | ||
f0a3508c PP |
146 | TESTS_PYTHON_PLUGIN_PROVIDER = |
147 | ||
72b1f06a | 148 | if ENABLE_PYTHON_PLUGINS |
f0a3508c | 149 | TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider |
5ca921cf | 150 | TESTS_PLUGINS += plugins/sink.text.pretty/test_pretty |
840183eb FD |
151 | if ENABLE_DEBUG_INFO |
152 | TESTS_PLUGINS += \ | |
153 | plugins/flt.lttng-utils.debug-info/test_succeed | |
154 | endif | |
f0a3508c PP |
155 | endif |
156 | ||
6091410a SM |
157 | TESTS_PARAM_VALIDATION = \ |
158 | param-validation/test_param_validation | |
159 | ||
abdabab5 MJ |
160 | LOG_DRIVER_FLAGS = --merge --comments |
161 | LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \ | |
162 | BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \ | |
163 | BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \ | |
164 | BT_TESTS_AWK_BIN="$(AWK)" \ | |
165 | BT_TESTS_GREP_BIN="$(GREP)" \ | |
166 | BT_TESTS_PYTHON_BIN="$(PYTHON)" \ | |
4b2d0d1f | 167 | BT_TESTS_PYTHON_CONFIG_BIN="$(PYTHON_CONFIG)" \ |
abdabab5 | 168 | BT_TESTS_SED_BIN="$(SED)" \ |
819b9870 | 169 | $(SHELL) $(srcdir)/utils/tap-driver.sh |
41384c0a | 170 | |
ec3e1721 PP |
171 | TESTS_NO_BITFIELD = \ |
172 | $(TESTS_BINDINGS) \ | |
173 | $(TESTS_CLI) \ | |
174 | $(TESTS_CTF_WRITER) \ | |
175 | $(TESTS_LIB) \ | |
6091410a | 176 | $(TESTS_PARAM_VALIDATION) \ |
ec3e1721 PP |
177 | $(TESTS_PLUGINS) \ |
178 | $(TESTS_PYTHON_PLUGIN_PROVIDER) | |
179 | ||
180 | TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD) | |
f0a3508c PP |
181 | |
182 | define check_target | |
183 | check-$(1): | |
184 | $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check | |
185 | endef | |
186 | ||
187 | $(eval $(call check_target,bindings,$(TESTS_BINDINGS))) | |
ec3e1721 | 188 | $(eval $(call check_target,bitfield,$(TESTS_BITFIELD))) |
f0a3508c | 189 | $(eval $(call check_target,cli,$(TESTS_CLI))) |
e40bd1f0 | 190 | $(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER))) |
f0a3508c PP |
191 | $(eval $(call check_target,lib,$(TESTS_LIB))) |
192 | $(eval $(call check_target,plugins,$(TESTS_PLUGINS))) | |
193 | $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER))) | |
ec3e1721 PP |
194 | |
195 | check-no-bitfield: | |
196 | $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check |