Fix: don't use BT_VALUE_MAP_FOREACH_ENTRY_CONST_STATUS_MEMORY_ERROR
[babeltrace.git] / tests / Makefile.am
CommitLineData
d0d4e0ed
SM
1SUBDIRS = \
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 11EXTRA_DIST = $(srcdir)/data \
7bb90dd0 12 bindings/python/bt2/.coveragerc
1b83271b 13
7bb90dd0 14dist_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 \
19 bindings/python/bt2/test_ctf_writer_clock.py \
20 bindings/python/bt2/test_event_class.py \
21 bindings/python/bt2/test_event.py \
22 bindings/python/bt2/test_field_class.py \
23 bindings/python/bt2/test_field.py \
24 bindings/python/bt2/test_graph.py \
19bb8b5a 25 bindings/python/bt2/test_integer_range_set.py \
1e920353 26 bindings/python/bt2/test_interrupter.py \
7bb90dd0
MJ
27 bindings/python/bt2/test_message_iterator.py \
28 bindings/python/bt2/test_message.py \
6c0b3817 29 bindings/python/bt2/test_package.py \
7bb90dd0
MJ
30 bindings/python/bt2/test_packet.py \
31 bindings/python/bt2/test_plugin.py \
32 bindings/python/bt2/test_port.py \
644e0364 33 bindings/python/bt2/test_python_bt2 \
7bb90dd0
MJ
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 \
595cc8e0 41 cli/convert/test_auto_source_discovery_grouping \
3b9d10e2
PP
42 cli/convert/test_auto_source_discovery_params \
43 cli/convert/test_auto_source_discovery_log_level \
595cc8e0 44 cli/convert/test_convert_args \
4bf5c85f 45 cli/test_help \
644e0364
MJ
46 cli/test_intersection \
47 cli/test_output_ctf_metadata \
005d49d6 48 cli/test_output_path_ctf_non_lttng_trace \
644e0364
MJ
49 cli/test_packet_seq_num \
50 cli/test_trace_copy \
51 cli/test_trace_read \
52 cli/test_trimmer \
54d785fa 53 plugins/sink.text.details/succeed/test_succeed \
584af91e 54 plugins/src.ctf.lttng-live/test_live \
7bb90dd0 55 python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
644e0364 56 python-plugin-provider/test_python_plugin_provider \
7bb90dd0 57 python-plugin-provider/test_python_plugin_provider.py
cd1c5347 58
7bb90dd0 59TESTS_BINDINGS =
9e607e7c
JG
60
61if ENABLE_PYTHON_BINDINGS
b04a139e 62TESTS_BINDINGS += bindings/python/bt2/test_python_bt2
cd1c5347
PP
63endif
64
fac21c87
PP
65TESTS_ARGPAR = \
66 argpar/test_argpar
67
cd1c5347 68TESTS_CLI = \
595cc8e0 69 cli/convert/test_convert_args \
4bf5c85f 70 cli/test_help \
7bb90dd0 71 cli/test_intersection \
005d49d6
SM
72 cli/test_output_path_ctf_non_lttng_trace \
73 cli/test_packet_seq_num \
cd1c5347 74 cli/test_trace_copy \
005d49d6 75 cli/test_trace_read \
cd1c5347
PP
76 cli/test_trimmer
77
78TESTS_LIB = \
21d04293 79 lib/test_bt_values \
6162e6b7 80 lib/test_bt_uuid \
21d04293 81 lib/test_graph_topo \
8c20dd54
PP
82 lib/test_trace_ir_ref \
83 lib/test_simple_sink
cd1c5347 84
906ac65f
PP
85TESTS_BITFIELD = \
86 bitfield/test_bitfield
87
331731aa
MJ
88TESTS_CTF_WRITER = \
89 ctf-writer/test_ctf_writer
90
cd1c5347 91if !ENABLE_BUILT_IN_PLUGINS
644e0364 92TESTS_LIB += lib/test_plugin
1805e0b4
PP
93endif
94
e30aed9e 95TESTS_PLUGINS = \
1fba7c7b 96 plugins/src.ctf.fs/succeed/test_succeed \
54d785fa
PP
97 plugins/sink.ctf.fs/succeed/test_succeed \
98 plugins/sink.text.details/succeed/test_succeed
cd1c5347
PP
99
100if !ENABLE_BUILT_IN_PLUGINS
d8992d68 101if ENABLE_PYTHON_BINDINGS
493917ba 102TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_support_info
b34bfe00
FD
103TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_trace_info
104TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_metadata_info
d3765576 105endif
684658b1
PP
106
107if ENABLE_DEBUG_INFO
d3765576
FD
108TESTS_PLUGINS += \
109 plugins/flt.lttng-utils.debug-info/test_succeed
d8992d68 110endif
cd1c5347
PP
111endif
112
113if ENABLE_DEBUG_INFO
114TESTS_PLUGINS += \
66251464
PP
115 plugins/flt.lttng-utils.debug-info/test_dwarf_i386-linux-gnu \
116 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc-linux-gnu \
117 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc64le-linux-gnu \
118 plugins/flt.lttng-utils.debug-info/test_dwarf_x86_64-linux-gnu \
119 plugins/flt.lttng-utils.debug-info/test_bin_info_i386-linux-gnu \
120 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc-linux-gnu \
121 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc64le-linux-gnu \
122 plugins/flt.lttng-utils.debug-info/test_bin_info_x86_64-linux-gnu
cd1c5347
PP
123endif
124
188edac1
SM
125if ENABLE_PYTHON_PLUGINS
126if ENABLE_PYTHON_BINDINGS
3b9d10e2
PP
127TESTS_CLI += cli/convert/test_auto_source_discovery_grouping \
128 cli/convert/test_auto_source_discovery_log_level \
129 cli/convert/test_auto_source_discovery_params
38403bf5
FD
130TESTS_PLUGINS += plugins/flt.utils.trimmer/test_trimming \
131 plugins/flt.utils.muxer/succeed/test_succeed
188edac1
SM
132endif
133endif
134
584af91e
PP
135if HAVE_PYTHON
136TESTS_PLUGINS += plugins/src.ctf.lttng-live/test_live
137endif
138
cd1c5347
PP
139TESTS_PYTHON_PLUGIN_PROVIDER =
140
9e607e7c 141if ENABLE_PYTHON_PLUGINS
cd1c5347
PP
142TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
143endif
144
644e0364
MJ
145LOG_DRIVER_FLAGS = --merge --comments
146LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \
147 BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \
148 BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \
149 BT_TESTS_AWK_BIN="$(AWK)" \
150 BT_TESTS_GREP_BIN="$(GREP)" \
151 BT_TESTS_PYTHON_BIN="$(PYTHON)" \
e23e08c4 152 BT_TESTS_PYTHON_CONFIG_BIN="$(PYTHON_CONFIG)" \
644e0364 153 BT_TESTS_SED_BIN="$(SED)" \
86f2cc9e 154 $(SHELL) $(srcdir)/utils/tap-driver.sh
11d328de 155
906ac65f 156TESTS_NO_BITFIELD = \
fac21c87 157 $(TESTS_ARGPAR) \
906ac65f
PP
158 $(TESTS_BINDINGS) \
159 $(TESTS_CLI) \
160 $(TESTS_CTF_WRITER) \
161 $(TESTS_LIB) \
162 $(TESTS_PLUGINS) \
163 $(TESTS_PYTHON_PLUGIN_PROVIDER)
164
165TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD)
cd1c5347
PP
166
167define check_target
168check-$(1):
169 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
170endef
171
fac21c87 172$(eval $(call check_target,argpar,$(TESTS_ARGPAR)))
cd1c5347 173$(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
906ac65f 174$(eval $(call check_target,bitfield,$(TESTS_BITFIELD)))
cd1c5347 175$(eval $(call check_target,cli,$(TESTS_CLI)))
331731aa 176$(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER)))
cd1c5347
PP
177$(eval $(call check_target,lib,$(TESTS_LIB)))
178$(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
179$(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
906ac65f
PP
180
181check-no-bitfield:
182 $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check
This page took 0.072051 seconds and 4 git commands to generate.