ctf: make src.ctf.fs group inputs by UUID in `babeltrace.support-info` query
[babeltrace.git] / tests / Makefile.am
1 SUBDIRS = utils lib bitfield ctf-writer plugins argpar
2
3 # Directories added to EXTRA_DIST will be recursively copied to the distribution.
4 EXTRA_DIST = $(srcdir)/data \
5 bindings/python/bt2/.coveragerc
6
7 dist_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_packet_seq_num \
41 cli/test_trace_copy \
42 cli/test_trace_read \
43 cli/test_trimmer \
44 python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
45 python-plugin-provider/test_python_plugin_provider \
46 python-plugin-provider/test_python_plugin_provider.py
47
48 TESTS_BINDINGS =
49
50 if ENABLE_PYTHON_BINDINGS
51 TESTS_BINDINGS += bindings/python/bt2/test_python_bt2
52 endif
53
54 TESTS_ARGPAR = \
55 argpar/test_argpar
56
57 TESTS_CLI = \
58 cli/convert/test_convert_args \
59 cli/test_trace_read \
60 cli/test_packet_seq_num \
61 cli/test_intersection \
62 cli/test_trace_copy \
63 cli/test_trimmer
64
65 TESTS_LIB = \
66 lib/test_bt_values \
67 lib/test_bt_uuid \
68 lib/test_graph_topo \
69 lib/test_trace_ir_ref \
70 lib/test_simple_sink
71
72 TESTS_BITFIELD = \
73 bitfield/test_bitfield
74
75 TESTS_CTF_WRITER = \
76 ctf-writer/test_ctf_writer
77
78 if !ENABLE_BUILT_IN_PLUGINS
79 TESTS_LIB += lib/test_plugin
80 endif
81
82 TESTS_PLUGINS = \
83 plugins/src.ctf.fs/succeed/test_succeed \
84 plugins/sink.ctf.fs/succeed/test_succeed
85
86 if !ENABLE_BUILT_IN_PLUGINS
87 if ENABLE_PYTHON_BINDINGS
88 TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_support_info
89 TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_trace_info
90 TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_metadata_info
91 endif
92
93 if ENABLE_DEBUG_INFO
94 TESTS_PLUGINS += \
95 plugins/flt.lttng-utils.debug-info/test_succeed
96 endif
97 endif
98
99 if ENABLE_DEBUG_INFO
100 TESTS_PLUGINS += \
101 plugins/flt.lttng-utils.debug-info/test_dwarf_i386-linux-gnu \
102 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc-linux-gnu \
103 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc64le-linux-gnu \
104 plugins/flt.lttng-utils.debug-info/test_dwarf_x86_64-linux-gnu \
105 plugins/flt.lttng-utils.debug-info/test_bin_info_i386-linux-gnu \
106 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc-linux-gnu \
107 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc64le-linux-gnu \
108 plugins/flt.lttng-utils.debug-info/test_bin_info_x86_64-linux-gnu
109 endif
110
111 if ENABLE_PYTHON_PLUGINS
112 if ENABLE_PYTHON_BINDINGS
113 TESTS_CLI += cli/convert/test_auto_source_discovery_grouping \
114 cli/convert/test_auto_source_discovery_log_level \
115 cli/convert/test_auto_source_discovery_params
116 TESTS_PLUGINS += plugins/flt.utils.trimmer/test_trimming \
117 plugins/flt.utils.muxer/succeed/test_succeed
118 endif
119 endif
120
121 TESTS_PYTHON_PLUGIN_PROVIDER =
122
123 if ENABLE_PYTHON_PLUGINS
124 TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
125 endif
126
127 LOG_DRIVER_FLAGS = --merge --comments
128 LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \
129 BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \
130 BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \
131 BT_TESTS_AWK_BIN="$(AWK)" \
132 BT_TESTS_GREP_BIN="$(GREP)" \
133 BT_TESTS_PYTHON_BIN="$(PYTHON)" \
134 BT_TESTS_PYTHON_CONFIG_BIN="$(PYTHON_CONFIG)" \
135 BT_TESTS_SED_BIN="$(SED)" \
136 $(SHELL) $(srcdir)/utils/tap-driver.sh
137
138 TESTS_NO_BITFIELD = \
139 $(TESTS_ARGPAR) \
140 $(TESTS_BINDINGS) \
141 $(TESTS_CLI) \
142 $(TESTS_CTF_WRITER) \
143 $(TESTS_LIB) \
144 $(TESTS_PLUGINS) \
145 $(TESTS_PYTHON_PLUGIN_PROVIDER)
146
147 TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD)
148
149 define check_target
150 check-$(1):
151 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
152 endef
153
154 $(eval $(call check_target,argpar,$(TESTS_ARGPAR)))
155 $(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
156 $(eval $(call check_target,bitfield,$(TESTS_BITFIELD)))
157 $(eval $(call check_target,cli,$(TESTS_CLI)))
158 $(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER)))
159 $(eval $(call check_target,lib,$(TESTS_LIB)))
160 $(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
161 $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
162
163 check-no-bitfield:
164 $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check
This page took 0.034447 seconds and 5 git commands to generate.