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