Put `flt.lttng-utils.debug-info` tests into their own directory
[babeltrace.git] / tests / Makefile.am
1 SUBDIRS = utils lib ctf-writer plugins
2
3 # Directories added to EXTRA_DIST will be recursively copied to the distribution.
4 EXTRA_DIST = $(srcdir)/ctf-traces \
5 $(srcdir)/debug-info-data \
6 bindings/python/bt2/.coveragerc
7
8 dist_check_SCRIPTS = \
9 bindings/python/bt2/test_clock_class_priority_map.py \
10 bindings/python/bt2/test_clock_class.py \
11 bindings/python/bt2/test_component_class.py \
12 bindings/python/bt2/test_component.py \
13 bindings/python/bt2/test_connection.py \
14 bindings/python/bt2/test_ctf_writer_clock.py \
15 bindings/python/bt2/test_event_class.py \
16 bindings/python/bt2/test_event.py \
17 bindings/python/bt2/test_field_class.py \
18 bindings/python/bt2/test_field.py \
19 bindings/python/bt2/test_graph.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_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 python-plugin-provider/bt_plugin_test_python_plugin_provider.py \
33 python-plugin-provider/test_python_plugin_provider.py
34
35 TESTS_BINDINGS =
36
37 if ENABLE_PYTHON_BINDINGS
38 TESTS_BINDINGS += bindings/python/bt2/test_python_bt2
39 endif
40
41 TESTS_CLI = \
42 cli/test_trace_read \
43 cli/test_packet_seq_num \
44 cli/test_convert_args \
45 cli/test_intersection \
46 cli/test_trace_copy \
47 cli/test_trimmer
48
49 TESTS_LIB = \
50 lib/test_bitfield \
51 lib/test_bt_values \
52 lib/test_graph_topo \
53 lib/test_trace_ir_ref
54
55 TESTS_CTF_WRITER = \
56 ctf-writer/test_ctf_writer
57
58 if !ENABLE_BUILT_IN_PLUGINS
59 TESTS_LIB += lib/test_plugin_complete
60 endif
61
62 if ENABLE_PYTHON_BINDINGS
63 TESTS_LIB += lib/trace-ir/test_trace_ir
64 endif
65
66 TESTS_PLUGINS = \
67 plugins/src.ctf.fs/succeed/test_succeed
68
69 if !ENABLE_BUILT_IN_PLUGINS
70 if ENABLE_PYTHON_BINDINGS
71 TESTS_PLUGINS += plugins/src.ctf.fs/query/test_query
72
73 if ENABLE_DEBUG_INFO
74 TESTS_PLUGINS += plugins/flt.lttng-utils.debug-info/test_lttng_utils_debug_info
75 endif
76 endif
77 endif
78
79 if ENABLE_DEBUG_INFO
80 TESTS_PLUGINS += \
81 plugins/flt.lttng-utils.debug-info/test_dwarf_i386-linux-gnu \
82 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc-linux-gnu \
83 plugins/flt.lttng-utils.debug-info/test_dwarf_powerpc64le-linux-gnu \
84 plugins/flt.lttng-utils.debug-info/test_dwarf_x86_64-linux-gnu \
85 plugins/flt.lttng-utils.debug-info/test_bin_info_i386-linux-gnu \
86 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc-linux-gnu \
87 plugins/flt.lttng-utils.debug-info/test_bin_info_powerpc64le-linux-gnu \
88 plugins/flt.lttng-utils.debug-info/test_bin_info_x86_64-linux-gnu
89 endif
90
91 TESTS_PYTHON_PLUGIN_PROVIDER =
92
93 if ENABLE_PYTHON_PLUGINS
94 TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
95 endif
96
97 LOG_DRIVER_FLAGS = '--merge'
98 LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/config/tap-driver.sh
99
100 TESTS = $(TESTS_BINDINGS) $(TESTS_CLI) $(TESTS_CTF_WRITER) $(TESTS_LIB) \
101 $(TESTS_PLUGINS) $(TESTS_PYTHON_PLUGIN_PROVIDER)
102
103 define check_target
104 check-$(1):
105 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
106 endef
107
108 $(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
109 $(eval $(call check_target,cli,$(TESTS_CLI)))
110 $(eval $(call check_target,ctf-writer,$(TESTS_CTF_WRITER)))
111 $(eval $(call check_target,lib,$(TESTS_LIB)))
112 $(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
113 $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
This page took 0.031684 seconds and 4 git commands to generate.