tests: Move data files to a common directory
[babeltrace.git] / tests / Makefile.am
CommitLineData
331731aa 1SUBDIRS = utils lib ctf-writer plugins
ac65e355 2
6a284733 3# Directories added to EXTRA_DIST will be recursively copied to the distribution.
bbff0ab4 4EXTRA_DIST = $(srcdir)/data \
7bb90dd0 5 bindings/python/bt2/.coveragerc
1b83271b 6
7bb90dd0 7dist_check_SCRIPTS = \
7bb90dd0
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 \
24 bindings/python/bt2/test_query_executor.py \
25 bindings/python/bt2/test_stream_class.py \
26 bindings/python/bt2/test_stream.py \
27 bindings/python/bt2/test_trace_collection_message_iterator.py \
28 bindings/python/bt2/test_trace.py \
29 bindings/python/bt2/test_value.py \
30 bindings/python/bt2/utils.py \
31 python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
32 python-plugin-provider/test_python_plugin_provider.py
cd1c5347 33
7bb90dd0 34TESTS_BINDINGS =
9e607e7c
JG
35
36if ENABLE_PYTHON_BINDINGS
b04a139e 37TESTS_BINDINGS += bindings/python/bt2/test_python_bt2
cd1c5347
PP
38endif
39
40TESTS_CLI = \
41 cli/test_trace_read \
42 cli/test_packet_seq_num \
43 cli/test_convert_args \
7bb90dd0 44 cli/test_intersection \
cd1c5347
PP
45 cli/test_trace_copy \
46 cli/test_trimmer
47
48TESTS_LIB = \
4041a53e 49 lib/test_bitfield \
cd1c5347 50 lib/test_bt_values \
4041a53e
SM
51 lib/test_graph_topo \
52 lib/test_trace_ir_ref
cd1c5347 53
331731aa
MJ
54TESTS_CTF_WRITER = \
55 ctf-writer/test_ctf_writer
56
cd1c5347
PP
57if !ENABLE_BUILT_IN_PLUGINS
58TESTS_LIB += lib/test_plugin_complete
4965530a 59endif
cd1c5347 60
1805e0b4 61if ENABLE_PYTHON_BINDINGS
56e18c4c 62TESTS_LIB += lib/trace-ir/test_trace_ir
1805e0b4
PP
63endif
64
e30aed9e
PP
65TESTS_PLUGINS = \
66 plugins/src.ctf.fs/succeed/test_succeed
cd1c5347
PP
67
68if !ENABLE_BUILT_IN_PLUGINS
d8992d68 69if ENABLE_PYTHON_BINDINGS
e30aed9e 70TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query
684658b1
PP
71
72if ENABLE_DEBUG_INFO
66251464 73TESTS_PLUGINS += plugins/flt.lttng-utils.debug-info/test_lttng_utils_debug_info
d8992d68
PP
74endif
75endif
cd1c5347
PP
76endif
77
78if ENABLE_DEBUG_INFO
79TESTS_PLUGINS += \
66251464
PP
80 plugins/flt.lttng-utils.debug-info/test_dwarf_i386-linux-gnu \
81 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc-linux-gnu \
82 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc64le-linux-gnu \
83 plugins/flt.lttng-utils.debug-info/test_dwarf_x86_64-linux-gnu \
84 plugins/flt.lttng-utils.debug-info/test_bin_info_i386-linux-gnu \
85 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc-linux-gnu \
86 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc64le-linux-gnu \
87 plugins/flt.lttng-utils.debug-info/test_bin_info_x86_64-linux-gnu
cd1c5347
PP
88endif
89
90TESTS_PYTHON_PLUGIN_PROVIDER =
91
9e607e7c 92if ENABLE_PYTHON_PLUGINS
cd1c5347
PP
93TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
94endif
95
11d328de
PP
96LOG_DRIVER_FLAGS = '--merge'
97LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/config/tap-driver.sh
98
331731aa 99TESTS = $(TESTS_BINDINGS) $(TESTS_CLI) $(TESTS_CTF_WRITER) $(TESTS_LIB) \
1805e0b4 100 $(TESTS_PLUGINS) $(TESTS_PYTHON_PLUGIN_PROVIDER)
cd1c5347
PP
101
102define check_target
103check-$(1):
104 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
105endef
106
107$(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
108$(eval $(call check_target,cli,$(TESTS_CLI)))
331731aa 109$(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER)))
cd1c5347
PP
110$(eval $(call check_target,lib,$(TESTS_LIB)))
111$(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
112$(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
This page took 0.059901 seconds and 4 git commands to generate.