Fix: urcu-wait: add missing futex.h include
[urcu.git] / tests / unit / Makefile.am
... / ...
CommitLineData
1AM_CPPFLAGS += -I$(top_srcdir)/src -I$(top_srcdir)/tests/utils -I$(top_srcdir)/tests/common
2
3LOG_DRIVER_FLAGS = --merge --comments
4LOG_DRIVER = env AM_TAP_AWK='$(AWK)' \
5 URCU_TESTS_SRCDIR='$(abs_top_srcdir)/tests' \
6 URCU_TESTS_BUILDDIR='$(abs_top_builddir)/tests' \
7 $(SHELL) $(top_srcdir)/tests/utils/tap-driver.sh
8
9noinst_PROGRAMS = \
10 get_cpu_mask_from_sysfs \
11 get_cpu_mask_from_sysfs_cxx \
12 get_max_cpuid_from_sysfs \
13 get_max_cpuid_from_sysfs_cxx \
14 test_arch \
15 test_arch_cxx \
16 test_get_max_cpuid_from_mask \
17 test_get_max_cpuid_from_mask_cxx \
18 test_get_possible_cpus_array_len \
19 test_get_possible_cpus_array_len_cxx \
20 test_uatomic \
21 test_uatomic_cxx \
22 test_urcu_multiflavor \
23 test_urcu_multiflavor_cxx \
24 test_urcu_multiflavor_dynlink \
25 test_urcu_multiflavor_dynlink_cxx \
26 test_urcu_multiflavor_single_unit \
27 test_urcu_multiflavor_single_unit_cxx \
28 test_urcu_multiflavor_single_unit_dynlink \
29 test_urcu_multiflavor_single_unit_dynlink_cxx \
30 test_build \
31 test_build_cxx \
32 test_build_dynlink \
33 test_build_dynlink_cxx
34
35dist_noinst_SCRIPTS = \
36 test_get_cpu_mask_from_sysfs \
37 test_get_cpu_mask_from_sysfs_cxx \
38 test_get_max_cpuid_from_sysfs \
39 test_get_max_cpuid_from_sysfs_cxx
40
41TESTS = \
42 test_arch \
43 test_arch_cxx \
44 test_get_cpu_mask_from_sysfs \
45 test_get_cpu_mask_from_sysfs_cxx \
46 test_get_max_cpuid_from_mask \
47 test_get_max_cpuid_from_mask_cxx \
48 test_get_max_cpuid_from_sysfs \
49 test_get_max_cpuid_from_sysfs_cxx \
50 test_get_possible_cpus_array_len \
51 test_get_possible_cpus_array_len_cxx \
52 test_uatomic \
53 test_uatomic_cxx \
54 test_urcu_multiflavor \
55 test_urcu_multiflavor_cxx \
56 test_urcu_multiflavor_dynlink \
57 test_urcu_multiflavor_dynlink_cxx \
58 test_urcu_multiflavor_single_unit \
59 test_urcu_multiflavor_single_unit_cxx \
60 test_urcu_multiflavor_single_unit_dynlink \
61 test_urcu_multiflavor_single_unit_dynlink_cxx \
62 test_build \
63 test_build_cxx \
64 test_build_dynlink \
65 test_build_dynlink_cxx
66
67noinst_HEADERS = test_urcu_multiflavor.h
68
69URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la
70URCU_LIB=$(top_builddir)/src/liburcu.la
71URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la
72URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la
73URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la
74URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la
75URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la
76TAP_LIB=$(top_builddir)/tests/utils/libtap.a
77
78get_cpu_mask_from_sysfs_cxx_SOURCES = get_cpu_mask_from_sysfs_cxx.cpp
79get_cpu_mask_from_sysfs_SOURCES = get_cpu_mask_from_sysfs.c
80get_max_cpuid_from_sysfs_cxx_SOURCES = get_max_cpuid_from_sysfs_cxx.cpp
81get_max_cpuid_from_sysfs_SOURCES = get_max_cpuid_from_sysfs.c
82
83test_arch_SOURCES = test_arch.c
84test_arch_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
85
86test_arch_cxx_SOURCES = test_arch_cxx.cpp
87test_arch_cxx_LDADD = $(URCU_COMMO_LIB) $(TAP_LIB)
88
89test_get_max_cpuid_from_mask_SOURCES = test_get_max_cpuid_from_mask.c
90test_get_max_cpuid_from_mask_LDADD = $(TAP_LIB)
91
92test_get_max_cpuid_from_mask_cxx_SOURCES = test_get_max_cpuid_from_mask_cxx.cpp
93test_get_max_cpuid_from_mask_cxx_LDADD = $(TAP_LIB)
94
95test_get_possible_cpus_array_len_SOURCES = test_get_possible_cpus_array_len.c
96test_get_possible_cpus_array_len_LDADD = $(TAP_LIB)
97
98test_get_possible_cpus_array_len_cxx_SOURCES = test_get_possible_cpus_array_len_cxx.cpp
99test_get_possible_cpus_array_len_cxx_LDADD = $(TAP_LIB)
100
101test_uatomic_SOURCES = test_uatomic.c
102test_uatomic_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
103
104test_uatomic_cxx_SOURCES = test_uatomic_cxx.cpp
105test_uatomic_cxx_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
106
107test_urcu_multiflavor_SOURCES = test_urcu_multiflavor.c \
108 test_urcu_multiflavor-memb.c \
109 test_urcu_multiflavor-mb.c \
110 test_urcu_multiflavor-signal.c \
111 test_urcu_multiflavor-qsbr.c \
112 test_urcu_multiflavor-bp.c
113test_urcu_multiflavor_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
114 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
115
116test_urcu_multiflavor_cxx_SOURCES = test_urcu_multiflavor_cxx.cpp \
117 test_urcu_multiflavor-memb_cxx.cpp \
118 test_urcu_multiflavor-mb_cxx.cpp \
119 test_urcu_multiflavor-signal_cxx.cpp \
120 test_urcu_multiflavor-qsbr_cxx.cpp \
121 test_urcu_multiflavor-bp_cxx.cpp
122test_urcu_multiflavor_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
123 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
124
125test_urcu_multiflavor_dynlink_SOURCES = test_urcu_multiflavor.c \
126 test_urcu_multiflavor-memb.c \
127 test_urcu_multiflavor-mb.c \
128 test_urcu_multiflavor-signal.c \
129 test_urcu_multiflavor-qsbr.c \
130 test_urcu_multiflavor-bp.c
131test_urcu_multiflavor_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
132test_urcu_multiflavor_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
133 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
134
135test_urcu_multiflavor_dynlink_cxx_SOURCES = test_urcu_multiflavor_cxx.cpp \
136 test_urcu_multiflavor-memb_cxx.cpp \
137 test_urcu_multiflavor-mb_cxx.cpp \
138 test_urcu_multiflavor-signal_cxx.cpp \
139 test_urcu_multiflavor-qsbr_cxx.cpp \
140 test_urcu_multiflavor-bp_cxx.cpp
141test_urcu_multiflavor_dynlink_cxx_CXXFLAGS = -DDYNAMIC_LINK_TEST $(AM_CXXFLAGS)
142test_urcu_multiflavor_dynlink_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
143 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
144
145test_urcu_multiflavor_single_unit_SOURCES = test_urcu_multiflavor_single_unit.c
146test_urcu_multiflavor_single_unit_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
147 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
148
149test_urcu_multiflavor_single_unit_cxx_SOURCES = test_urcu_multiflavor_single_unit_cxx.cpp
150test_urcu_multiflavor_single_unit_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
151 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
152
153test_urcu_multiflavor_single_unit_dynlink_SOURCES = test_urcu_multiflavor_single_unit.c
154test_urcu_multiflavor_single_unit_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
155test_urcu_multiflavor_single_unit_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
156 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
157
158test_urcu_multiflavor_single_unit_dynlink_cxx_SOURCES = test_urcu_multiflavor_single_unit_cxx.cpp
159test_urcu_multiflavor_single_unit_dynlink_cxx_CXXFLAGS = -DDYNAMIC_LINK_TEST $(AM_CXXFLAGS)
160test_urcu_multiflavor_single_unit_dynlink_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
161 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
162
163test_build_SOURCES = \
164 test_build.c
165test_build_LDADD = $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB)
166
167test_build_cxx_SOURCES = \
168 test_build_cxx.cpp
169test_build_cxx_LDADD = $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB)
170
171test_build_dynlink_SOURCES = \
172 test_build.c
173test_build_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
174test_build_dynlink_LDADD = $(URCU_LIB) $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB)
175
176test_build_dynlink_cxx_SOURCES = \
177 test_build_cxx.cpp
178test_build_dynlink_cxx_CXXFLAGS = -DDYNAMIC_LINK_TEST $(AM_CXXFLAGS)
179test_build_dynlink_cxx_LDADD = $(URCU_LIB) $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB)
This page took 0.023673 seconds and 4 git commands to generate.