Tests: moved files pointed-to in Makefile
[babeltrace.git] / tests / Makefile.am
1 SUBDIRS = utils cli lib bindings plugins
2
3 EXTRA_DIST = $(srcdir)/ctf-traces/** \
4 $(srcdir)/debug-info-data/** \
5 $(srcdir)/debug-info-data/.build-id/cd/**
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_ctf_writer_complete \
29 lib/test_bt_values \
30 lib/test_ctf_ir_ref \
31 lib/test_bt_ctf_field_type_validation \
32 lib/test_ir_visit \
33 lib/test_bt_notification_heap \
34 lib/test_graph_topo \
35 lib/test_cc_prio_map \
36 lib/test_bt_notification_iterator
37
38 if !ENABLE_BUILT_IN_PLUGINS
39 TESTS_LIB += lib/test_plugin_complete
40 endif
41
42 TESTS_PLUGINS =
43
44 if !ENABLE_BUILT_IN_PLUGINS
45 TESTS_PLUGINS += plugins/test-utils-muxer-complete
46 endif
47
48 if ENABLE_DEBUG_INFO
49 TESTS_PLUGINS += \
50 plugins/test_dwarf_complete \
51 plugins/test_bin_info_complete
52 endif
53
54 TESTS_PYTHON_PLUGIN_PROVIDER =
55
56 if ENABLE_PYTHON_PLUGINS
57 TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
58 endif
59
60 TESTS = $(TESTS_BINDINGS) $(TESTS_CLI) $(TESTS_LIB) $(TESTS_PLUGINS) \
61 $(TESTS_PYTHON_PLUGIN_PROVIDER)
62
63 define check_target
64 check-$(1):
65 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
66 endef
67
68 $(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
69 $(eval $(call check_target,cli,$(TESTS_CLI)))
70 $(eval $(call check_target,lib,$(TESTS_LIB)))
71 $(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
72 $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
This page took 0.039669 seconds and 5 git commands to generate.