tests/plugins/ctf/Makefile.am: do not set `TESTS` in this file
[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_ctf_writer_complete \
28 lib/test_bt_values \
29 lib/test_trace_ir_ref \
30 lib/test_graph_topo
31
32 if !ENABLE_BUILT_IN_PLUGINS
33 TESTS_LIB += lib/test_plugin_complete
34 endif
35
36 if ENABLE_PYTHON_BINDINGS
37 TESTS_LIB += lib/trace-ir/test_trace_ir
38 TESTS_LIB += lib/ctf-writer/test_ctf_writer
39 endif
40
41 TESTS_PLUGINS =
42
43 if !ENABLE_BUILT_IN_PLUGINS
44 if ENABLE_PYTHON_BINDINGS
45 TESTS_PLUGINS += plugins/ctf/test_ctf_plugin
46
47 if ENABLE_DEBUG_INFO
48 TESTS_PLUGINS += plugins/test_lttng_utils_debug_info
49 endif
50 endif
51 endif
52
53 if ENABLE_DEBUG_INFO
54 TESTS_PLUGINS += \
55 plugins/test_dwarf_complete \
56 plugins/test_bin_info_complete
57 endif
58
59 TESTS_PYTHON_PLUGIN_PROVIDER =
60
61 if ENABLE_PYTHON_PLUGINS
62 TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
63 endif
64
65 LOG_DRIVER_FLAGS = '--merge'
66 LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/config/tap-driver.sh
67
68 TESTS = $(TESTS_BINDINGS) $(TESTS_CLI) $(TESTS_LIB) \
69 $(TESTS_PLUGINS) $(TESTS_PYTHON_PLUGIN_PROVIDER)
70
71 define check_target
72 check-$(1):
73 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
74 endef
75
76 $(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
77 $(eval $(call check_target,cli,$(TESTS_CLI)))
78 $(eval $(call check_target,lib,$(TESTS_LIB)))
79 $(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
80 $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))
This page took 0.030548 seconds and 4 git commands to generate.