Fix: Don't override user variables within the build system
[urcu.git] / tests / benchmark / Makefile.am
CommitLineData
9a79c612 1AM_CFLAGS += $(PTHREAD_CFLAGS) -I$(top_srcdir)/include -I$(top_builddir)/include -I$(top_srcdir)/src -I$(top_srcdir)/tests/common -g
f5ab766e 2
f356e6f3 3SCRIPT_LIST = common.sh \
9c78ab1d 4 run.sh \
ad460058 5 run-urcu-tests.sh \
f356e6f3
MJ
6 runhash.sh \
7 runtests.sh \
8 runpaul-phase1.sh \
9 runpaul-phase2.sh \
10 runpaul-phase3.sh \
11 runpaul-phase4.sh \
12 runpaul-phase5.sh \
13 runpaul-phase6.sh \
14 runpaul-phase7.sh \
15 runtests-batch.sh \
16 subphase4.sh
17
18dist_noinst_SCRIPTS = $(SCRIPT_LIST)
19
2ea58a69
MD
20TEST_LIST = regression_tests \
21 short_bench_tests \
22 long_bench_tests
23
24dist_noinst_DATA = $(TEST_LIST)
67c10597 25
f5ab766e
MD
26noinst_PROGRAMS = test_urcu test_urcu_dynamic_link test_urcu_timing \
27 test_urcu_signal test_urcu_signal_dynamic_link test_urcu_signal_timing \
28 test_rwlock_timing test_rwlock test_perthreadlock_timing \
29 test_perthreadlock test_urcu_yield test_urcu_signal_yield test_urcu_mb \
30 test_urcu_qsbr_timing test_urcu_qsbr \
31 test_mutex test_looplen test_urcu_gc test_urcu_signal_gc \
32 test_urcu_lgc \
33 test_urcu_mb_gc test_urcu_qsbr_gc test_urcu_qsbr_lgc test_urcu_signal_lgc \
34 test_urcu_mb_lgc test_urcu_qsbr_dynamic_link test_urcu_defer \
35 test_urcu_assign test_urcu_assign_dynamic_link \
36 test_urcu_bp test_urcu_bp_dynamic_link test_cycles_per_loop \
37 test_urcu_lfq test_urcu_wfq test_urcu_lfs test_urcu_wfs \
38 test_urcu_lfs_rcu \
39 test_urcu_wfcq \
40 test_urcu_wfq_dynlink test_urcu_wfs_dynlink \
41 test_urcu_wfcq_dynlink \
42 test_urcu_lfq_dynlink test_urcu_lfs_dynlink test_urcu_hash \
43 test_urcu_lfs_rcu_dynlink
44
6893800a
MJ
45URCU_COMMON_LIB=$(top_builddir)/src/liburcu-common.la
46URCU_LIB=$(top_builddir)/src/liburcu.la
47URCU_QSBR_LIB=$(top_builddir)/src/liburcu-qsbr.la
48URCU_MB_LIB=$(top_builddir)/src/liburcu-mb.la
49URCU_SIGNAL_LIB=$(top_builddir)/src/liburcu-signal.la
50URCU_BP_LIB=$(top_builddir)/src/liburcu-bp.la
51URCU_CDS_LIB=$(top_builddir)/src/liburcu-cds.la
f5ab766e 52
2650042a
MD
53DEBUG_YIELD_LIB=$(builddir)/../common/libdebug-yield.la
54
05a4bc03
MD
55test_urcu_SOURCES = test_urcu.c
56test_urcu_LDADD = $(URCU_LIB)
f5ab766e 57
05a4bc03
MD
58test_urcu_dynamic_link_SOURCES = test_urcu.c
59test_urcu_dynamic_link_LDADD = $(URCU_LIB)
f5ab766e
MD
60test_urcu_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
61
05a4bc03
MD
62test_urcu_timing_SOURCES = test_urcu_timing.c
63test_urcu_timing_LDADD = $(URCU_LIB)
f5ab766e 64
05a4bc03
MD
65test_urcu_yield_SOURCES = test_urcu.c
66test_urcu_yield_LDADD = $(URCU_LIB) $(DEBUG_YIELD_LIB)
f5ab766e
MD
67test_urcu_yield_CFLAGS = -DDEBUG_YIELD $(AM_CFLAGS)
68
69
bb917e0f
MD
70test_urcu_qsbr_SOURCES = test_urcu_qsbr.c
71test_urcu_qsbr_LDADD = $(URCU_QSBR_LIB)
f5ab766e 72
bb917e0f
MD
73test_urcu_qsbr_timing_SOURCES = test_urcu_qsbr_timing.c
74test_urcu_qsbr_timing_LDADD = $(URCU_QSBR_LIB)
f5ab766e
MD
75
76
30ac8e5e
MD
77test_urcu_mb_SOURCES = test_urcu.c
78test_urcu_mb_LDADD = $(URCU_MB_LIB)
f5ab766e
MD
79test_urcu_mb_CFLAGS = -DRCU_MB $(AM_CFLAGS)
80
81
f368fd4b
MD
82test_urcu_signal_SOURCES = test_urcu.c
83test_urcu_signal_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e
MD
84test_urcu_signal_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS)
85
f368fd4b
MD
86test_urcu_signal_dynamic_link_SOURCES = test_urcu.c
87test_urcu_signal_dynamic_link_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e
MD
88test_urcu_signal_dynamic_link_CFLAGS = -DRCU_SIGNAL -DDYNAMIC_LINK_TEST \
89 $(AM_CFLAGS)
90
f368fd4b
MD
91test_urcu_signal_timing_SOURCES = test_urcu_timing.c
92test_urcu_signal_timing_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e
MD
93test_urcu_signal_timing_CFLAGS= -DRCU_SIGNAL $(AM_CFLAGS)
94
f368fd4b
MD
95test_urcu_signal_yield_SOURCES = test_urcu.c
96test_urcu_signal_yield_LDADD = $(URCU_SIGNAL_LIB) $(DEBUG_YIELD_LIB)
f5ab766e
MD
97test_urcu_signal_yield_CFLAGS = -DRCU_SIGNAL -DDEBUG_YIELD $(AM_CFLAGS)
98
f368fd4b
MD
99test_rwlock_timing_SOURCES = test_rwlock_timing.c
100test_rwlock_timing_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e 101
f368fd4b
MD
102test_rwlock_SOURCES = test_rwlock.c
103test_rwlock_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e 104
f368fd4b
MD
105test_perthreadlock_timing_SOURCES = test_perthreadlock_timing.c
106test_perthreadlock_timing_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e 107
f368fd4b
MD
108test_perthreadlock_SOURCES = test_perthreadlock.c
109test_perthreadlock_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e 110
05a4bc03 111test_mutex_SOURCES = test_mutex.c
f5ab766e
MD
112
113test_looplen_SOURCES = test_looplen.c
114
05a4bc03
MD
115test_urcu_gc_SOURCES = test_urcu_gc.c
116test_urcu_gc_LDADD = $(URCU_LIB)
f5ab766e 117
f368fd4b
MD
118test_urcu_signal_gc_SOURCES = test_urcu_gc.c
119test_urcu_signal_gc_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e
MD
120test_urcu_signal_gc_CFLAGS = -DRCU_SIGNAL $(AM_CFLAGS)
121
30ac8e5e
MD
122test_urcu_mb_gc_SOURCES = test_urcu_gc.c
123test_urcu_mb_gc_LDADD = $(URCU_MB_LIB)
f5ab766e
MD
124test_urcu_mb_gc_CFLAGS = -DRCU_MB $(AM_CFLAGS)
125
bb917e0f
MD
126test_urcu_qsbr_gc_SOURCES = test_urcu_qsbr_gc.c
127test_urcu_qsbr_gc_LDADD = $(URCU_QSBR_LIB)
f5ab766e 128
bb917e0f
MD
129test_urcu_qsbr_lgc_SOURCES = test_urcu_qsbr_gc.c
130test_urcu_qsbr_lgc_LDADD = $(URCU_QSBR_LIB)
f5ab766e
MD
131test_urcu_qsbr_lgc_CFLAGS = -DTEST_LOCAL_GC $(AM_CFLAGS)
132
05a4bc03
MD
133test_urcu_lgc_SOURCES = test_urcu_gc.c
134test_urcu_lgc_LDADD = $(URCU_LIB)
f5ab766e
MD
135test_urcu_lgc_CFLAGS = -DTEST_LOCAL_GC $(AM_CFLAGS)
136
f368fd4b
MD
137test_urcu_signal_lgc_SOURCES = test_urcu_gc.c
138test_urcu_signal_lgc_LDADD = $(URCU_SIGNAL_LIB)
f5ab766e
MD
139test_urcu_signal_lgc_CFLAGS = -DRCU_SIGNAL -DTEST_LOCAL_GC $(AM_CFLAGS)
140
30ac8e5e
MD
141test_urcu_mb_lgc_SOURCES = test_urcu_gc.c
142test_urcu_mb_lgc_LDADD = $(URCU_MB_LIB)
f5ab766e
MD
143test_urcu_mb_lgc_CFLAGS = -DTEST_LOCAL_GC -DRCU_MB $(AM_CFLAGS)
144
bb917e0f
MD
145test_urcu_qsbr_dynamic_link_SOURCES = test_urcu_qsbr.c
146test_urcu_qsbr_dynamic_link_LDADD = $(URCU_QSBR_LIB)
f5ab766e
MD
147test_urcu_qsbr_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
148
fd76f239
MD
149test_urcu_defer_SOURCES = test_urcu_defer.c
150test_urcu_defer_LDADD = $(URCU_LIB)
f5ab766e
MD
151
152test_cycles_per_loop_SOURCES = test_cycles_per_loop.c
153
05a4bc03
MD
154test_urcu_assign_SOURCES = test_urcu_assign.c
155test_urcu_assign_LDADD = $(URCU_LIB)
f5ab766e 156
05a4bc03
MD
157test_urcu_assign_dynamic_link_SOURCES = test_urcu_assign.c
158test_urcu_assign_dynamic_link_LDADD = $(URCU_LIB)
f5ab766e
MD
159test_urcu_assign_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
160
6a3d2c22
MD
161test_urcu_bp_SOURCES = test_urcu_bp.c
162test_urcu_bp_LDADD = $(URCU_BP_LIB)
f5ab766e 163
6a3d2c22
MD
164test_urcu_bp_dynamic_link_SOURCES = test_urcu_bp.c
165test_urcu_bp_dynamic_link_LDADD = $(URCU_BP_LIB)
f5ab766e
MD
166test_urcu_bp_dynamic_link_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
167
05a4bc03
MD
168test_urcu_lfq_SOURCES = test_urcu_lfq.c
169test_urcu_lfq_LDADD = $(URCU_LIB) $(URCU_CDS_LIB)
f5ab766e 170
05a4bc03 171test_urcu_lfq_dynlink_SOURCES = test_urcu_lfq.c
f5ab766e 172test_urcu_lfq_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
05a4bc03 173test_urcu_lfq_dynlink_LDADD = $(URCU_LIB) $(URCU_CDS_LIB)
f5ab766e 174
05a1c278 175test_urcu_wfq_SOURCES = test_urcu_wfq.c
f5ab766e
MD
176test_urcu_wfq_LDADD = $(URCU_COMMON_LIB)
177
178test_urcu_wfq_dynlink_SOURCES = test_urcu_wfq.c
179test_urcu_wfq_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
180test_urcu_wfq_dynlink_LDADD = $(URCU_COMMON_LIB)
181
05a1c278 182test_urcu_wfcq_SOURCES = test_urcu_wfcq.c
f5ab766e
MD
183test_urcu_wfcq_LDADD = $(URCU_COMMON_LIB)
184
185test_urcu_wfcq_dynlink_SOURCES = test_urcu_wfcq.c
186test_urcu_wfcq_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
187test_urcu_wfcq_dynlink_LDADD = $(URCU_COMMON_LIB)
188
05a4bc03
MD
189test_urcu_lfs_SOURCES = test_urcu_lfs.c
190test_urcu_lfs_LDADD = $(URCU_LIB) $(URCU_CDS_LIB)
f5ab766e 191
05a4bc03
MD
192test_urcu_lfs_rcu_SOURCES = test_urcu_lfs_rcu.c
193test_urcu_lfs_rcu_LDADD = $(URCU_LIB) $(URCU_CDS_LIB)
f5ab766e 194
05a4bc03 195test_urcu_lfs_dynlink_SOURCES = test_urcu_lfs.c
f5ab766e 196test_urcu_lfs_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
05a4bc03 197test_urcu_lfs_dynlink_LDADD = $(URCU_LIB) $(URCU_CDS_LIB)
f5ab766e 198
05a4bc03 199test_urcu_lfs_rcu_dynlink_SOURCES = test_urcu_lfs_rcu.c
f5ab766e 200test_urcu_lfs_rcu_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
05a4bc03 201test_urcu_lfs_rcu_dynlink_LDADD = $(URCU_LIB) $(URCU_CDS_LIB)
f5ab766e 202
05a1c278 203test_urcu_wfs_SOURCES = test_urcu_wfs.c
f5ab766e
MD
204test_urcu_wfs_LDADD = $(URCU_COMMON_LIB)
205
206test_urcu_wfs_dynlink_SOURCES = test_urcu_wfs.c
207test_urcu_wfs_dynlink_CFLAGS = -DDYNAMIC_LINK_TEST $(AM_CFLAGS)
208test_urcu_wfs_dynlink_LDADD = $(URCU_COMMON_LIB)
209
210test_urcu_hash_SOURCES = test_urcu_hash.c test_urcu_hash.h \
05a1c278 211 test_urcu_hash_rw.c test_urcu_hash_unique.c
f5ab766e 212test_urcu_hash_CFLAGS = -DRCU_QSBR $(AM_CFLAGS)
05a1c278 213test_urcu_hash_LDADD = $(URCU_QSBR_LIB) $(URCU_COMMON_LIB) $(URCU_CDS_LIB)
f5ab766e 214
f356e6f3
MJ
215all-local:
216 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
2ea58a69 217 for script in $(SCRIPT_LIST) $(TEST_LIST); do \
f356e6f3
MJ
218 cp -f $(srcdir)/$$script $(builddir); \
219 done; \
220 fi
221
222clean-local:
223 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
2ea58a69 224 for script in $(SCRIPT_LIST) $(TEST_LIST); do \
f356e6f3
MJ
225 rm -f $(builddir)/$$script; \
226 done; \
227 fi
228
ad460058 229.PHONY: short_bench long_bench regtest
f5ab766e 230
ad460058
MD
231short_bench:
232 ./run.sh short_bench_tests
233
234long_bench:
235 ./run.sh long_bench_tests
236
237regtest:
238 ./run.sh regression_tests
This page took 0.062849 seconds and 4 git commands to generate.