Commit | Line | Data |
---|---|---|
01956342 | 1 | AM_CPPFLAGS += -I$(top_srcdir)/src -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common |
1b387491 | 2 | |
03c5782e MJ |
3 | LOG_DRIVER_FLAGS = --merge --comments |
4 | LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \ | |
78d75878 | 5 | $(top_srcdir)/tests/utils/tap-driver.sh |
f5ab766e | 6 | |
bbc9abdc MJ |
7 | noinst_PROGRAMS = \ |
8 | test_arch \ | |
153b081a | 9 | test_arch_cxx \ |
bbc9abdc | 10 | test_uatomic \ |
153b081a | 11 | test_uatomic_cxx \ |
f5ab766e | 12 | test_urcu_multiflavor \ |
153b081a | 13 | test_urcu_multiflavor_cxx \ |
042e8cfe | 14 | test_urcu_multiflavor_dynlink \ |
153b081a | 15 | test_urcu_multiflavor_dynlink_cxx \ |
042e8cfe | 16 | test_urcu_multiflavor_single_unit \ |
153b081a SM |
17 | test_urcu_multiflavor_single_unit_cxx \ |
18 | test_urcu_multiflavor_single_unit_dynlink \ | |
28757437 SM |
19 | test_urcu_multiflavor_single_unit_dynlink_cxx \ |
20 | test_build \ | |
21 | test_build_cxx \ | |
22 | test_build_dynlink \ | |
23 | test_build_dynlink_cxx | |
f5ab766e | 24 | |
03c5782e | 25 | TESTS = $(noinst_PROGRAMS) |
1b387491 | 26 | |
f5ab766e MD |
27 | noinst_HEADERS = test_urcu_multiflavor.h |
28 | ||
6893800a MJ |
29 | URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la |
30 | URCU_LIB=$(top_builddir)/src/liburcu.la | |
31 | URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la | |
32 | URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la | |
33 | URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la | |
34 | URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la | |
35 | URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la | |
1b387491 | 36 | TAP_LIB=$(top_builddir)/tests/utils/libtap.a |
f5ab766e | 37 | |
bbc9abdc MJ |
38 | test_arch_SOURCES = test_arch.c |
39 | test_arch_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB) | |
40 | ||
153b081a SM |
41 | test_arch_cxx_SOURCES = test_arch_cxx.cpp |
42 | test_arch_cxx_LDADD = $(URCU_COMMO_LIB) $(TAP_LIB) | |
43 | ||
c14384c0 | 44 | test_uatomic_SOURCES = test_uatomic.c |
1b387491 | 45 | test_uatomic_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB) |
f5ab766e | 46 | |
153b081a SM |
47 | test_uatomic_cxx_SOURCES = test_uatomic_cxx.cpp |
48 | test_uatomic_cxx_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB) | |
49 | ||
f5ab766e MD |
50 | test_urcu_multiflavor_SOURCES = test_urcu_multiflavor.c \ |
51 | test_urcu_multiflavor-memb.c \ | |
52 | test_urcu_multiflavor-mb.c \ | |
53 | test_urcu_multiflavor-signal.c \ | |
54 | test_urcu_multiflavor-qsbr.c \ | |
55 | test_urcu_multiflavor-bp.c | |
56 | test_urcu_multiflavor_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ | |
1b387491 | 57 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
f5ab766e | 58 | |
153b081a SM |
59 | test_urcu_multiflavor_cxx_SOURCES = test_urcu_multiflavor_cxx.cpp \ |
60 | test_urcu_multiflavor-memb_cxx.cpp \ | |
61 | test_urcu_multiflavor-mb_cxx.cpp \ | |
62 | test_urcu_multiflavor-signal_cxx.cpp \ | |
63 | test_urcu_multiflavor-qsbr_cxx.cpp \ | |
64 | test_urcu_multiflavor-bp_cxx.cpp | |
65 | test_urcu_multiflavor_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ | |
66 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) | |
67 | ||
f5ab766e MD |
68 | test_urcu_multiflavor_dynlink_SOURCES = test_urcu_multiflavor.c \ |
69 | test_urcu_multiflavor-memb.c \ | |
70 | test_urcu_multiflavor-mb.c \ | |
71 | test_urcu_multiflavor-signal.c \ | |
72 | test_urcu_multiflavor-qsbr.c \ | |
73 | test_urcu_multiflavor-bp.c | |
74 | test_urcu_multiflavor_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) | |
75 | test_urcu_multiflavor_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ | |
1b387491 MJ |
76 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) |
77 | ||
153b081a SM |
78 | test_urcu_multiflavor_dynlink_cxx_SOURCES = test_urcu_multiflavor_cxx.cpp \ |
79 | test_urcu_multiflavor-memb_cxx.cpp \ | |
80 | test_urcu_multiflavor-mb_cxx.cpp \ | |
81 | test_urcu_multiflavor-signal_cxx.cpp \ | |
82 | test_urcu_multiflavor-qsbr_cxx.cpp \ | |
83 | test_urcu_multiflavor-bp_cxx.cpp | |
84 | test_urcu_multiflavor_dynlink_cxx_CXXFLAGS = -DDYNAMIC_LINK_TEST $(AM_CXXFLAGS) | |
85 | test_urcu_multiflavor_dynlink_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ | |
86 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) | |
87 | ||
042e8cfe MD |
88 | test_urcu_multiflavor_single_unit_SOURCES = test_urcu_multiflavor_single_unit.c |
89 | test_urcu_multiflavor_single_unit_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ | |
90 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) | |
91 | ||
153b081a SM |
92 | test_urcu_multiflavor_single_unit_cxx_SOURCES = test_urcu_multiflavor_single_unit_cxx.cpp |
93 | test_urcu_multiflavor_single_unit_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ | |
94 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) | |
95 | ||
042e8cfe MD |
96 | test_urcu_multiflavor_single_unit_dynlink_SOURCES = test_urcu_multiflavor_single_unit.c |
97 | test_urcu_multiflavor_single_unit_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) | |
98 | test_urcu_multiflavor_single_unit_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ | |
99 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) | |
100 | ||
153b081a SM |
101 | test_urcu_multiflavor_single_unit_dynlink_cxx_SOURCES = test_urcu_multiflavor_single_unit_cxx.cpp |
102 | test_urcu_multiflavor_single_unit_dynlink_cxx_CXXFLAGS = -DDYNAMIC_LINK_TEST $(AM_CXXFLAGS) | |
103 | test_urcu_multiflavor_single_unit_dynlink_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \ | |
104 | $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB) | |
105 | ||
28757437 SM |
106 | test_build_SOURCES = \ |
107 | test_build.c | |
108 | test_build_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB) | |
109 | ||
110 | test_build_cxx_SOURCES = \ | |
111 | test_build_cxx.cpp | |
112 | test_build_cxx_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB) | |
113 | ||
114 | test_build_dynlink_SOURCES = \ | |
115 | test_build.c | |
116 | test_build_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS) | |
117 | test_build_dynlink_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB) | |
118 | ||
119 | test_build_dynlink_cxx_SOURCES = \ | |
120 | test_build_cxx.cpp | |
121 | test_build_dynlink_cxx_CXXFLAGS = -DDYNAMIC_LINK_TEST $(AM_CXXFLAGS) | |
122 | test_build_dynlink_cxx_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB) | |
123 | ||
1b387491 MJ |
124 | all-local: |
125 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
126 | for script in $(SCRIPT_LIST); do \ | |
127 | cp -f $(srcdir)/$$script $(builddir); \ | |
128 | done; \ | |
129 | fi | |
130 | ||
131 | clean-local: | |
132 | @if [ x"$(srcdir)" != x"$(builddir)" ]; then \ | |
133 | for script in $(SCRIPT_LIST); do \ | |
134 | rm -f $(builddir)/$$script; \ | |
135 | done; \ | |
136 | fi | |
f5ab766e | 137 |