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