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