Commit | Line | Data |
---|---|---|
8703bbf2 | 1 | SUBDIRS = utils cli lib bindings plugins |
ac65e355 | 2 | |
6a284733 MJ |
3 | # Directories added to EXTRA_DIST will be recursively copied to the distribution. |
4 | EXTRA_DIST = $(srcdir)/ctf-traces \ | |
5 | $(srcdir)/debug-info-data | |
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 = \ | |
4041a53e | 27 | lib/test_bitfield \ |
cd1c5347 | 28 | lib/test_bt_values \ |
4041a53e SM |
29 | lib/test_ctf_writer_complete \ |
30 | lib/test_graph_topo \ | |
31 | lib/test_trace_ir_ref | |
cd1c5347 | 32 | |
cd1c5347 PP |
33 | if !ENABLE_BUILT_IN_PLUGINS |
34 | TESTS_LIB += lib/test_plugin_complete | |
4965530a | 35 | endif |
cd1c5347 | 36 | |
1805e0b4 | 37 | if ENABLE_PYTHON_BINDINGS |
56e18c4c | 38 | TESTS_LIB += lib/trace-ir/test_trace_ir |
d461e009 | 39 | TESTS_LIB += lib/ctf-writer/test_ctf_writer |
1805e0b4 PP |
40 | endif |
41 | ||
cd1c5347 PP |
42 | TESTS_PLUGINS = |
43 | ||
44 | if !ENABLE_BUILT_IN_PLUGINS | |
d8992d68 | 45 | if ENABLE_PYTHON_BINDINGS |
684658b1 PP |
46 | TESTS_PLUGINS += plugins/ctf/test_ctf_plugin |
47 | ||
48 | if ENABLE_DEBUG_INFO | |
d8992d68 PP |
49 | TESTS_PLUGINS += plugins/test_lttng_utils_debug_info |
50 | endif | |
51 | endif | |
cd1c5347 PP |
52 | endif |
53 | ||
54 | if ENABLE_DEBUG_INFO | |
55 | TESTS_PLUGINS += \ | |
48c91dde | 56 | plugins/test_dwarf_i386-linux-gnu \ |
5d30f567 | 57 | plugins/test_dwarf_powerpc-linux-gnu \ |
6a284733 | 58 | plugins/test_dwarf_x86_64-linux-gnu \ |
48c91dde | 59 | plugins/test_bin_info_i386-linux-gnu \ |
5d30f567 | 60 | plugins/test_bin_info_powerpc-linux-gnu \ |
6a284733 | 61 | plugins/test_bin_info_x86_64-linux-gnu |
cd1c5347 PP |
62 | endif |
63 | ||
64 | TESTS_PYTHON_PLUGIN_PROVIDER = | |
65 | ||
9e607e7c | 66 | if ENABLE_PYTHON_PLUGINS |
cd1c5347 PP |
67 | TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider |
68 | endif | |
69 | ||
11d328de PP |
70 | LOG_DRIVER_FLAGS = '--merge' |
71 | LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/config/tap-driver.sh | |
72 | ||
1805e0b4 PP |
73 | TESTS = $(TESTS_BINDINGS) $(TESTS_CLI) $(TESTS_LIB) \ |
74 | $(TESTS_PLUGINS) $(TESTS_PYTHON_PLUGIN_PROVIDER) | |
cd1c5347 PP |
75 | |
76 | define check_target | |
77 | check-$(1): | |
78 | $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check | |
79 | endef | |
80 | ||
81 | $(eval $(call check_target,bindings,$(TESTS_BINDINGS))) | |
82 | $(eval $(call check_target,cli,$(TESTS_CLI))) | |
83 | $(eval $(call check_target,lib,$(TESTS_LIB))) | |
84 | $(eval $(call check_target,plugins,$(TESTS_PLUGINS))) | |
85 | $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER))) |