4a5ef55970d4ff2e6c81967702a23db05033451d
[babeltrace.git] / tests / Makefile.am
1 SUBDIRS = utils cli lib bindings 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
7 TESTS_BINDINGS =
8
9 if ENABLE_PYTHON_PLUGINS
10 SUBDIRS += python-plugin-provider
11 endif
12
13 if ENABLE_PYTHON_BINDINGS
14 TESTS_BINDINGS += bindings/python/bt2/test_python_bt2 \
15 bindings/python/babeltrace/test_python_babeltrace
16 endif
17
18 TESTS_CLI = \
19 cli/test_trace_read \
20 cli/test_packet_seq_num \
21 cli/test_convert_args \
22 cli/intersection/test_intersection \
23 cli/test_trace_copy \
24 cli/test_trimmer
25
26 TESTS_LIB = \
27 lib/test_bitfield \
28 lib/test_bt_values \
29 lib/test_ctf_writer_complete \
30 lib/test_graph_topo \
31 lib/test_trace_ir_ref
32
33 if !ENABLE_BUILT_IN_PLUGINS
34 TESTS_LIB += lib/test_plugin_complete
35 endif
36
37 if ENABLE_PYTHON_BINDINGS
38 TESTS_LIB += lib/trace-ir/test_trace_ir
39 TESTS_LIB += lib/ctf-writer/test_ctf_writer
40 endif
41
42 TESTS_PLUGINS =
43
44 if !ENABLE_BUILT_IN_PLUGINS
45 if ENABLE_PYTHON_BINDINGS
46 TESTS_PLUGINS += plugins/ctf/test_ctf_plugin
47
48 if ENABLE_DEBUG_INFO
49 TESTS_PLUGINS += plugins/test_lttng_utils_debug_info
50 endif
51 endif
52 endif
53
54 if ENABLE_DEBUG_INFO
55 TESTS_PLUGINS += \
56 plugins/test_dwarf_i386-linux-gnu \
57 plugins/test_dwarf_powerpc-linux-gnu \
58 plugins/test_dwarf_powerpc64le-linux-gnu \
59 plugins/test_dwarf_x86_64-linux-gnu \
60 plugins/test_bin_info_i386-linux-gnu \
61 plugins/test_bin_info_powerpc-linux-gnu \
62 plugins/test_bin_info_powerpc64le-linux-gnu \
63 plugins/test_bin_info_x86_64-linux-gnu
64 endif
65
66 TESTS_PYTHON_PLUGIN_PROVIDER =
67
68 if ENABLE_PYTHON_PLUGINS
69 TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
70 endif
71
72 LOG_DRIVER_FLAGS = '--merge'
73 LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/config/tap-driver.sh
74
75 TESTS = $(TESTS_BINDINGS) $(TESTS_CLI) $(TESTS_LIB) \
76 $(TESTS_PLUGINS) $(TESTS_PYTHON_PLUGIN_PROVIDER)
77
78 define check_target
79 check-$(1):
80 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
81 endef
82
83 $(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
84 $(eval $(call check_target,cli,$(TESTS_CLI)))
85 $(eval $(call check_target,lib,$(TESTS_LIB)))
86 $(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
87 $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
This page took 0.032509 seconds and 3 git commands to generate.