Fix: Use %lu rather than %ld to print count
[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)' \
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
9 noinst_PROGRAMS = \
10 test_arch \
11 test_arch_cxx \
12 test_uatomic \
13 test_uatomic_cxx \
14 test_urcu_multiflavor \
15 test_urcu_multiflavor_cxx \
16 test_urcu_multiflavor_dynlink \
17 test_urcu_multiflavor_dynlink_cxx \
18 test_urcu_multiflavor_single_unit \
19 test_urcu_multiflavor_single_unit_cxx \
20 test_urcu_multiflavor_single_unit_dynlink \
21 test_urcu_multiflavor_single_unit_dynlink_cxx \
22 test_build \
23 test_build_cxx \
24 test_build_dynlink \
25 test_build_dynlink_cxx
26
27 TESTS = $(noinst_PROGRAMS)
28
29 noinst_HEADERS = test_urcu_multiflavor.h
30
31 URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la
32 URCU_LIB=$(top_builddir)/src/liburcu.la
33 URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la
34 URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la
35 URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la
36 URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la
37 URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la
38 TAP_LIB=$(top_builddir)/tests/utils/libtap.a
39
40 test_arch_SOURCES = test_arch.c
41 test_arch_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
42
43 test_arch_cxx_SOURCES = test_arch_cxx.cpp
44 test_arch_cxx_LDADD = $(URCU_COMMO_LIB) $(TAP_LIB)
45
46 test_uatomic_SOURCES = test_uatomic.c
47 test_uatomic_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
48
49 test_uatomic_cxx_SOURCES = test_uatomic_cxx.cpp
50 test_uatomic_cxx_LDADD = $(URCU_COMMON_LIB) $(TAP_LIB)
51
52 test_urcu_multiflavor_SOURCES = test_urcu_multiflavor.c \
53 test_urcu_multiflavor-memb.c \
54 test_urcu_multiflavor-mb.c \
55 test_urcu_multiflavor-signal.c \
56 test_urcu_multiflavor-qsbr.c \
57 test_urcu_multiflavor-bp.c
58 test_urcu_multiflavor_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
59 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
60
61 test_urcu_multiflavor_cxx_SOURCES = test_urcu_multiflavor_cxx.cpp \
62 test_urcu_multiflavor-memb_cxx.cpp \
63 test_urcu_multiflavor-mb_cxx.cpp \
64 test_urcu_multiflavor-signal_cxx.cpp \
65 test_urcu_multiflavor-qsbr_cxx.cpp \
66 test_urcu_multiflavor-bp_cxx.cpp
67 test_urcu_multiflavor_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
68 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
69
70 test_urcu_multiflavor_dynlink_SOURCES = test_urcu_multiflavor.c \
71 test_urcu_multiflavor-memb.c \
72 test_urcu_multiflavor-mb.c \
73 test_urcu_multiflavor-signal.c \
74 test_urcu_multiflavor-qsbr.c \
75 test_urcu_multiflavor-bp.c
76 test_urcu_multiflavor_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
77 test_urcu_multiflavor_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
78 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
79
80 test_urcu_multiflavor_dynlink_cxx_SOURCES = test_urcu_multiflavor_cxx.cpp \
81 test_urcu_multiflavor-memb_cxx.cpp \
82 test_urcu_multiflavor-mb_cxx.cpp \
83 test_urcu_multiflavor-signal_cxx.cpp \
84 test_urcu_multiflavor-qsbr_cxx.cpp \
85 test_urcu_multiflavor-bp_cxx.cpp
86 test_urcu_multiflavor_dynlink_cxx_CXXFLAGS = -DDYNAMIC_LINK_TEST $(AM_CXXFLAGS)
87 test_urcu_multiflavor_dynlink_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
88 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
89
90 test_urcu_multiflavor_single_unit_SOURCES = test_urcu_multiflavor_single_unit.c
91 test_urcu_multiflavor_single_unit_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
92 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
93
94 test_urcu_multiflavor_single_unit_cxx_SOURCES = test_urcu_multiflavor_single_unit_cxx.cpp
95 test_urcu_multiflavor_single_unit_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
96 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
97
98 test_urcu_multiflavor_single_unit_dynlink_SOURCES = test_urcu_multiflavor_single_unit.c
99 test_urcu_multiflavor_single_unit_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
100 test_urcu_multiflavor_single_unit_dynlink_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
101 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
102
103 test_urcu_multiflavor_single_unit_dynlink_cxx_SOURCES = test_urcu_multiflavor_single_unit_cxx.cpp
104 test_urcu_multiflavor_single_unit_dynlink_cxx_CXXFLAGS = -DDYNAMIC_LINK_TEST $(AM_CXXFLAGS)
105 test_urcu_multiflavor_single_unit_dynlink_cxx_LDADD = $(URCU_LIB) $(URCU_MB_LIB) \
106 $(URCU_SIGNAL_LIB) $(URCU_QSBR_LIB) $(URCU_BP_LIB) $(TAP_LIB)
107
108 test_build_SOURCES = \
109 test_build.c
110 test_build_LDADD = $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB)
111
112 test_build_cxx_SOURCES = \
113 test_build_cxx.cpp
114 test_build_cxx_LDADD = $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB)
115
116 test_build_dynlink_SOURCES = \
117 test_build.c
118 test_build_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
119 test_build_dynlink_LDADD = $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB)
120
121 test_build_dynlink_cxx_SOURCES = \
122 test_build_cxx.cpp
123 test_build_dynlink_cxx_CXXFLAGS = -DDYNAMIC_LINK_TEST $(AM_CXXFLAGS)
124 test_build_dynlink_cxx_LDADD = $(URCU_COMMON_LIB) $(URCU_CDS_LIB) $(TAP_LIB)
This page took 0.045874 seconds and 4 git commands to generate.