Commit | Line | Data |
---|---|---|
d0d4e0ed SM |
1 | SUBDIRS = \ |
2 | utils \ | |
3 | lib \ | |
4 | bitfield \ | |
5 | ctf-writer \ | |
6 | plugins \ | |
7 | argpar \ | |
8 | param-validation | |
ac65e355 | 9 | |
6a284733 | 10 | # Directories added to EXTRA_DIST will be recursively copied to the distribution. |
bbff0ab4 | 11 | EXTRA_DIST = $(srcdir)/data \ |
7bb90dd0 | 12 | bindings/python/bt2/.coveragerc |
1b83271b | 13 | |
7bb90dd0 | 14 | dist_check_SCRIPTS = \ |
7bb90dd0 MJ |
15 | bindings/python/bt2/test_clock_class.py \ |
16 | bindings/python/bt2/test_component_class.py \ | |
17 | bindings/python/bt2/test_component.py \ | |
18 | bindings/python/bt2/test_connection.py \ | |
7bb90dd0 MJ |
19 | bindings/python/bt2/test_event_class.py \ |
20 | bindings/python/bt2/test_event.py \ | |
21 | bindings/python/bt2/test_field_class.py \ | |
22 | bindings/python/bt2/test_field.py \ | |
23 | bindings/python/bt2/test_graph.py \ | |
19bb8b5a | 24 | bindings/python/bt2/test_integer_range_set.py \ |
1e920353 | 25 | bindings/python/bt2/test_interrupter.py \ |
7bb90dd0 MJ |
26 | bindings/python/bt2/test_message_iterator.py \ |
27 | bindings/python/bt2/test_message.py \ | |
6c0b3817 | 28 | bindings/python/bt2/test_package.py \ |
7bb90dd0 MJ |
29 | bindings/python/bt2/test_packet.py \ |
30 | bindings/python/bt2/test_plugin.py \ | |
31 | bindings/python/bt2/test_port.py \ | |
644e0364 | 32 | bindings/python/bt2/test_python_bt2 \ |
7bb90dd0 MJ |
33 | bindings/python/bt2/test_query_executor.py \ |
34 | bindings/python/bt2/test_stream_class.py \ | |
35 | bindings/python/bt2/test_stream.py \ | |
36 | bindings/python/bt2/test_trace_collection_message_iterator.py \ | |
37 | bindings/python/bt2/test_trace.py \ | |
38 | bindings/python/bt2/test_value.py \ | |
39 | bindings/python/bt2/utils.py \ | |
595cc8e0 | 40 | cli/convert/test_auto_source_discovery_grouping \ |
3b9d10e2 PP |
41 | cli/convert/test_auto_source_discovery_params \ |
42 | cli/convert/test_auto_source_discovery_log_level \ | |
595cc8e0 | 43 | cli/convert/test_convert_args \ |
c7fa6619 | 44 | cli/params/test_params \ |
0076e742 | 45 | cli/query/test_query \ |
b5cd7d65 | 46 | cli/test_exit_status \ |
4bf5c85f | 47 | cli/test_help \ |
644e0364 MJ |
48 | cli/test_intersection \ |
49 | cli/test_output_ctf_metadata \ | |
005d49d6 | 50 | cli/test_output_path_ctf_non_lttng_trace \ |
644e0364 MJ |
51 | cli/test_packet_seq_num \ |
52 | cli/test_trace_copy \ | |
53 | cli/test_trace_read \ | |
54 | cli/test_trimmer \ | |
54d785fa | 55 | plugins/sink.text.details/succeed/test_succeed \ |
584af91e | 56 | plugins/src.ctf.lttng-live/test_live \ |
7bb90dd0 | 57 | python-plugin-provider/bt_plugin_test_python_plugin_provider.py \ |
644e0364 | 58 | python-plugin-provider/test_python_plugin_provider \ |
7bb90dd0 | 59 | python-plugin-provider/test_python_plugin_provider.py |
cd1c5347 | 60 | |
7bb90dd0 | 61 | TESTS_BINDINGS = |
9e607e7c JG |
62 | |
63 | if ENABLE_PYTHON_BINDINGS | |
b04a139e | 64 | TESTS_BINDINGS += bindings/python/bt2/test_python_bt2 |
cd1c5347 PP |
65 | endif |
66 | ||
fac21c87 PP |
67 | TESTS_ARGPAR = \ |
68 | argpar/test_argpar | |
69 | ||
cd1c5347 | 70 | TESTS_CLI = \ |
595cc8e0 | 71 | cli/convert/test_convert_args \ |
4bf5c85f | 72 | cli/test_help \ |
7bb90dd0 | 73 | cli/test_intersection \ |
005d49d6 SM |
74 | cli/test_output_path_ctf_non_lttng_trace \ |
75 | cli/test_packet_seq_num \ | |
cd1c5347 | 76 | cli/test_trace_copy \ |
005d49d6 | 77 | cli/test_trace_read \ |
cd1c5347 PP |
78 | cli/test_trimmer |
79 | ||
80 | TESTS_LIB = \ | |
21d04293 | 81 | lib/test_bt_values \ |
6162e6b7 | 82 | lib/test_bt_uuid \ |
21d04293 | 83 | lib/test_graph_topo \ |
8c20dd54 PP |
84 | lib/test_trace_ir_ref \ |
85 | lib/test_simple_sink | |
cd1c5347 | 86 | |
906ac65f PP |
87 | TESTS_BITFIELD = \ |
88 | bitfield/test_bitfield | |
89 | ||
331731aa MJ |
90 | TESTS_CTF_WRITER = \ |
91 | ctf-writer/test_ctf_writer | |
92 | ||
cd1c5347 | 93 | if !ENABLE_BUILT_IN_PLUGINS |
644e0364 | 94 | TESTS_LIB += lib/test_plugin |
1805e0b4 PP |
95 | endif |
96 | ||
e30aed9e | 97 | TESTS_PLUGINS = \ |
29a8227a | 98 | plugins/src.ctf.fs/fail/test_fail \ |
1fba7c7b | 99 | plugins/src.ctf.fs/succeed/test_succeed \ |
7b69723d | 100 | plugins/src.ctf.fs/test_deterministic_ordering \ |
54d785fa PP |
101 | plugins/sink.ctf.fs/succeed/test_succeed \ |
102 | plugins/sink.text.details/succeed/test_succeed | |
cd1c5347 PP |
103 | |
104 | if !ENABLE_BUILT_IN_PLUGINS | |
d8992d68 | 105 | if ENABLE_PYTHON_BINDINGS |
493917ba | 106 | TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_support_info |
b34bfe00 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 | |
d3765576 | 109 | endif |
cd1c5347 PP |
110 | endif |
111 | ||
112 | if ENABLE_DEBUG_INFO | |
113 | TESTS_PLUGINS += \ | |
66251464 PP |
114 | plugins/flt.lttng-utils.debug-info/test_dwarf_i386-linux-gnu \ |
115 | plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc-linux-gnu \ | |
116 | plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc64le-linux-gnu \ | |
117 | plugins/flt.lttng-utils.debug-info/test_dwarf_x86_64-linux-gnu \ | |
118 | plugins/flt.lttng-utils.debug-info/test_bin_info_i386-linux-gnu \ | |
119 | plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc-linux-gnu \ | |
120 | plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc64le-linux-gnu \ | |
121 | plugins/flt.lttng-utils.debug-info/test_bin_info_x86_64-linux-gnu | |
cd1c5347 PP |
122 | endif |
123 | ||
188edac1 SM |
124 | if ENABLE_PYTHON_PLUGINS |
125 | if ENABLE_PYTHON_BINDINGS | |
c7fa6619 SM |
126 | TESTS_CLI += \ |
127 | cli/convert/test_auto_source_discovery_grouping \ | |
3b9d10e2 | 128 | cli/convert/test_auto_source_discovery_log_level \ |
c7fa6619 | 129 | cli/convert/test_auto_source_discovery_params \ |
b5cd7d65 | 130 | cli/params/test_params \ |
8d4d72be | 131 | cli/query/test_query \ |
b5cd7d65 | 132 | cli/test_exit_status |
c7fa6619 | 133 | |
38403bf5 FD |
134 | TESTS_PLUGINS += plugins/flt.utils.trimmer/test_trimming \ |
135 | plugins/flt.utils.muxer/succeed/test_succeed | |
188edac1 SM |
136 | endif |
137 | endif | |
138 | ||
584af91e PP |
139 | if HAVE_PYTHON |
140 | TESTS_PLUGINS += plugins/src.ctf.lttng-live/test_live | |
141 | endif | |
142 | ||
cd1c5347 PP |
143 | TESTS_PYTHON_PLUGIN_PROVIDER = |
144 | ||
9e607e7c | 145 | if ENABLE_PYTHON_PLUGINS |
cd1c5347 | 146 | TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider |
8cca03c6 FD |
147 | if ENABLE_DEBUG_INFO |
148 | TESTS_PLUGINS += \ | |
149 | plugins/flt.lttng-utils.debug-info/test_succeed | |
150 | endif | |
cd1c5347 PP |
151 | endif |
152 | ||
42f2718c SM |
153 | TESTS_PARAM_VALIDATION = \ |
154 | param-validation/test_param_validation | |
155 | ||
644e0364 MJ |
156 | LOG_DRIVER_FLAGS = --merge --comments |
157 | LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \ | |
158 | BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \ | |
159 | BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \ | |
160 | BT_TESTS_AWK_BIN="$(AWK)" \ | |
161 | BT_TESTS_GREP_BIN="$(GREP)" \ | |
162 | BT_TESTS_PYTHON_BIN="$(PYTHON)" \ | |
e23e08c4 | 163 | BT_TESTS_PYTHON_CONFIG_BIN="$(PYTHON_CONFIG)" \ |
644e0364 | 164 | BT_TESTS_SED_BIN="$(SED)" \ |
86f2cc9e | 165 | $(SHELL) $(srcdir)/utils/tap-driver.sh |
11d328de | 166 | |
906ac65f | 167 | TESTS_NO_BITFIELD = \ |
fac21c87 | 168 | $(TESTS_ARGPAR) \ |
906ac65f PP |
169 | $(TESTS_BINDINGS) \ |
170 | $(TESTS_CLI) \ | |
171 | $(TESTS_CTF_WRITER) \ | |
172 | $(TESTS_LIB) \ | |
42f2718c | 173 | $(TESTS_PARAM_VALIDATION) \ |
906ac65f PP |
174 | $(TESTS_PLUGINS) \ |
175 | $(TESTS_PYTHON_PLUGIN_PROVIDER) | |
176 | ||
177 | TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD) | |
cd1c5347 PP |
178 | |
179 | define check_target | |
180 | check-$(1): | |
181 | $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check | |
182 | endef | |
183 | ||
fac21c87 | 184 | $(eval $(call check_target,argpar,$(TESTS_ARGPAR))) |
cd1c5347 | 185 | $(eval $(call check_target,bindings,$(TESTS_BINDINGS))) |
906ac65f | 186 | $(eval $(call check_target,bitfield,$(TESTS_BITFIELD))) |
cd1c5347 | 187 | $(eval $(call check_target,cli,$(TESTS_CLI))) |
331731aa | 188 | $(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER))) |
cd1c5347 PP |
189 | $(eval $(call check_target,lib,$(TESTS_LIB))) |
190 | $(eval $(call check_target,plugins,$(TESTS_PLUGINS))) | |
191 | $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER))) | |
906ac65f PP |
192 | |
193 | check-no-bitfield: | |
194 | $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check |