tests: Add Makefile to build debug-info test artifacts
[babeltrace.git] / tests / Makefile.am
... / ...
CommitLineData
1SUBDIRS = utils cli lib bindings plugins
2
3EXTRA_DIST = $(srcdir)/ctf-traces/** \
4 $(srcdir)/debug-info-data/** \
5 $(srcdir)/debug-info-data/.build-id/cd/**
6
7TESTS_BINDINGS =
8
9if ENABLE_PYTHON_PLUGINS
10SUBDIRS += python-plugin-provider
11endif
12
13if ENABLE_PYTHON_BINDINGS
14TESTS_BINDINGS += bindings/python/bt2/test_python_bt2 \
15 bindings/python/babeltrace/test_python_babeltrace
16endif
17
18TESTS_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
26TESTS_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
33if !ENABLE_BUILT_IN_PLUGINS
34TESTS_LIB += lib/test_plugin_complete
35endif
36
37if ENABLE_PYTHON_BINDINGS
38TESTS_LIB += lib/trace-ir/test_trace_ir
39TESTS_LIB += lib/ctf-writer/test_ctf_writer
40endif
41
42TESTS_PLUGINS =
43
44if !ENABLE_BUILT_IN_PLUGINS
45if ENABLE_PYTHON_BINDINGS
46TESTS_PLUGINS += plugins/ctf/test_ctf_plugin
47
48if ENABLE_DEBUG_INFO
49TESTS_PLUGINS += plugins/test_lttng_utils_debug_info
50endif
51endif
52endif
53
54if ENABLE_DEBUG_INFO
55TESTS_PLUGINS += \
56 plugins/test_dwarf_complete \
57 plugins/test_bin_info_complete
58endif
59
60TESTS_PYTHON_PLUGIN_PROVIDER =
61
62if ENABLE_PYTHON_PLUGINS
63TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
64endif
65
66LOG_DRIVER_FLAGS = '--merge'
67LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/config/tap-driver.sh
68
69TESTS = $(TESTS_BINDINGS) $(TESTS_CLI) $(TESTS_LIB) \
70 $(TESTS_PLUGINS) $(TESTS_PYTHON_PLUGIN_PROVIDER)
71
72define check_target
73check-$(1):
74 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
75endef
76
77$(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
78$(eval $(call check_target,cli,$(TESTS_CLI)))
79$(eval $(call check_target,lib,$(TESTS_LIB)))
80$(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
81$(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
This page took 0.023797 seconds and 4 git commands to generate.