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