Commit | Line | Data |
---|---|---|
0235b0db MJ |
1 | # SPDX-License-Identifier: MIT |
2 | ||
05c03100 | 3 | AM_CPPFLAGS += -I$(top_srcdir)/tests/utils |
aa968dde | 4 | |
b93af5a2 SM |
5 | noinst_LTLIBRARIES = |
6 | ||
550b7a4e MJ |
7 | COMMON_TEST_LDADD = \ |
8 | $(top_builddir)/tests/utils/tap/libtap.la \ | |
d3148009 | 9 | $(top_builddir)/tests/utils/libtestcommon.la \ |
b93af5a2 | 10 | utils/liblib-utils.la \ |
ed615696 | 11 | $(top_builddir)/src/common/libcommon.la \ |
86ef6105 | 12 | $(top_builddir)/src/logging/liblogging.la |
21d04293 | 13 | |
1001baa5 | 14 | test_bt_values_SOURCES = test-bt-values.c |
d3148009 SM |
15 | test_bt_values_LDADD = $(COMMON_TEST_LDADD) \ |
16 | $(top_builddir)/src/lib/libbabeltrace2.la | |
17 | ||
1001baa5 | 18 | test_fields_bin_SOURCES = test-fields-bin.cpp |
08b4db41 | 19 | test_fields_bin_LDADD = $(COMMON_TEST_LDADD) \ |
402b595c SM |
20 | $(top_builddir)/src/lib/libbabeltrace2.la \ |
21 | $(top_builddir)/src/cpp-common/vendor/fmt/libfmt.la | |
08b4db41 | 22 | |
1001baa5 | 23 | test_bt_uuid_SOURCES = test-bt-uuid.c |
d3148009 | 24 | test_bt_uuid_LDADD = $(COMMON_TEST_LDADD) |
6162e6b7 | 25 | |
1001baa5 | 26 | test_trace_ir_ref_SOURCES = test-trace-ir-ref.c |
67d2ce02 | 27 | test_trace_ir_ref_LDADD = $(COMMON_TEST_LDADD) \ |
578e048b | 28 | $(top_builddir)/src/lib/libbabeltrace2.la \ |
d3148009 | 29 | $(top_builddir)/src/ctf-writer/libbabeltrace2-ctf-writer.la |
c9b3f44b | 30 | |
1001baa5 | 31 | test_graph_topo_SOURCES = test-graph-topo.c |
21d04293 | 32 | test_graph_topo_LDADD = $(COMMON_TEST_LDADD) \ |
d3148009 | 33 | $(top_builddir)/src/lib/libbabeltrace2.la |
21d04293 | 34 | |
1001baa5 | 35 | test_simple_sink_SOURCES = test-simple-sink.c |
8c20dd54 | 36 | test_simple_sink_LDADD = $(COMMON_TEST_LDADD) \ |
d3148009 | 37 | $(top_builddir)/src/lib/libbabeltrace2.la |
8c20dd54 | 38 | |
1001baa5 SM |
39 | test_remove_destruction_listener_in_destruction_listener_SOURCES = \ |
40 | test-remove-destruction-listener-in-destruction-listener.c | |
8bd8ac79 SM |
41 | test_remove_destruction_listener_in_destruction_listener_LDADD = \ |
42 | $(COMMON_TEST_LDADD) \ | |
43 | $(top_builddir)/src/lib/libbabeltrace2.la | |
44 | ||
8c20dd54 | 45 | noinst_PROGRAMS = \ |
7132b838 PP |
46 | test-bt-uuid \ |
47 | test-bt-values \ | |
48 | test-graph-topo \ | |
49 | test-fields-bin \ | |
50 | test-remove-destruction-listener-in-destruction-listener \ | |
51 | test-simple-sink \ | |
52 | test-trace-ir-ref | |
aa968dde | 53 | |
9ffc0257 | 54 | if !ENABLE_BUILT_IN_PLUGINS |
1a9956b9 | 55 | |
b93af5a2 SM |
56 | # test-plugins |
57 | ||
58 | noinst_PROGRAMS += test-plugins | |
9f5bdcae | 59 | test_plugins_SOURCES = test-plugins.c |
1a9956b9 SM |
60 | test_plugins_LDADD = \ |
61 | $(COMMON_TEST_LDADD) \ | |
62 | $(top_builddir)/src/lib/libbabeltrace2.la | |
63 | ||
b93af5a2 SM |
64 | noinst_LTLIBRARIES += test-plugins-plugins/plugin-minimal.la |
65 | test_plugins_plugins_plugin_minimal_la_SOURCES = \ | |
66 | test-plugins-plugins/minimal.c | |
67 | test_plugins_plugins_plugin_minimal_la_LDFLAGS = \ | |
68 | $(AM_LDFLAGS) \ | |
69 | $(LT_NO_UNDEFINED) \ | |
70 | -rpath / -avoid-version -module $(LD_NOTEXT) | |
71 | test_plugins_plugins_plugin_minimal_la_LIBADD = \ | |
72 | $(top_builddir)/src/lib/libbabeltrace2.la \ | |
73 | $(top_builddir)/src/common/libcommon.la \ | |
74 | $(top_builddir)/src/logging/liblogging.la | |
75 | ||
76 | noinst_LTLIBRARIES += test-plugins-plugins/plugin-sfs.la | |
77 | test_plugins_plugins_plugin_sfs_la_SOURCES = test-plugins-plugins/sfs.c | |
78 | test_plugins_plugins_plugin_sfs_la_LDFLAGS = \ | |
79 | $(AM_LDFLAGS) \ | |
80 | $(LT_NO_UNDEFINED) \ | |
81 | -rpath / -avoid-version -module $(LD_NOTEXT) | |
82 | test_plugins_plugins_plugin_sfs_la_LIBADD = \ | |
83 | $(top_builddir)/src/lib/libbabeltrace2.la \ | |
84 | $(top_builddir)/src/common/libcommon.la \ | |
85 | $(top_builddir)/src/logging/liblogging.la | |
86 | ||
87 | # test-plugin-init-fail | |
88 | ||
89 | noinst_PROGRAMS += test-plugin-init-fail | |
1a9956b9 SM |
90 | test_plugin_init_fail_SOURCES = test-plugin-init-fail.cpp |
91 | test_plugin_init_fail_LDADD = \ | |
92 | $(COMMON_TEST_LDADD) \ | |
93 | $(top_builddir)/src/cpp-common/vendor/fmt/libfmt.la \ | |
94 | $(top_builddir)/src/lib/libbabeltrace2.la | |
b93af5a2 SM |
95 | |
96 | noinst_LTLIBRARIES += test-plugin-init-fail-plugin/plugin-init-fail.la | |
97 | ||
98 | test_plugin_init_fail_plugin_plugin_init_fail_la_SOURCES = \ | |
99 | test-plugin-init-fail-plugin/plugin-init-fail.cpp | |
100 | test_plugin_init_fail_plugin_plugin_init_fail_la_LDFLAGS = \ | |
101 | $(AM_LDFLAGS) \ | |
102 | $(LT_NO_UNDEFINED) \ | |
103 | -rpath / -avoid-version -module $(LD_NOTEXT) | |
104 | test_plugin_init_fail_plugin_plugin_init_fail_la_LIBADD = \ | |
105 | $(top_builddir)/src/lib/libbabeltrace2.la | |
106 | ||
1b83271b | 107 | endif |
644e0364 | 108 | |
9f5bdcae | 109 | dist_check_SCRIPTS = test-plugins.sh test-fields.sh |
5d7e8359 | 110 | |
b93af5a2 SM |
111 | # utils |
112 | ||
113 | noinst_LTLIBRARIES += utils/liblib-utils.la | |
114 | utils_liblib_utils_la_SOURCES = \ | |
115 | utils/run-in.cpp \ | |
116 | utils/run-in.hpp | |
117 | ||
5d7e8359 PP |
118 | if HAVE_PYTHON |
119 | if DEV_MODE | |
b93af5a2 SM |
120 | |
121 | # conds | |
122 | ||
123 | noinst_PROGRAMS += conds/conds-triggers | |
124 | ||
125 | conds_conds_triggers_SOURCES = \ | |
126 | conds/conds-triggers.cpp \ | |
127 | conds/utils.cpp \ | |
128 | conds/utils.hpp | |
129 | ||
130 | conds_conds_triggers_LDADD = \ | |
131 | $(COMMON_TEST_LDADD) \ | |
6e3150f4 SM |
132 | $(top_builddir)/src/lib/libbabeltrace2.la \ |
133 | $(top_builddir)/src/cpp-common/vendor/fmt/libfmt.la | |
b93af5a2 SM |
134 | |
135 | dist_check_SCRIPTS += conds/test-conds.sh conds/test.py | |
136 | ||
5d7e8359 PP |
137 | endif |
138 | endif |