tests: add test for list-plugins CLI command
[babeltrace.git] / tests / Makefile.am
1 SUBDIRS = \
2 utils \
3 lib \
4 bitfield \
5 ctf-writer \
6 plugins \
7 argpar \
8 param-validation
9
10 # Directories added to EXTRA_DIST will be recursively copied to the distribution.
11 EXTRA_DIST = $(srcdir)/data \
12 bindings/python/bt2/.coveragerc
13
14 dist_check_SCRIPTS = \
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 \
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 \
24 bindings/python/bt2/test_integer_range_set.py \
25 bindings/python/bt2/test_interrupter.py \
26 bindings/python/bt2/test_message_iterator.py \
27 bindings/python/bt2/test_message.py \
28 bindings/python/bt2/test_package.py \
29 bindings/python/bt2/test_packet.py \
30 bindings/python/bt2/test_plugin.py \
31 bindings/python/bt2/test_port.py \
32 bindings/python/bt2/test_python_bt2 \
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 \
40 cli/convert/test_auto_source_discovery_grouping \
41 cli/convert/test_auto_source_discovery_params \
42 cli/convert/test_auto_source_discovery_log_level \
43 cli/convert/test_convert_args \
44 cli/list-plugins/test_list_plugins \
45 cli/params/test_params \
46 cli/query/test_query \
47 cli/test_exit_status \
48 cli/test_help \
49 cli/test_intersection \
50 cli/test_output_ctf_metadata \
51 cli/test_output_path_ctf_non_lttng_trace \
52 cli/test_packet_seq_num \
53 cli/test_trace_copy \
54 cli/test_trace_read \
55 cli/test_trimmer \
56 plugins/sink.text.details/succeed/test_succeed \
57 plugins/src.ctf.lttng-live/test_live \
58 python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
59 python-plugin-provider/test_python_plugin_provider \
60 python-plugin-provider/test_python_plugin_provider.py
61
62 TESTS_BINDINGS =
63
64 if ENABLE_PYTHON_BINDINGS
65 TESTS_BINDINGS += bindings/python/bt2/test_python_bt2
66 endif
67
68 TESTS_ARGPAR = \
69 argpar/test_argpar
70
71 TESTS_CLI = \
72 cli/convert/test_convert_args \
73 cli/test_help \
74 cli/test_intersection \
75 cli/test_output_path_ctf_non_lttng_trace \
76 cli/test_packet_seq_num \
77 cli/test_trace_copy \
78 cli/test_trace_read \
79 cli/test_trimmer
80
81 TESTS_LIB = \
82 lib/test_bt_uuid \
83 lib/test_bt_values \
84 lib/test_graph_topo \
85 lib/test_remove_destruction_listener_in_destruction_listener \
86 lib/test_simple_sink \
87 lib/test_trace_ir_ref
88
89 TESTS_BITFIELD = \
90 bitfield/test_bitfield
91
92 TESTS_CTF_WRITER = \
93 ctf-writer/test_ctf_writer
94
95 if !ENABLE_BUILT_IN_PLUGINS
96 TESTS_LIB += lib/test_plugin
97 endif
98
99 TESTS_PLUGINS = \
100 plugins/src.ctf.fs/fail/test_fail \
101 plugins/src.ctf.fs/succeed/test_succeed \
102 plugins/src.ctf.fs/test_deterministic_ordering \
103 plugins/sink.ctf.fs/succeed/test_succeed \
104 plugins/sink.text.details/succeed/test_succeed
105
106 if !ENABLE_BUILT_IN_PLUGINS
107 if ENABLE_PYTHON_BINDINGS
108 TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_support_info
109 TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_trace_info
110 TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_metadata_info
111 endif
112 endif
113
114 if ENABLE_DEBUG_INFO
115 TESTS_PLUGINS += \
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
124 endif
125
126 if ENABLE_PYTHON_PLUGINS
127 if ENABLE_PYTHON_BINDINGS
128 TESTS_CLI += \
129 cli/convert/test_auto_source_discovery_grouping \
130 cli/convert/test_auto_source_discovery_log_level \
131 cli/convert/test_auto_source_discovery_params \
132 cli/list-plugins/test_list_plugins \
133 cli/params/test_params \
134 cli/query/test_query \
135 cli/test_exit_status
136
137 TESTS_PLUGINS += plugins/flt.utils.trimmer/test_trimming \
138 plugins/flt.utils.muxer/succeed/test_succeed
139 endif
140 endif
141
142 if HAVE_PYTHON
143 TESTS_PLUGINS += plugins/src.ctf.lttng-live/test_live
144 endif
145
146 TESTS_PYTHON_PLUGIN_PROVIDER =
147
148 if ENABLE_PYTHON_PLUGINS
149 TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
150 if ENABLE_DEBUG_INFO
151 TESTS_PLUGINS += \
152 plugins/flt.lttng-utils.debug-info/test_succeed
153 endif
154 endif
155
156 TESTS_PARAM_VALIDATION = \
157 param-validation/test_param_validation
158
159 LOG_DRIVER_FLAGS = --merge --comments
160 LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \
161 BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \
162 BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \
163 BT_TESTS_AWK_BIN="$(AWK)" \
164 BT_TESTS_GREP_BIN="$(GREP)" \
165 BT_TESTS_PYTHON_BIN="$(PYTHON)" \
166 BT_TESTS_PYTHON_CONFIG_BIN="$(PYTHON_CONFIG)" \
167 BT_TESTS_SED_BIN="$(SED)" \
168 $(SHELL) $(srcdir)/utils/tap-driver.sh
169
170 TESTS_NO_BITFIELD = \
171 $(TESTS_ARGPAR) \
172 $(TESTS_BINDINGS) \
173 $(TESTS_CLI) \
174 $(TESTS_CTF_WRITER) \
175 $(TESTS_LIB) \
176 $(TESTS_PARAM_VALIDATION) \
177 $(TESTS_PLUGINS) \
178 $(TESTS_PYTHON_PLUGIN_PROVIDER)
179
180 TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD)
181
182 define check_target
183 check-$(1):
184 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
185 endef
186
187 $(eval $(call check_target,argpar,$(TESTS_ARGPAR)))
188 $(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
189 $(eval $(call check_target,bitfield,$(TESTS_BITFIELD)))
190 $(eval $(call check_target,cli,$(TESTS_CLI)))
191 $(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER)))
192 $(eval $(call check_target,lib,$(TESTS_LIB)))
193 $(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
194 $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
195
196 check-no-bitfield:
197 $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check
This page took 0.032799 seconds and 4 git commands to generate.