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