1 SUBDIRS = utils cli lib bindings plugins
3 # Directories added to EXTRA_DIST will be recursively copied to the distribution.
4 EXTRA_DIST = $(srcdir)/ctf-traces \
5 $(srcdir)/debug-info-data
9 if ENABLE_PYTHON_PLUGINS
10 SUBDIRS += python-plugin-provider
13 if ENABLE_PYTHON_BINDINGS
14 TESTS_BINDINGS += bindings/python/bt2/test_python_bt2 \
15 bindings/python/babeltrace/test_python_babeltrace
20 cli/test_packet_seq_num \
21 cli/test_convert_args \
22 cli/intersection/test_intersection \
29 lib/test_ctf_writer_complete \
33 if !ENABLE_BUILT_IN_PLUGINS
34 TESTS_LIB += lib/test_plugin_complete
37 if ENABLE_PYTHON_BINDINGS
38 TESTS_LIB += lib/trace-ir/test_trace_ir
39 TESTS_LIB += lib/ctf-writer/test_ctf_writer
44 if !ENABLE_BUILT_IN_PLUGINS
45 if ENABLE_PYTHON_BINDINGS
46 TESTS_PLUGINS += plugins/ctf/test_ctf_plugin
49 TESTS_PLUGINS += plugins/test_lttng_utils_debug_info
56 plugins/test_dwarf_i386-linux-gnu \
57 plugins/test_dwarf_x86_64-linux-gnu \
58 plugins/test_bin_info_i386-linux-gnu \
59 plugins/test_bin_info_x86_64-linux-gnu
62 TESTS_PYTHON_PLUGIN_PROVIDER =
64 if ENABLE_PYTHON_PLUGINS
65 TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
68 LOG_DRIVER_FLAGS = '--merge'
69 LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/config/tap-driver.sh
71 TESTS = $(TESTS_BINDINGS) $(TESTS_CLI) $(TESTS_LIB) \
72 $(TESTS_PLUGINS) $(TESTS_PYTHON_PLUGIN_PROVIDER)
76 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
79 $(eval $(call check_target,bindings,$(TESTS_BINDINGS)))
80 $(eval $(call check_target,cli,$(TESTS_CLI)))
81 $(eval $(call check_target,lib,$(TESTS_LIB)))
82 $(eval $(call check_target,plugins,$(TESTS_PLUGINS)))
83 $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER)))