ctf: add internal ctf_metadata_decoder_get_trace_class_uuid()
[babeltrace.git] / tests / Makefile.am
CommitLineData
7263c7a9 1SUBDIRS = utils lib bitfield ctf-writer plugins argpar
ac65e355 2
ab9abfca 3# Directories added to EXTRA_DIST will be recursively copied to the distribution.
b7c5d194 4EXTRA_DIST = $(srcdir)/data \
8a773708 5 bindings/python/bt2/.coveragerc
1b83271b 6
8a773708 7dist_check_SCRIPTS = \
8a773708
MJ
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 \
025c8fb8 18 bindings/python/bt2/test_integer_range_set.py \
78ab137b 19 bindings/python/bt2/test_interrupter.py \
8a773708
MJ
20 bindings/python/bt2/test_message_iterator.py \
21 bindings/python/bt2/test_message.py \
1f4f74e8 22 bindings/python/bt2/test_package.py \
8a773708
MJ
23 bindings/python/bt2/test_packet.py \
24 bindings/python/bt2/test_plugin.py \
25 bindings/python/bt2/test_port.py \
abdabab5 26 bindings/python/bt2/test_python_bt2 \
8a773708
MJ
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 \
d55d79bd 34 cli/convert/test_auto_source_discovery_grouping \
9dfe185c
PP
35 cli/convert/test_auto_source_discovery_params \
36 cli/convert/test_auto_source_discovery_log_level \
d55d79bd 37 cli/convert/test_convert_args \
abdabab5
MJ
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 \
8a773708 44 python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
abdabab5 45 python-plugin-provider/test_python_plugin_provider \
8a773708 46 python-plugin-provider/test_python_plugin_provider.py
f0a3508c 47
8a773708 48TESTS_BINDINGS =
72b1f06a
JG
49
50if ENABLE_PYTHON_BINDINGS
1385760a 51TESTS_BINDINGS += bindings/python/bt2/test_python_bt2
f0a3508c
PP
52endif
53
7263c7a9
PP
54TESTS_ARGPAR = \
55 argpar/test_argpar
56
f0a3508c 57TESTS_CLI = \
d55d79bd 58 cli/convert/test_convert_args \
f0a3508c
PP
59 cli/test_trace_read \
60 cli/test_packet_seq_num \
8a773708 61 cli/test_intersection \
f0a3508c
PP
62 cli/test_trace_copy \
63 cli/test_trimmer
64
65TESTS_LIB = \
010c429e 66 lib/test_bt_values \
d126826c 67 lib/test_bt_uuid \
010c429e 68 lib/test_graph_topo \
117d027c
PP
69 lib/test_trace_ir_ref \
70 lib/test_simple_sink
f0a3508c 71
ec3e1721
PP
72TESTS_BITFIELD = \
73 bitfield/test_bitfield
74
e40bd1f0
MJ
75TESTS_CTF_WRITER = \
76 ctf-writer/test_ctf_writer
77
f0a3508c 78if !ENABLE_BUILT_IN_PLUGINS
abdabab5 79TESTS_LIB += lib/test_plugin
7e579125
PP
80endif
81
130858eb 82TESTS_PLUGINS = \
e19f607d
PP
83 plugins/src.ctf.fs/succeed/test_succeed \
84 plugins/sink.ctf.fs/succeed/test_succeed
f0a3508c
PP
85
86if !ENABLE_BUILT_IN_PLUGINS
36abff2a 87if ENABLE_PYTHON_BINDINGS
bf68f4a4
FD
88TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_trace_info
89TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query_metadata_info
275a0234 90endif
171465a1
PP
91
92if ENABLE_DEBUG_INFO
275a0234
FD
93TESTS_PLUGINS += \
94 plugins/flt.lttng-utils.debug-info/test_succeed
36abff2a 95endif
f0a3508c
PP
96endif
97
98if ENABLE_DEBUG_INFO
99TESTS_PLUGINS += \
82c537ae
PP
100 plugins/flt.lttng-utils.debug-info/test_dwarf_i386-linux-gnu \
101 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc-linux-gnu \
102 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc64le-linux-gnu \
103 plugins/flt.lttng-utils.debug-info/test_dwarf_x86_64-linux-gnu \
104 plugins/flt.lttng-utils.debug-info/test_bin_info_i386-linux-gnu \
105 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc-linux-gnu \
106 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc64le-linux-gnu \
107 plugins/flt.lttng-utils.debug-info/test_bin_info_x86_64-linux-gnu
f0a3508c
PP
108endif
109
b7cbc799
SM
110if ENABLE_PYTHON_PLUGINS
111if ENABLE_PYTHON_BINDINGS
9dfe185c
PP
112TESTS_CLI += cli/convert/test_auto_source_discovery_grouping \
113 cli/convert/test_auto_source_discovery_log_level \
114 cli/convert/test_auto_source_discovery_params
241aad0a
FD
115TESTS_PLUGINS += plugins/flt.utils.trimmer/test_trimming \
116 plugins/flt.utils.muxer/succeed/test_succeed
b7cbc799
SM
117endif
118endif
119
f0a3508c
PP
120TESTS_PYTHON_PLUGIN_PROVIDER =
121
72b1f06a 122if ENABLE_PYTHON_PLUGINS
f0a3508c
PP
123TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
124endif
125
abdabab5
MJ
126LOG_DRIVER_FLAGS = --merge --comments
127LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \
128 BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \
129 BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \
130 BT_TESTS_AWK_BIN="$(AWK)" \
131 BT_TESTS_GREP_BIN="$(GREP)" \
132 BT_TESTS_PYTHON_BIN="$(PYTHON)" \
4b2d0d1f 133 BT_TESTS_PYTHON_CONFIG_BIN="$(PYTHON_CONFIG)" \
abdabab5 134 BT_TESTS_SED_BIN="$(SED)" \
819b9870 135 $(SHELL) $(srcdir)/utils/tap-driver.sh
41384c0a 136
ec3e1721 137TESTS_NO_BITFIELD = \
7263c7a9 138 $(TESTS_ARGPAR) \
ec3e1721
PP
139 $(TESTS_BINDINGS) \
140 $(TESTS_CLI) \
141 $(TESTS_CTF_WRITER) \
142 $(TESTS_LIB) \
143 $(TESTS_PLUGINS) \
144 $(TESTS_PYTHON_PLUGIN_PROVIDER)
145
146TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD)
f0a3508c
PP
147
148define check_target
149check-$(1):
150 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
151endef
152
7263c7a9 153$(eval $(call check_target,argpar,$(TESTS_ARGPAR)))
f0a3508c 154$(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
ec3e1721 155$(eval $(call check_target,bitfield,$(TESTS_BITFIELD)))
f0a3508c 156$(eval $(call check_target,cli,$(TESTS_CLI)))
e40bd1f0 157$(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER)))
f0a3508c
PP
158$(eval $(call check_target,lib,$(TESTS_LIB)))
159$(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
160$(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
ec3e1721
PP
161
162check-no-bitfield:
163 $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check
This page took 0.065709 seconds and 4 git commands to generate.