wfqueue: provide API for caller-locked dequeue
[urcu.git] / tests / Makefile.am
CommitLineData
48d848c7 1AM_LDFLAGS=-lpthread
c96a3726 2AM_CFLAGS=-I$(top_srcdir) -I$(top_builddir)
48d848c7
PMF
3
4noinst_PROGRAMS = test_urcu test_urcu_dynamic_link test_urcu_timing \
fdf01eed 5 test_urcu_signal test_urcu_signal_dynamic_link test_urcu_signal_timing \
48d848c7 6 test_rwlock_timing test_rwlock test_perthreadlock_timing \
fdf01eed
MD
7 test_perthreadlock test_urcu_yield test_urcu_signal_yield test_urcu_mb \
8 test_qsbr_timing test_qsbr rcutorture_urcu rcutorture_urcu_signal \
1a43bbd8 9 rcutorture_urcu_mb rcutorture_urcu_bp rcutorture_qsbr \
fdf01eed
MD
10 test_mutex test_looplen test_urcu_gc test_urcu_signal_gc \
11 test_urcu_lgc \
12 test_urcu_mb_gc test_qsbr_gc test_qsbr_lgc test_urcu_signal_lgc \
13 test_urcu_mb_lgc test_qsbr_dynamic_link test_urcu_defer \
48d848c7 14 test_uatomic test_urcu_assign test_urcu_assign_dynamic_link \
453629a9 15 test_urcu_bp test_urcu_bp_dynamic_link test_cycles_per_loop \
4d001e96
MD
16 test_urcu_lfq test_urcu_wfq test_urcu_lfs test_urcu_wfs \
17 test_urcu_wfq_dynlink
48d848c7
PMF
18noinst_HEADERS = rcutorture.h
19
7d413817 20if COMPAT_ARCH
0854ccff 21COMPAT=$(top_srcdir)/compat_arch_@ARCHTYPE@.c
7d413817
MD
22else
23COMPAT=
24endif
25
0854ccff
MD
26if COMPAT_FUTEX
27COMPAT+=$(top_srcdir)/compat_futex.c
28endif
29
fdf01eed
MD
30URCU=$(top_srcdir)/urcu.c $(top_srcdir)/urcu-pointer.c $(COMPAT)
31URCU_QSBR=$(top_srcdir)/urcu-qsbr.c $(top_srcdir)/urcu-pointer.c $(COMPAT)
02be5561 32# URCU_MB uses urcu.c but -DRCU_MB must be defined
41dd620f 33URCU_MB=$(top_srcdir)/urcu.c $(top_srcdir)/urcu-pointer.c $(COMPAT)
fdf01eed
MD
34# URCU_SIGNAL uses urcu.c but -DRCU_SIGNAL must be defined
35URCU_SIGNAL=$(top_srcdir)/urcu.c $(top_srcdir)/urcu-pointer.c $(COMPAT)
41dd620f 36URCU_BP=$(top_srcdir)/urcu-bp.c $(top_srcdir)/urcu-pointer.c $(COMPAT)
fdf01eed 37URCU_DEFER=$(top_srcdir)/urcu.c $(top_srcdir)/urcu-defer.c $(top_srcdir)/urcu-pointer.c $(COMPAT)
48d848c7 38
fdf01eed
MD
39URCU_LIB=$(top_builddir)/liburcu.la
40URCU_QSBR_LIB=$(top_builddir)/liburcu-qsbr.la
1a43bbd8 41URCU_MB_LIB=$(top_builddir)/liburcu-mb.la
fdf01eed 42URCU_SIGNAL_LIB=$(top_builddir)/liburcu-signal.la
1a43bbd8 43URCU_BP_LIB=$(top_builddir)/liburcu-bp.la
4d001e96 44WFQUEUE_LIB=$(top_builddir)/libwfqueue.la
48d848c7 45
48d848c7
PMF
46EXTRA_DIST = $(top_srcdir)/tests/api_*.h
47
48
fdf01eed 49test_urcu_SOURCES = test_urcu.c $(URCU)
48d848c7 50
fdf01eed 51test_urcu_dynamic_link_SOURCES = test_urcu.c $(URCU)
48d848c7
PMF
52test_urcu_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
53
fdf01eed 54test_urcu_timing_SOURCES = test_urcu_timing.c $(URCU)
48d848c7 55
fdf01eed
MD
56test_urcu_yield_SOURCES = test_urcu.c $(URCU)
57test_urcu_yield_CFLAGS = -DDEBUG_YIELD $(AM_CFLAGS)
48d848c7 58
48d848c7 59
fdf01eed 60test_qsbr_SOURCES = test_qsbr.c $(URCU_QSBR)
48d848c7 61
fdf01eed 62test_qsbr_timing_SOURCES = test_qsbr_timing.c $(URCU_QSBR)
48d848c7 63
48d848c7
PMF
64
65test_urcu_mb_SOURCES = test_urcu.c $(URCU_MB)
02be5561 66test_urcu_mb_CFLAGS = -DRCU_MB $(AM_CFLAGS)
48d848c7 67
48d848c7 68
fdf01eed
MD
69test_urcu_signal_SOURCES = test_urcu.c $(URCU_SIGNAL)
70test_urcu_signal_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS)
71
72test_urcu_signal_dynamic_link_SOURCES = test_urcu.c $(URCU_SIGNAL)
73test_urcu_signal_dynamic_link_CFLAGS = -DRCU_SIGNAL -DDYNAMIC_LINK_TEST \
74 $(AM_CFLAGS)
75
76test_urcu_signal_timing_SOURCES = test_urcu_timing.c $(URCU_SIGNAL)
77test_urcu_signal_timing_CFLAGS= -DRCU_SIGNAL $(AM_CFLAGS)
78
79test_urcu_signal_yield_SOURCES = test_urcu.c $(URCU_SIGNAL)
80test_urcu_signal_yield_CFLAGS = -DRCU_SIGNAL -DDEBUG_YIELD $(AM_CFLAGS)
81
82
83test_rwlock_timing_SOURCES = test_rwlock_timing.c $(URCU_SIGNAL)
84
85test_rwlock_SOURCES = test_rwlock.c $(URCU_SIGNAL)
86
87test_perthreadlock_timing_SOURCES = test_perthreadlock_timing.c $(URCU_SIGNAL)
88
89test_perthreadlock_SOURCES = test_perthreadlock.c $(URCU_SIGNAL)
90
48d848c7 91
0cc15443 92rcutorture_urcu_SOURCES = urcutorture.c
fdf01eed
MD
93rcutorture_urcu_CFLAGS = -DTORTURE_URCU $(AM_CFLAGS)
94rcutorture_urcu_LDADD = $(URCU)
1a43bbd8 95
0cc15443 96rcutorture_urcu_mb_SOURCES = urcutorture.c
1a43bbd8
MD
97rcutorture_urcu_mb_CFLAGS = -DTORTURE_URCU_MB $(AM_CFLAGS)
98rcutorture_urcu_mb_LDADD = $(URCU_MB_LIB)
99
0cc15443 100rcutorture_qsbr_SOURCES = urcutorture.c
1a43bbd8
MD
101rcutorture_qsbr_CFLAGS = -DTORTURE_QSBR $(AM_CFLAGS)
102rcutorture_qsbr_LDADD = $(URCU_QSBR_LIB)
48d848c7 103
fdf01eed
MD
104rcutorture_urcu_signal_SOURCES = urcutorture.c
105rcutorture_urcu_signal_CFLAGS = -DTORTURE_URCU_SIGNAL $(AM_CFLAGS)
106rcutorture_urcu_signal_LDADD = $(URCU_SIGNAL_LIB)
107
0cc15443 108rcutorture_urcu_bp_SOURCES = urcutorture.c
1a43bbd8
MD
109rcutorture_urcu_bp_CFLAGS = -DTORTURE_URCU_BP $(AM_CFLAGS)
110rcutorture_urcu_bp_LDADD = $(URCU_BP_LIB)
48d848c7 111
fdf01eed 112test_mutex_SOURCES = test_mutex.c $(URCU)
48d848c7
PMF
113
114test_looplen_SOURCES = test_looplen.c
115
fdf01eed 116test_urcu_gc_SOURCES = test_urcu_gc.c $(URCU)
48d848c7 117
fdf01eed
MD
118test_urcu_signal_gc_SOURCES = test_urcu_gc.c $(URCU_SIGNAL)
119test_urcu_signal_gc_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS)
120
121test_urcu_mb_gc_SOURCES = test_urcu_gc.c $(URCU_MB)
122test_urcu_mb_gc_CFLAGS = -DRCU_MB $(AM_CFLAGS)
48d848c7
PMF
123
124test_qsbr_gc_SOURCES = test_qsbr_gc.c $(URCU_QSBR)
125
126test_qsbr_lgc_SOURCES = test_qsbr_gc.c $(URCU_QSBR)
127test_qsbr_lgc_CFLAGS = -DTEST_LOCAL_GC $(AM_CFLAGS)
128
fdf01eed 129test_urcu_lgc_SOURCES = test_urcu_gc.c $(URCU)
48d848c7
PMF
130test_urcu_lgc_CFLAGS = -DTEST_LOCAL_GC $(AM_CFLAGS)
131
fdf01eed
MD
132test_urcu_signal_lgc_SOURCES = test_urcu_gc.c $(URCU_SIGNAL)
133test_urcu_signal_lgc_CFLAGS = -DRCU_SIGNAL -DTEST_LOCAL_GC $(AM_CFLAGS)
134
135test_urcu_mb_lgc_SOURCES = test_urcu_gc.c $(URCU_MB)
136test_urcu_mb_lgc_CFLAGS = -DTEST_LOCAL_GC -DRCU_MB $(AM_CFLAGS)
48d848c7
PMF
137
138test_qsbr_dynamic_link_SOURCES = test_qsbr.c $(URCU_QSBR)
139test_qsbr_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
140
fdf01eed 141test_urcu_defer_SOURCES = test_urcu_defer.c $(URCU_DEFER)
48d848c7 142
bf9de1b7 143test_uatomic_SOURCES = test_uatomic.c $(COMPAT)
48d848c7 144
d3d3d8f0
MD
145test_cycles_per_loop_SOURCES = test_cycles_per_loop.c
146
fdf01eed 147test_urcu_assign_SOURCES = test_urcu_assign.c $(URCU)
48d848c7 148
fdf01eed 149test_urcu_assign_dynamic_link_SOURCES = test_urcu_assign.c $(URCU)
48d848c7
PMF
150test_urcu_assign_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
151
152test_urcu_bp_SOURCES = test_urcu_bp.c $(URCU_BP)
153
154test_urcu_bp_dynamic_link_SOURCES = test_urcu_bp.c $(URCU_BP)
155test_urcu_bp_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
156
453629a9 157test_urcu_lfq_SOURCES = test_urcu_lfq.c $(URCU_DEFER)
4afee0a7 158test_urcu_wfq_SOURCES = test_urcu_wfq.c
4d001e96
MD
159test_urcu_wfq_dynlink_SOURCES = test_urcu_wfq.c
160test_urcu_wfq_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
161test_urcu_wfq_dynlink_LDADD = $(WFQUEUE_LIB)
453629a9 162test_urcu_lfs_SOURCES = test_urcu_lfs.c $(URCU_DEFER)
a5eb5ffc 163test_urcu_wfs_SOURCES = test_urcu_wfs.c $(URCU_DEFER)
453629a9 164
0cc15443 165urcutorture.c: api.h
bb186d0d
GS
166
167check-am:
8c3cea94 168 ./test_uatomic
bb186d0d 169 ./runall.sh
This page took 0.043679 seconds and 4 git commands to generate.