Test `bt2` public names (`test_package.py`)
[babeltrace.git] / tests / Makefile.am
1 SUBDIRS = utils lib bitfield ctf-writer plugins
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/auto-source-discovery/test_auto_source_discovery \
35 cli/test_convert_args \
36 cli/test_intersection \
37 cli/test_output_ctf_metadata \
38 cli/test_packet_seq_num \
39 cli/test_trace_copy \
40 cli/test_trace_read \
41 cli/test_trimmer \
42 python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
43 python-plugin-provider/test_python_plugin_provider \
44 python-plugin-provider/test_python_plugin_provider.py
45
46 TESTS_BINDINGS =
47
48 if ENABLE_PYTHON_BINDINGS
49 TESTS_BINDINGS += bindings/python/bt2/test_python_bt2
50 endif
51
52 TESTS_CLI = \
53 cli/test_trace_read \
54 cli/test_packet_seq_num \
55 cli/test_convert_args \
56 cli/test_intersection \
57 cli/test_trace_copy \
58 cli/test_trimmer
59
60 TESTS_LIB = \
61 lib/test_bt_values \
62 lib/test_bt_uuid \
63 lib/test_graph_topo \
64 lib/test_trace_ir_ref
65
66 TESTS_BITFIELD = \
67 bitfield/test_bitfield
68
69 TESTS_CTF_WRITER = \
70 ctf-writer/test_ctf_writer
71
72 if !ENABLE_BUILT_IN_PLUGINS
73 TESTS_LIB += lib/test_plugin
74 endif
75
76 TESTS_PLUGINS = \
77 plugins/src.ctf.fs/succeed/test_succeed \
78 plugins/sink.ctf.fs/succeed/test_succeed
79
80 if !ENABLE_BUILT_IN_PLUGINS
81 if ENABLE_PYTHON_BINDINGS
82 TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query
83 endif
84
85 if ENABLE_DEBUG_INFO
86 TESTS_PLUGINS += \
87 plugins/flt.lttng-utils.debug-info/test_succeed
88 endif
89 endif
90
91 if ENABLE_DEBUG_INFO
92 TESTS_PLUGINS += \
93 plugins/flt.lttng-utils.debug-info/test_dwarf_i386-linux-gnu \
94 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc-linux-gnu \
95 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc64le-linux-gnu \
96 plugins/flt.lttng-utils.debug-info/test_dwarf_x86_64-linux-gnu \
97 plugins/flt.lttng-utils.debug-info/test_bin_info_i386-linux-gnu \
98 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc-linux-gnu \
99 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc64le-linux-gnu \
100 plugins/flt.lttng-utils.debug-info/test_bin_info_x86_64-linux-gnu
101 endif
102
103 if ENABLE_PYTHON_PLUGINS
104 if ENABLE_PYTHON_BINDINGS
105 TESTS_CLI += cli/auto-source-discovery/test_auto_source_discovery
106 TESTS_PLUGINS += plugins/flt.utils.trimmer/test_trimming
107 endif
108 endif
109
110 TESTS_PYTHON_PLUGIN_PROVIDER =
111
112 if ENABLE_PYTHON_PLUGINS
113 TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
114 endif
115
116 LOG_DRIVER_FLAGS = --merge --comments
117 LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \
118 BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \
119 BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \
120 BT_TESTS_AWK_BIN="$(AWK)" \
121 BT_TESTS_GREP_BIN="$(GREP)" \
122 BT_TESTS_PYTHON_BIN="$(PYTHON)" \
123 BT_TESTS_PYTHON_CONFIG_BIN="$(PYTHON_CONFIG)" \
124 BT_TESTS_SED_BIN="$(SED)" \
125 $(SHELL) $(srcdir)/utils/tap-driver.sh
126
127 TESTS_NO_BITFIELD = \
128 $(TESTS_BINDINGS) \
129 $(TESTS_CLI) \
130 $(TESTS_CTF_WRITER) \
131 $(TESTS_LIB) \
132 $(TESTS_PLUGINS) \
133 $(TESTS_PYTHON_PLUGIN_PROVIDER)
134
135 TESTS = $(TESTS_NO_BITFIELD) $(TESTS_BITFIELD)
136
137 define check_target
138 check-$(1):
139 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
140 endef
141
142 $(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
143 $(eval $(call check_target,bitfield,$(TESTS_BITFIELD)))
144 $(eval $(call check_target,cli,$(TESTS_CLI)))
145 $(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER)))
146 $(eval $(call check_target,lib,$(TESTS_LIB)))
147 $(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
148 $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
149
150 check-no-bitfield:
151 $(MAKE) $(AM_MAKEFLAGS) TESTS="$(TESTS_NO_BITFIELD)" check
This page took 0.036851 seconds and 5 git commands to generate.