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 | |
cd1c5347 PP |
11 | TESTS_BINDINGS += bindings/python/bt2/test_python_bt2 |
12 | endif | |
13 | ||
14 | TESTS_CLI = \ | |
15 | cli/test_trace_read \ | |
16 | cli/test_packet_seq_num \ | |
17 | cli/test_convert_args \ | |
18 | cli/intersection/test_intersection \ | |
19 | cli/test_trace_copy \ | |
20 | cli/test_trimmer | |
21 | ||
22 | TESTS_LIB = \ | |
23 | lib/test_bitfield \ | |
24 | lib/test_ctf_writer_complete \ | |
25 | lib/test_bt_values \ | |
26 | lib/test_ctf_ir_ref \ | |
27 | lib/test_bt_ctf_field_type_validation \ | |
28 | lib/test_ir_visit \ | |
29 | lib/test_bt_notification_heap \ | |
30 | lib/test_graph_topo \ | |
31 | lib/test_cc_prio_map \ | |
32 | lib/test_bt_notification_iterator | |
33 | ||
34 | if ENABLE_PYTHON_PLUGINS | |
35 | TESTS_LIB += \ | |
36 | lib/writer/test_ctf_writer_no_packet_context.py \ | |
37 | lib/writer/test_ctf_writer_empty_packet.py | |
38 | endif | |
39 | ||
40 | if !ENABLE_BUILT_IN_PLUGINS | |
41 | TESTS_LIB += lib/test_plugin_complete | |
4965530a | 42 | endif |
cd1c5347 PP |
43 | |
44 | TESTS_PLUGINS = | |
45 | ||
46 | if !ENABLE_BUILT_IN_PLUGINS | |
47 | TESTS_PLUGINS += plugins/test-utils-muxer-complete | |
48 | endif | |
49 | ||
50 | if ENABLE_DEBUG_INFO | |
51 | TESTS_PLUGINS += \ | |
52 | plugins/test_dwarf_complete \ | |
53 | plugins/test_bin_info_complete | |
54 | endif | |
55 | ||
56 | TESTS_PYTHON_PLUGIN_PROVIDER = | |
57 | ||
58 | if ENABLE_PYTHON_BINDINGS | |
59 | TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider | |
60 | endif | |
61 | ||
62 | TESTS = $(TESTS_BINDINGS) $(TESTS_CLI) $(TESTS_LIB) $(TESTS_PLUGINS) \ | |
63 | $(TESTS_PYTHON_PLUGIN_PROVIDER) | |
64 | ||
65 | define check_target | |
66 | check-$(1): | |
67 | $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check | |
68 | endef | |
69 | ||
70 | $(eval $(call check_target,bindings,$(TESTS_BINDINGS))) | |
71 | $(eval $(call check_target,cli,$(TESTS_CLI))) | |
72 | $(eval $(call check_target,lib,$(TESTS_LIB))) | |
73 | $(eval $(call check_target,plugins,$(TESTS_PLUGINS))) | |
74 | $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER))) |