1 AM_CPPFLAGS += -I$(top_srcdir)/src -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common
3 LOG_DRIVER_FLAGS = --merge --comments
4 LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
5 $(top_srcdir)/tests/utils/tap-driver.sh
12 test_urcu_multiflavor \
13 test_urcu_multiflavor_cxx \
14 test_urcu_multiflavor_dynlink \
15 test_urcu_multiflavor_dynlink_cxx \
16 test_urcu_multiflavor_single_unit \
17 test_urcu_multiflavor_single_unit_cxx \
18 test_urcu_multiflavor_single_unit_dynlink \
19 test_urcu_multiflavor_single_unit_dynlink_cxx \
23 test_build_dynlink_cxx
25 TESTS = $(noinst_PROGRAMS)
27 noinst_HEADERS = test_urcu_multiflavor.h
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
36 TAP_LIB=$(top_builddir)/tests/utils/libtap.a
38 test_arch_SOURCES = test_arch.c
39 test_arch_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
41 test_arch_cxx_SOURCES = test_arch_cxx.cpp
42 test_arch_cxx_LDADD = $(URCU_COMMO_LIB) $(TAP_LIB)
44 test_uatomic_SOURCES = test_uatomic.c
45 test_uatomic_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
47 test_uatomic_cxx_SOURCES = test_uatomic_cxx.cpp
48 test_uatomic_cxx_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
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) \
57 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
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)
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) \
76 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
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)
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)
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)
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)
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)
106 test_build_SOURCES = \
108 test_build_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
110 test_build_cxx_SOURCES = \
112 test_build_cxx_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
114 test_build_dynlink_SOURCES = \
116 test_build_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
117 test_build_dynlink_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
119 test_build_dynlink_cxx_SOURCES = \
121 test_build_dynlink_cxx_CXXFLAGS = -DDYNAMIC_LINK_TEST $(AM_CXXFLAGS)
122 test_build_dynlink_cxx_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
125 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
126 for script in $(SCRIPT_LIST); do \
127 cp -f $(srcdir)/$$script $(builddir); \
132 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
133 for script in $(SCRIPT_LIST); do \
134 rm -f $(builddir)/$$script; \