param-parse: use g_string_append_c instead of g_string_append_printf
[babeltrace.git] / tests / Makefile.am
... / ...
CommitLineData
1SUBDIRS = \
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.
11EXTRA_DIST = $(srcdir)/data \
12 bindings/python/bt2/.coveragerc
13
14dist_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/params/test_params \
45 cli/test_exit_status \
46 cli/test_help \
47 cli/test_intersection \
48 cli/test_output_ctf_metadata \
49 cli/test_output_path_ctf_non_lttng_trace \
50 cli/test_packet_seq_num \
51 cli/test_trace_copy \
52 cli/test_trace_read \
53 cli/test_trimmer \
54 plugins/sink.text.details/succeed/test_succeed \
55 plugins/src.ctf.lttng-live/test_live \
56 python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
57 python-plugin-provider/test_python_plugin_provider \
58 python-plugin-provider/test_python_plugin_provider.py
59
60TESTS_BINDINGS =
61
62if ENABLE_PYTHON_BINDINGS
63TESTS_BINDINGS += bindings/python/bt2/test_python_bt2
64endif
65
66TESTS_ARGPAR = \
67 argpar/test_argpar
68
69TESTS_CLI = \
70 cli/convert/test_convert_args \
71 cli/test_help \
72 cli/test_intersection \
73 cli/test_output_path_ctf_non_lttng_trace \
74 cli/test_packet_seq_num \
75 cli/test_trace_copy \
76 cli/test_trace_read \
77 cli/test_trimmer
78
79TESTS_LIB = \
80 lib/test_bt_values \
81 lib/test_bt_uuid \
82 lib/test_graph_topo \
83 lib/test_trace_ir_ref \
84 lib/test_simple_sink
85
86TESTS_BITFIELD = \
87 bitfield/test_bitfield
88
89TESTS_CTF_WRITER = \
90 ctf-writer/test_ctf_writer
91
92if !ENABLE_BUILT_IN_PLUGINS
93TESTS_LIB += lib/test_plugin
94endif
95
96TESTS_PLUGINS = \
97 plugins/src.ctf.fs/fail/test_fail \
98 plugins/src.ctf.fs/succeed/test_succeed \
99 plugins/sink.ctf.fs/succeed/test_succeed \
100 plugins/sink.text.details/succeed/test_succeed
101
102if !ENABLE_BUILT_IN_PLUGINS
103if ENABLE_PYTHON_BINDINGS
104TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_support_info
105TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_trace_info
106TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_metadata_info
107endif
108endif
109
110if ENABLE_DEBUG_INFO
111TESTS_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
120endif
121
122if ENABLE_PYTHON_PLUGINS
123if ENABLE_PYTHON_BINDINGS
124TESTS_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/params/test_params \
129 cli/test_exit_status
130
131TESTS_PLUGINS += plugins/flt.utils.trimmer/test_trimming \
132 plugins/flt.utils.muxer/succeed/test_succeed
133endif
134endif
135
136if HAVE_PYTHON
137TESTS_PLUGINS += plugins/src.ctf.lttng-live/test_live
138endif
139
140TESTS_PYTHON_PLUGIN_PROVIDER =
141
142if ENABLE_PYTHON_PLUGINS
143TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
144if ENABLE_DEBUG_INFO
145TESTS_PLUGINS += \
146 plugins/flt.lttng-utils.debug-info/test_succeed
147endif
148endif
149
150TESTS_PARAM_VALIDATION = \
151 param-validation/test_param_validation
152
153LOG_DRIVER_FLAGS = --merge --comments
154LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \
155 BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \
156 BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \
157 BT_TESTS_AWK_BIN="$(AWK)" \
158 BT_TESTS_GREP_BIN="$(GREP)" \
159 BT_TESTS_PYTHON_BIN="$(PYTHON)" \
160 BT_TESTS_PYTHON_CONFIG_BIN="$(PYTHON_CONFIG)" \
161 BT_TESTS_SED_BIN="$(SED)" \
162 $(SHELL) $(srcdir)/utils/tap-driver.sh
163
164TESTS_NO_BITFIELD = \
165 $(TESTS_ARGPAR) \
166 $(TESTS_BINDINGS) \
167 $(TESTS_CLI) \
168 $(TESTS_CTF_WRITER) \
169 $(TESTS_LIB) \
170 $(TESTS_PARAM_VALIDATION) \
171 $(TESTS_PLUGINS) \
172 $(TESTS_PYTHON_PLUGIN_PROVIDER)
173
174TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD)
175
176define check_target
177check-$(1):
178 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
179endef
180
181$(eval $(call check_target,argpar,$(TESTS_ARGPAR)))
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
190check-no-bitfield:
191 $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check
This page took 0.022536 seconds and 4 git commands to generate.