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