Fix: `tests/Makefile.am`: do not run missing tests
[babeltrace.git] / tests / Makefile.am
CommitLineData
8703bbf2 1SUBDIRS = utils cli lib bindings plugins
ac65e355 2
3d5e9596 3EXTRA_DIST = $(srcdir)/ctf-traces/** \
2748fb3b
AB
4 $(srcdir)/debug-info-data/** \
5 $(srcdir)/debug-info-data/.build-id/cd/**
1b83271b 6
cd1c5347
PP
7TESTS_BINDINGS =
8
4965530a
PP
9if ENABLE_PYTHON_PLUGINS
10SUBDIRS += python-plugin-provider
9e607e7c
JG
11endif
12
13if ENABLE_PYTHON_BINDINGS
14TESTS_BINDINGS += bindings/python/bt2/test_python_bt2 \
15 bindings/python/babeltrace/test_python_babeltrace
cd1c5347
PP
16endif
17
18TESTS_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
26TESTS_LIB = \
cd1c5347
PP
27 lib/test_ctf_writer_complete \
28 lib/test_bt_values \
56e18c4c 29 lib/test_trace_ir_ref \
5dcc1b0b 30 lib/test_graph_topo
cd1c5347 31
cd1c5347
PP
32if !ENABLE_BUILT_IN_PLUGINS
33TESTS_LIB += lib/test_plugin_complete
4965530a 34endif
cd1c5347 35
1805e0b4 36if ENABLE_PYTHON_BINDINGS
56e18c4c 37TESTS_LIB += lib/trace-ir/test_trace_ir
d461e009 38TESTS_LIB += lib/ctf-writer/test_ctf_writer
1805e0b4
PP
39endif
40
cd1c5347
PP
41TESTS_PLUGINS =
42
43if !ENABLE_BUILT_IN_PLUGINS
44TESTS_PLUGINS += plugins/test-utils-muxer-complete
d8992d68
PP
45
46if ENABLE_DEBUG_INFO
47if ENABLE_PYTHON_BINDINGS
48TESTS_PLUGINS += plugins/test_lttng_utils_debug_info
49endif
50endif
cd1c5347
PP
51endif
52
53if ENABLE_DEBUG_INFO
54TESTS_PLUGINS += \
55 plugins/test_dwarf_complete \
56 plugins/test_bin_info_complete
57endif
58
59TESTS_PYTHON_PLUGIN_PROVIDER =
60
9e607e7c 61if ENABLE_PYTHON_PLUGINS
cd1c5347
PP
62TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider
63endif
64
11d328de
PP
65LOG_DRIVER_FLAGS = '--merge'
66LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/config/tap-driver.sh
67
1805e0b4
PP
68TESTS = $(TESTS_BINDINGS) $(TESTS_CLI) $(TESTS_LIB) \
69 $(TESTS_PLUGINS) $(TESTS_PYTHON_PLUGIN_PROVIDER)
cd1c5347
PP
70
71define check_target
72check-$(1):
73 $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check
74endef
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.057323 seconds and 4 git commands to generate.