Add basic `sink.text.details` tests
[babeltrace.git] / tests / Makefile.am
... / ...
CommitLineData
1SUBDIRS = utils lib bitfield ctf-writer plugins argpar
2
3# Directories added to EXTRA_DIST will be recursively copied to the distribution.
4EXTRA_DIST = $(srcdir)/data \
5 bindings/python/bt2/.coveragerc
6
7dist_check_SCRIPTS = \
8 bindings/python/bt2/test_clock_class.py \
9 bindings/python/bt2/test_component_class.py \
10 bindings/python/bt2/test_component.py \
11 bindings/python/bt2/test_connection.py \
12 bindings/python/bt2/test_ctf_writer_clock.py \
13 bindings/python/bt2/test_event_class.py \
14 bindings/python/bt2/test_event.py \
15 bindings/python/bt2/test_field_class.py \
16 bindings/python/bt2/test_field.py \
17 bindings/python/bt2/test_graph.py \
18 bindings/python/bt2/test_integer_range_set.py \
19 bindings/python/bt2/test_interrupter.py \
20 bindings/python/bt2/test_message_iterator.py \
21 bindings/python/bt2/test_message.py \
22 bindings/python/bt2/test_package.py \
23 bindings/python/bt2/test_packet.py \
24 bindings/python/bt2/test_plugin.py \
25 bindings/python/bt2/test_port.py \
26 bindings/python/bt2/test_python_bt2 \
27 bindings/python/bt2/test_query_executor.py \
28 bindings/python/bt2/test_stream_class.py \
29 bindings/python/bt2/test_stream.py \
30 bindings/python/bt2/test_trace_collection_message_iterator.py \
31 bindings/python/bt2/test_trace.py \
32 bindings/python/bt2/test_value.py \
33 bindings/python/bt2/utils.py \
34 cli/convert/test_auto_source_discovery_grouping \
35 cli/convert/test_auto_source_discovery_params \
36 cli/convert/test_auto_source_discovery_log_level \
37 cli/convert/test_convert_args \
38 cli/test_intersection \
39 cli/test_output_ctf_metadata \
40 cli/test_output_path_ctf_non_lttng_trace \
41 cli/test_packet_seq_num \
42 cli/test_trace_copy \
43 cli/test_trace_read \
44 cli/test_trimmer \
45 plugins/sink.text.details/succeed/test_succeed \
46 plugins/src.ctf.lttng-live/test_live \
47 python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
48 python-plugin-provider/test_python_plugin_provider \
49 python-plugin-provider/test_python_plugin_provider.py
50
51TESTS_BINDINGS =
52
53if ENABLE_PYTHON_BINDINGS
54TESTS_BINDINGS += bindings/python/bt2/test_python_bt2
55endif
56
57TESTS_ARGPAR = \
58 argpar/test_argpar
59
60TESTS_CLI = \
61 cli/convert/test_convert_args \
62 cli/test_intersection \
63 cli/test_output_path_ctf_non_lttng_trace \
64 cli/test_packet_seq_num \
65 cli/test_trace_copy \
66 cli/test_trace_read \
67 cli/test_trimmer
68
69TESTS_LIB = \
70 lib/test_bt_values \
71 lib/test_bt_uuid \
72 lib/test_graph_topo \
73 lib/test_trace_ir_ref \
74 lib/test_simple_sink
75
76TESTS_BITFIELD = \
77 bitfield/test_bitfield
78
79TESTS_CTF_WRITER = \
80 ctf-writer/test_ctf_writer
81
82if !ENABLE_BUILT_IN_PLUGINS
83TESTS_LIB += lib/test_plugin
84endif
85
86TESTS_PLUGINS = \
87 plugins/src.ctf.fs/succeed/test_succeed \
88 plugins/sink.ctf.fs/succeed/test_succeed \
89 plugins/sink.text.details/succeed/test_succeed
90
91if !ENABLE_BUILT_IN_PLUGINS
92if ENABLE_PYTHON_BINDINGS
93TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_support_info
94TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_trace_info
95TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_metadata_info
96endif
97
98if ENABLE_DEBUG_INFO
99TESTS_PLUGINS += \
100 plugins/flt.lttng-utils.debug-info/test_succeed
101endif
102endif
103
104if ENABLE_DEBUG_INFO
105TESTS_PLUGINS += \
106 plugins/flt.lttng-utils.debug-info/test_dwarf_i386-linux-gnu \
107 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc-linux-gnu \
108 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc64le-linux-gnu \
109 plugins/flt.lttng-utils.debug-info/test_dwarf_x86_64-linux-gnu \
110 plugins/flt.lttng-utils.debug-info/test_bin_info_i386-linux-gnu \
111 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc-linux-gnu \
112 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc64le-linux-gnu \
113 plugins/flt.lttng-utils.debug-info/test_bin_info_x86_64-linux-gnu
114endif
115
116if ENABLE_PYTHON_PLUGINS
117if ENABLE_PYTHON_BINDINGS
118TESTS_CLI += cli/convert/test_auto_source_discovery_grouping \
119 cli/convert/test_auto_source_discovery_log_level \
120 cli/convert/test_auto_source_discovery_params
121TESTS_PLUGINS += plugins/flt.utils.trimmer/test_trimming \
122 plugins/flt.utils.muxer/succeed/test_succeed
123endif
124endif
125
126if HAVE_PYTHON
127TESTS_PLUGINS += plugins/src.ctf.lttng-live/test_live
128endif
129
130TESTS_PYTHON_PLUGIN_PROVIDER =
131
132if ENABLE_PYTHON_PLUGINS
133TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
134endif
135
136LOG_DRIVER_FLAGS = --merge --comments
137LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \
138 BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \
139 BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \
140 BT_TESTS_AWK_BIN="$(AWK)" \
141 BT_TESTS_GREP_BIN="$(GREP)" \
142 BT_TESTS_PYTHON_BIN="$(PYTHON)" \
143 BT_TESTS_PYTHON_CONFIG_BIN="$(PYTHON_CONFIG)" \
144 BT_TESTS_SED_BIN="$(SED)" \
145 $(SHELL) $(srcdir)/utils/tap-driver.sh
146
147TESTS_NO_BITFIELD = \
148 $(TESTS_ARGPAR) \
149 $(TESTS_BINDINGS) \
150 $(TESTS_CLI) \
151 $(TESTS_CTF_WRITER) \
152 $(TESTS_LIB) \
153 $(TESTS_PLUGINS) \
154 $(TESTS_PYTHON_PLUGIN_PROVIDER)
155
156TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD)
157
158define check_target
159check-$(1):
160 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
161endef
162
163$(eval $(call check_target,argpar,$(TESTS_ARGPAR)))
164$(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
165$(eval $(call check_target,bitfield,$(TESTS_BITFIELD)))
166$(eval $(call check_target,cli,$(TESTS_CLI)))
167$(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER)))
168$(eval $(call check_target,lib,$(TESTS_LIB)))
169$(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
170$(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
171
172check-no-bitfield:
173 $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check
This page took 0.023573 seconds and 4 git commands to generate.