| 1 | SUBDIRS = utils lib plugins |
| 2 | |
| 3 | # Directories added to EXTRA_DIST will be recursively copied to the distribution. |
| 4 | EXTRA_DIST = $(srcdir)/ctf-traces \ |
| 5 | $(srcdir)/debug-info-data \ |
| 6 | bindings/python/bt2/.coveragerc |
| 7 | |
| 8 | dist_check_SCRIPTS = \ |
| 9 | bindings/python/babeltrace/test_ctf_writer_empty_packet.py \ |
| 10 | bindings/python/babeltrace/test_ctf_writer_no_packet_context.py \ |
| 11 | bindings/python/babeltrace/test_ctf_writer.py \ |
| 12 | bindings/python/bt2/test_clock_class_priority_map.py \ |
| 13 | bindings/python/bt2/test_clock_class.py \ |
| 14 | bindings/python/bt2/test_component_class.py \ |
| 15 | bindings/python/bt2/test_component.py \ |
| 16 | bindings/python/bt2/test_connection.py \ |
| 17 | bindings/python/bt2/test_ctf_writer_clock.py \ |
| 18 | bindings/python/bt2/test_event_class.py \ |
| 19 | bindings/python/bt2/test_event.py \ |
| 20 | bindings/python/bt2/test_field_class.py \ |
| 21 | bindings/python/bt2/test_field.py \ |
| 22 | bindings/python/bt2/test_graph.py \ |
| 23 | bindings/python/bt2/test_message_iterator.py \ |
| 24 | bindings/python/bt2/test_message.py \ |
| 25 | bindings/python/bt2/test_packet.py \ |
| 26 | bindings/python/bt2/test_plugin.py \ |
| 27 | bindings/python/bt2/test_port.py \ |
| 28 | bindings/python/bt2/test_query_executor.py \ |
| 29 | bindings/python/bt2/test_stream_class.py \ |
| 30 | bindings/python/bt2/test_stream.py \ |
| 31 | bindings/python/bt2/test_trace_collection_message_iterator.py \ |
| 32 | bindings/python/bt2/test_trace.py \ |
| 33 | bindings/python/bt2/test_value.py \ |
| 34 | bindings/python/bt2/utils.py \ |
| 35 | python-plugin-provider/bt_plugin_test_python_plugin_provider.py \ |
| 36 | python-plugin-provider/test_python_plugin_provider.py |
| 37 | |
| 38 | TESTS_BINDINGS = |
| 39 | |
| 40 | if ENABLE_PYTHON_BINDINGS |
| 41 | TESTS_BINDINGS += bindings/python/bt2/test_python_bt2 \ |
| 42 | bindings/python/babeltrace/test_python_babeltrace |
| 43 | endif |
| 44 | |
| 45 | TESTS_CLI = \ |
| 46 | cli/test_trace_read \ |
| 47 | cli/test_packet_seq_num \ |
| 48 | cli/test_convert_args \ |
| 49 | cli/test_intersection \ |
| 50 | cli/test_trace_copy \ |
| 51 | cli/test_trimmer |
| 52 | |
| 53 | TESTS_LIB = \ |
| 54 | lib/test_bitfield \ |
| 55 | lib/test_bt_values \ |
| 56 | lib/test_ctf_writer_complete \ |
| 57 | lib/test_graph_topo \ |
| 58 | lib/test_trace_ir_ref |
| 59 | |
| 60 | if !ENABLE_BUILT_IN_PLUGINS |
| 61 | TESTS_LIB += lib/test_plugin_complete |
| 62 | endif |
| 63 | |
| 64 | if ENABLE_PYTHON_BINDINGS |
| 65 | TESTS_LIB += lib/trace-ir/test_trace_ir |
| 66 | TESTS_LIB += lib/ctf-writer/test_ctf_writer |
| 67 | endif |
| 68 | |
| 69 | TESTS_PLUGINS = |
| 70 | |
| 71 | if !ENABLE_BUILT_IN_PLUGINS |
| 72 | if ENABLE_PYTHON_BINDINGS |
| 73 | TESTS_PLUGINS += plugins/ctf/test_ctf_plugin |
| 74 | |
| 75 | if ENABLE_DEBUG_INFO |
| 76 | TESTS_PLUGINS += plugins/test_lttng_utils_debug_info |
| 77 | endif |
| 78 | endif |
| 79 | endif |
| 80 | |
| 81 | if ENABLE_DEBUG_INFO |
| 82 | TESTS_PLUGINS += \ |
| 83 | plugins/test_dwarf_i386-linux-gnu \ |
| 84 | plugins/test_dwarf_powerpc-linux-gnu \ |
| 85 | plugins/test_dwarf_powerpc64le-linux-gnu \ |
| 86 | plugins/test_dwarf_x86_64-linux-gnu \ |
| 87 | plugins/test_bin_info_i386-linux-gnu \ |
| 88 | plugins/test_bin_info_powerpc-linux-gnu \ |
| 89 | plugins/test_bin_info_powerpc64le-linux-gnu \ |
| 90 | plugins/test_bin_info_x86_64-linux-gnu |
| 91 | endif |
| 92 | |
| 93 | TESTS_PYTHON_PLUGIN_PROVIDER = |
| 94 | |
| 95 | if ENABLE_PYTHON_PLUGINS |
| 96 | TESTS_PYTHON_PLUGIN_PROVIDER += python-plugin-provider/test_python_plugin_provider |
| 97 | endif |
| 98 | |
| 99 | LOG_DRIVER_FLAGS = '--merge' |
| 100 | LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/config/tap-driver.sh |
| 101 | |
| 102 | TESTS = $(TESTS_BINDINGS) $(TESTS_CLI) $(TESTS_LIB) \ |
| 103 | $(TESTS_PLUGINS) $(TESTS_PYTHON_PLUGIN_PROVIDER) |
| 104 | |
| 105 | define check_target |
| 106 | check-$(1): |
| 107 | $(MAKE) $(AM_MAKEFLAGS) TESTS="$2" check |
| 108 | endef |
| 109 | |
| 110 | $(eval $(call check_target,bindings,$(TESTS_BINDINGS))) |
| 111 | $(eval $(call check_target,cli,$(TESTS_CLI))) |
| 112 | $(eval $(call check_target,lib,$(TESTS_LIB))) |
| 113 | $(eval $(call check_target,plugins,$(TESTS_PLUGINS))) |
| 114 | $(eval $(call check_target,python-plugin-provider,$(TESTS_PYTHON_PLUGIN_PROVIDER))) |