Commit | Line | Data |
---|---|---|
0235b0db MJ |
1 | # SPDX-License-Identifier: MIT |
2 | ||
484a3024 | 3 | SUBDIRS = utils |
4c3453a1 | 4 | |
05c03100 | 5 | AM_CPPFLAGS += -I$(top_srcdir)/tests/utils |
aa968dde | 6 | |
550b7a4e MJ |
7 | COMMON_TEST_LDADD = \ |
8 | $(top_builddir)/tests/utils/tap/libtap.la \ | |
d3148009 | 9 | $(top_builddir)/tests/utils/libtestcommon.la \ |
08b4db41 | 10 | $(top_builddir)/tests/lib/utils/liblib-utils.la \ |
3b3873c8 | 11 | $(top_builddir)/src/common/libbabeltrace2-common.la \ |
86ef6105 | 12 | $(top_builddir)/src/logging/liblogging.la |
21d04293 | 13 | |
d3148009 SM |
14 | test_bt_values_LDADD = $(COMMON_TEST_LDADD) \ |
15 | $(top_builddir)/src/lib/libbabeltrace2.la | |
16 | ||
08b4db41 SM |
17 | test_fields_bin_LDADD = $(COMMON_TEST_LDADD) \ |
18 | $(top_builddir)/src/lib/libbabeltrace2.la | |
19 | ||
d3148009 | 20 | test_bt_uuid_LDADD = $(COMMON_TEST_LDADD) |
6162e6b7 | 21 | |
67d2ce02 | 22 | test_trace_ir_ref_LDADD = $(COMMON_TEST_LDADD) \ |
578e048b | 23 | $(top_builddir)/src/lib/libbabeltrace2.la \ |
d3148009 | 24 | $(top_builddir)/src/ctf-writer/libbabeltrace2-ctf-writer.la |
c9b3f44b | 25 | |
21d04293 | 26 | test_graph_topo_LDADD = $(COMMON_TEST_LDADD) \ |
d3148009 | 27 | $(top_builddir)/src/lib/libbabeltrace2.la |
21d04293 | 28 | |
8c20dd54 | 29 | test_simple_sink_LDADD = $(COMMON_TEST_LDADD) \ |
d3148009 | 30 | $(top_builddir)/src/lib/libbabeltrace2.la |
8c20dd54 | 31 | |
8bd8ac79 SM |
32 | test_remove_destruction_listener_in_destruction_listener_LDADD = \ |
33 | $(COMMON_TEST_LDADD) \ | |
34 | $(top_builddir)/src/lib/libbabeltrace2.la | |
35 | ||
8c20dd54 | 36 | noinst_PROGRAMS = \ |
8c20dd54 | 37 | test_bt_uuid \ |
8bd8ac79 | 38 | test_bt_values \ |
8c20dd54 | 39 | test_graph_topo \ |
08b4db41 | 40 | test_fields_bin \ |
8bd8ac79 SM |
41 | test_remove_destruction_listener_in_destruction_listener \ |
42 | test_simple_sink \ | |
43 | test_trace_ir_ref | |
aa968dde | 44 | |
21d04293 | 45 | test_bt_values_SOURCES = test_bt_values.c |
08b4db41 | 46 | test_fields_bin_SOURCES = test_fields_bin.cpp |
8c20dd54 | 47 | test_simple_sink_SOURCES = test_simple_sink.c |
6162e6b7 | 48 | test_bt_uuid_SOURCES = test_bt_uuid.c |
56e18c4c | 49 | test_trace_ir_ref_SOURCES = test_trace_ir_ref.c |
21d04293 | 50 | test_graph_topo_SOURCES = test_graph_topo.c |
8bd8ac79 SM |
51 | test_remove_destruction_listener_in_destruction_listener_SOURCES = \ |
52 | test_remove_destruction_listener_in_destruction_listener.c | |
aa968dde | 53 | |
9ffc0257 | 54 | if !ENABLE_BUILT_IN_PLUGINS |
644e0364 MJ |
55 | noinst_PROGRAMS += plugin |
56 | plugin_LDADD = $(COMMON_TEST_LDADD) \ | |
d3148009 | 57 | $(top_builddir)/src/lib/libbabeltrace2.la |
644e0364 | 58 | plugin_SOURCES = plugin.c |
1b83271b PP |
59 | SUBDIRS += test-plugin-plugins |
60 | endif | |
644e0364 | 61 | |
08b4db41 | 62 | dist_check_SCRIPTS = test_plugin test_fields |
5d7e8359 PP |
63 | |
64 | if HAVE_PYTHON | |
65 | if DEV_MODE | |
66 | SUBDIRS += conds | |
67 | endif | |
68 | endif |