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