Commit | Line | Data |
---|---|---|
8703bbf2 | 1 | SUBDIRS = utils cli lib bindings plugins |
ac65e355 | 2 | |
3d5e9596 | 3 | EXTRA_DIST = $(srcdir)/ctf-traces/** \ |
2748fb3b AB |
4 | $(srcdir)/debug-info-data/** \ |
5 | $(srcdir)/debug-info-data/.build-id/cd/** | |
1b83271b | 6 | |
cd1c5347 PP |
7 | TESTS_BINDINGS = |
8 | ||
4965530a PP |
9 | if ENABLE_PYTHON_PLUGINS |
10 | SUBDIRS += python-plugin-provider | |
9e607e7c JG |
11 | endif |
12 | ||
13 | if ENABLE_PYTHON_BINDINGS | |
14 | TESTS_BINDINGS += bindings/python/bt2/test_python_bt2 \ | |
15 | bindings/python/babeltrace/test_python_babeltrace | |
cd1c5347 PP |
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 = \ | |
cd1c5347 PP |
27 | lib/test_ctf_writer_complete \ |
28 | lib/test_bt_values \ | |
29 | lib/test_ctf_ir_ref \ | |
30 | lib/test_bt_ctf_field_type_validation \ | |
31 | lib/test_ir_visit \ | |
cd1c5347 PP |
32 | lib/test_graph_topo \ |
33 | lib/test_cc_prio_map \ | |
34 | lib/test_bt_notification_iterator | |
35 | ||
cd1c5347 PP |
36 | if !ENABLE_BUILT_IN_PLUGINS |
37 | TESTS_LIB += lib/test_plugin_complete | |
4965530a | 38 | endif |
cd1c5347 | 39 | |
1805e0b4 PP |
40 | if ENABLE_PYTHON_BINDINGS |
41 | TESTS_LIB += lib/ctf-ir/test_ctf_ir | |
d461e009 | 42 | TESTS_LIB += lib/ctf-writer/test_ctf_writer |
1805e0b4 PP |
43 | endif |
44 | ||
cd1c5347 PP |
45 | TESTS_PLUGINS = |
46 | ||
47 | if !ENABLE_BUILT_IN_PLUGINS | |
48 | TESTS_PLUGINS += plugins/test-utils-muxer-complete | |
d8992d68 PP |
49 | |
50 | if ENABLE_DEBUG_INFO | |
51 | if ENABLE_PYTHON_BINDINGS | |
52 | TESTS_PLUGINS += plugins/test_lttng_utils_debug_info | |
53 | endif | |
54 | endif | |
cd1c5347 PP |
55 | endif |
56 | ||
57 | if ENABLE_DEBUG_INFO | |
58 | TESTS_PLUGINS += \ | |
59 | plugins/test_dwarf_complete \ | |
60 | plugins/test_bin_info_complete | |
61 | endif | |
62 | ||
63 | TESTS_PYTHON_PLUGIN_PROVIDER = | |
64 | ||
9e607e7c | 65 | if ENABLE_PYTHON_PLUGINS |
cd1c5347 PP |
66 | TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider |
67 | endif | |
68 | ||
11d328de PP |
69 | LOG_DRIVER_FLAGS = '--merge' |
70 | LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/config/tap-driver.sh | |
71 | ||
1805e0b4 PP |
72 | TESTS = $(TESTS_BINDINGS) $(TESTS_CLI) $(TESTS_LIB) \ |
73 | $(TESTS_PLUGINS) $(TESTS_PYTHON_PLUGIN_PROVIDER) | |
cd1c5347 PP |
74 | |
75 | define check_target | |
76 | check-$(1): | |
77 | $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check | |
78 | endef | |
79 | ||
80 | $(eval $(call check_target,bindings,$(TESTS_BINDINGS))) | |
81 | $(eval $(call check_target,cli,$(TESTS_CLI))) | |
82 | $(eval $(call check_target,lib,$(TESTS_LIB))) | |
83 | $(eval $(call check_target,plugins,$(TESTS_PLUGINS))) | |
84 | $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER))) |