Fix: bt_plugin_so_shared_lib_handle_destroy(): use `#ifdef`, not `#ifndef`
[babeltrace.git] / tests / Makefile.am
CommitLineData
e40bd1f0 1SUBDIRS = utils lib ctf-writer plugins
ac65e355 2
ab9abfca 3# Directories added to EXTRA_DIST will be recursively copied to the distribution.
b7c5d194 4EXTRA_DIST = $(srcdir)/data \
8a773708 5 bindings/python/bt2/.coveragerc
1b83271b 6
8a773708 7dist_check_SCRIPTS = \
8a773708
MJ
8 bindings/python/bt2/test_clock_class_priority_map.py \
9 bindings/python/bt2/test_clock_class.py \
10 bindings/python/bt2/test_component_class.py \
11 bindings/python/bt2/test_component.py \
12 bindings/python/bt2/test_connection.py \
13 bindings/python/bt2/test_ctf_writer_clock.py \
14 bindings/python/bt2/test_event_class.py \
15 bindings/python/bt2/test_event.py \
16 bindings/python/bt2/test_field_class.py \
17 bindings/python/bt2/test_field.py \
18 bindings/python/bt2/test_graph.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 \
abdabab5 24 bindings/python/bt2/test_python_bt2 \
8a773708
MJ
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 \
abdabab5
MJ
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 \
8a773708 39 python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
abdabab5 40 python-plugin-provider/test_python_plugin_provider \
8a773708 41 python-plugin-provider/test_python_plugin_provider.py
f0a3508c 42
8a773708 43TESTS_BINDINGS =
72b1f06a
JG
44
45if ENABLE_PYTHON_BINDINGS
1385760a 46TESTS_BINDINGS += bindings/python/bt2/test_python_bt2
f0a3508c
PP
47endif
48
49TESTS_CLI = \
50 cli/test_trace_read \
51 cli/test_packet_seq_num \
52 cli/test_convert_args \
8a773708 53 cli/test_intersection \
f0a3508c
PP
54 cli/test_trace_copy \
55 cli/test_trimmer
56
57TESTS_LIB = \
54795cc7 58 lib/test_bitfield \
010c429e 59 lib/test_bt_values \
d126826c 60 lib/test_bt_uuid \
010c429e 61 lib/test_graph_topo \
54795cc7 62 lib/test_trace_ir_ref
f0a3508c 63
e40bd1f0
MJ
64TESTS_CTF_WRITER = \
65 ctf-writer/test_ctf_writer
66
f0a3508c 67if !ENABLE_BUILT_IN_PLUGINS
abdabab5 68TESTS_LIB += lib/test_plugin
7e579125
PP
69endif
70
130858eb 71TESTS_PLUGINS = \
e19f607d
PP
72 plugins/src.ctf.fs/succeed/test_succeed \
73 plugins/sink.ctf.fs/succeed/test_succeed
f0a3508c
PP
74
75if !ENABLE_BUILT_IN_PLUGINS
36abff2a 76if ENABLE_PYTHON_BINDINGS
130858eb 77TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query
171465a1
PP
78
79if ENABLE_DEBUG_INFO
82c537ae 80TESTS_PLUGINS += plugins/flt.lttng-utils.debug-info/test_lttng_utils_debug_info
36abff2a
PP
81endif
82endif
f0a3508c
PP
83endif
84
85if ENABLE_DEBUG_INFO
86TESTS_PLUGINS += \
82c537ae
PP
87 plugins/flt.lttng-utils.debug-info/test_dwarf_i386-linux-gnu \
88 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc-linux-gnu \
89 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc64le-linux-gnu \
90 plugins/flt.lttng-utils.debug-info/test_dwarf_x86_64-linux-gnu \
91 plugins/flt.lttng-utils.debug-info/test_bin_info_i386-linux-gnu \
92 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc-linux-gnu \
93 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc64le-linux-gnu \
94 plugins/flt.lttng-utils.debug-info/test_bin_info_x86_64-linux-gnu
f0a3508c
PP
95endif
96
b7cbc799
SM
97if ENABLE_PYTHON_PLUGINS
98if ENABLE_PYTHON_BINDINGS
99TESTS_PLUGINS += plugins/flt.utils.trimmer/test_trimming_wrapper
100endif
101endif
102
f0a3508c
PP
103TESTS_PYTHON_PLUGIN_PROVIDER =
104
72b1f06a 105if ENABLE_PYTHON_PLUGINS
f0a3508c
PP
106TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
107endif
108
abdabab5
MJ
109LOG_DRIVER_FLAGS = --merge --comments
110LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \
111 BT_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \
112 BT_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \
113 BT_TESTS_AWK_BIN="$(AWK)" \
114 BT_TESTS_GREP_BIN="$(GREP)" \
115 BT_TESTS_PYTHON_BIN="$(PYTHON)" \
116 BT_TESTS_SED_BIN="$(SED)" \
117 $(SHELL) $(top_srcdir)/config/tap-driver.sh
41384c0a 118
e40bd1f0 119TESTS = $(TESTS_BINDINGS) $(TESTS_CLI) $(TESTS_CTF_WRITER) $(TESTS_LIB) \
7e579125 120 $(TESTS_PLUGINS) $(TESTS_PYTHON_PLUGIN_PROVIDER)
f0a3508c
PP
121
122define check_target
123check-$(1):
124 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
125endef
126
127$(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
128$(eval $(call check_target,cli,$(TESTS_CLI)))
e40bd1f0 129$(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER)))
f0a3508c
PP
130$(eval $(call check_target,lib,$(TESTS_LIB)))
131$(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
132$(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
This page took 0.07657 seconds and 4 git commands to generate.