unit tests: test wfcqueue, wfstack, lfstack empty check functions in C++
[urcu.git] / tests / unit / Makefile.am
1 AM_CPPFLAGS += -I$(top_srcdir)/src -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common
2
3 LOG_DRIVER_FLAGS = --merge --comments
4 LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
5 $(top_srcdir)/tests/utils/tap-driver.sh
6
7 noinst_PROGRAMS = \
8 test_arch \
9 test_arch_cxx \
10 test_uatomic \
11 test_uatomic_cxx \
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 \
20 test_build \
21 test_build_cxx \
22 test_build_dynlink \
23 test_build_dynlink_cxx
24
25 TESTS = $(noinst_PROGRAMS)
26
27 noinst_HEADERS = test_urcu_multiflavor.h
28
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
37
38 test_arch_SOURCES = test_arch.c
39 test_arch_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
40
41 test_arch_cxx_SOURCES = test_arch_cxx.cpp
42 test_arch_cxx_LDADD = $(URCU_COMMO_LIB) $(TAP_LIB)
43
44 test_uatomic_SOURCES = test_uatomic.c
45 test_uatomic_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
46
47 test_uatomic_cxx_SOURCES = test_uatomic_cxx.cpp
48 test_uatomic_cxx_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
49
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)
58
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
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)
77
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
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
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
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
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
106 test_build_SOURCES = \
107 test_build.c
108 test_build_LDADD = $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB)
109
110 test_build_cxx_SOURCES = \
111 test_build_cxx.cpp
112 test_build_cxx_LDADD = $(URCU_COMMON_LIB) $(URCU_CDS_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) $(URCU_CDS_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) $(URCU_CDS_LIB) $(TAP_LIB)
123
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
137
This page took 0.056282 seconds and 4 git commands to generate.