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