Fix: bt2: remove circular import (not supported before Python 3.5)
[babeltrace.git] / tests / Makefile.am
CommitLineData
906ac65f 1SUBDIRS = utils lib bitfield ctf-writer plugins
ac65e355 2
6a284733 3# Directories added to EXTRA_DIST will be recursively copied to the distribution.
bbff0ab4 4EXTRA_DIST = $(srcdir)/data \
7bb90dd0 5 bindings/python/bt2/.coveragerc
1b83271b 6
7bb90dd0 7dist_check_SCRIPTS = \
7bb90dd0
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 \
18 bindings/python/bt2/test_message_iterator.py \
19 bindings/python/bt2/test_message.py \
20 bindings/python/bt2/test_packet.py \
21 bindings/python/bt2/test_plugin.py \
22 bindings/python/bt2/test_port.py \
644e0364 23 bindings/python/bt2/test_python_bt2 \
7bb90dd0
MJ
24 bindings/python/bt2/test_query_executor.py \
25 bindings/python/bt2/test_stream_class.py \
26 bindings/python/bt2/test_stream.py \
27 bindings/python/bt2/test_trace_collection_message_iterator.py \
28 bindings/python/bt2/test_trace.py \
29 bindings/python/bt2/test_value.py \
30 bindings/python/bt2/utils.py \
644e0364
MJ
31 cli/test_convert_args \
32 cli/test_intersection \
33 cli/test_output_ctf_metadata \
34 cli/test_packet_seq_num \
35 cli/test_trace_copy \
36 cli/test_trace_read \
37 cli/test_trimmer \
7bb90dd0 38 python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
644e0364 39 python-plugin-provider/test_python_plugin_provider \
7bb90dd0 40 python-plugin-provider/test_python_plugin_provider.py
cd1c5347 41
7bb90dd0 42TESTS_BINDINGS =
9e607e7c
JG
43
44if ENABLE_PYTHON_BINDINGS
b04a139e 45TESTS_BINDINGS += bindings/python/bt2/test_python_bt2
cd1c5347
PP
46endif
47
48TESTS_CLI = \
49 cli/test_trace_read \
50 cli/test_packet_seq_num \
51 cli/test_convert_args \
7bb90dd0 52 cli/test_intersection \
cd1c5347
PP
53 cli/test_trace_copy \
54 cli/test_trimmer
55
56TESTS_LIB = \
21d04293 57 lib/test_bt_values \
6162e6b7 58 lib/test_bt_uuid \
21d04293 59 lib/test_graph_topo \
4041a53e 60 lib/test_trace_ir_ref
cd1c5347 61
906ac65f
PP
62TESTS_BITFIELD = \
63 bitfield/test_bitfield
64
331731aa
MJ
65TESTS_CTF_WRITER = \
66 ctf-writer/test_ctf_writer
67
cd1c5347 68if !ENABLE_BUILT_IN_PLUGINS
644e0364 69TESTS_LIB += lib/test_plugin
1805e0b4
PP
70endif
71
e30aed9e 72TESTS_PLUGINS = \
1fba7c7b
PP
73 plugins/src.ctf.fs/succeed/test_succeed \
74 plugins/sink.ctf.fs/succeed/test_succeed
cd1c5347
PP
75
76if !ENABLE_BUILT_IN_PLUGINS
d8992d68 77if ENABLE_PYTHON_BINDINGS
e30aed9e 78TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query
684658b1
PP
79
80if ENABLE_DEBUG_INFO
66251464 81TESTS_PLUGINS += plugins/flt.lttng-utils.debug-info/test_lttng_utils_debug_info
d8992d68
PP
82endif
83endif
cd1c5347
PP
84endif
85
86if ENABLE_DEBUG_INFO
87TESTS_PLUGINS += \
66251464
PP
88 plugins/flt.lttng-utils.debug-info/test_dwarf_i386-linux-gnu \
89 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc-linux-gnu \
90 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc64le-linux-gnu \
91 plugins/flt.lttng-utils.debug-info/test_dwarf_x86_64-linux-gnu \
92 plugins/flt.lttng-utils.debug-info/test_bin_info_i386-linux-gnu \
93 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc-linux-gnu \
94 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc64le-linux-gnu \
95 plugins/flt.lttng-utils.debug-info/test_bin_info_x86_64-linux-gnu
cd1c5347
PP
96endif
97
188edac1
SM
98if ENABLE_PYTHON_PLUGINS
99if ENABLE_PYTHON_BINDINGS
1d970e04 100TESTS_PLUGINS += plugins/flt.utils.trimmer/test_trimming
188edac1
SM
101endif
102endif
103
cd1c5347
PP
104TESTS_PYTHON_PLUGIN_PROVIDER =
105
9e607e7c 106if ENABLE_PYTHON_PLUGINS
cd1c5347
PP
107TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
108endif
109
644e0364
MJ
110LOG_DRIVER_FLAGS = --merge --comments
111LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \
112 BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \
113 BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \
114 BT_TESTS_AWK_BIN="$(AWK)" \
115 BT_TESTS_GREP_BIN="$(GREP)" \
116 BT_TESTS_PYTHON_BIN="$(PYTHON)" \
117 BT_TESTS_SED_BIN="$(SED)" \
118 $(SHELL) $(top_srcdir)/config/tap-driver.sh
11d328de 119
906ac65f
PP
120TESTS_NO_BITFIELD = \
121 $(TESTS_BINDINGS) \
122 $(TESTS_CLI) \
123 $(TESTS_CTF_WRITER) \
124 $(TESTS_LIB) \
125 $(TESTS_PLUGINS) \
126 $(TESTS_PYTHON_PLUGIN_PROVIDER)
127
128TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD)
cd1c5347
PP
129
130define check_target
131check-$(1):
132 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
133endef
134
135$(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
906ac65f 136$(eval $(call check_target,bitfield,$(TESTS_BITFIELD)))
cd1c5347 137$(eval $(call check_target,cli,$(TESTS_CLI)))
331731aa 138$(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER)))
cd1c5347
PP
139$(eval $(call check_target,lib,$(TESTS_LIB)))
140$(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
141$(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
906ac65f
PP
142
143check-no-bitfield:
144 $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check
This page took 0.061529 seconds and 4 git commands to generate.