2 include $(top_srcdir)/Makefile.tool-tests.am
4 dist_noinst_SCRIPTS = \
5 compare_error_count_with \
8 filter_stderr_and_thread_no \
10 supported_libpthread \
14 tsan_thread_wrappers_pthread.h \
18 annotate_barrier.stderr.exp \
19 annotate_barrier.vgtest \
20 annotate_hb_err.stderr.exp \
21 annotate_hb_err.vgtest \
22 annotate_hb_race.stderr.exp \
23 annotate_hb_race.vgtest \
24 annotate_hbefore.stderr.exp \
25 annotate_hbefore.vgtest \
26 annotate_order_1.stderr.exp \
27 annotate_order_1.vgtest \
28 annotate_order_2.stderr.exp \
29 annotate_order_2.vgtest \
30 annotate_order_3.stderr.exp \
31 annotate_order_3.vgtest \
32 annotate_publish_hg.stderr.exp \
33 annotate_publish_hg.vgtest \
34 annotate_smart_pointer.stderr.exp \
35 annotate_smart_pointer.vgtest \
36 annotate_spinlock.stderr.exp \
37 annotate_spinlock.vgtest \
38 annotate_rwlock.stderr.exp \
39 annotate_rwlock.vgtest \
40 annotate_rwlock_hg.stderr.exp \
41 annotate_rwlock_hg.vgtest \
42 annotate_ignore_read.stderr.exp \
43 annotate_ignore_read.vgtest \
44 annotate_ignore_rw.stderr.exp \
45 annotate_ignore_rw.vgtest \
46 annotate_ignore_rw2.stderr.exp \
47 annotate_ignore_rw2.vgtest \
48 annotate_ignore_write.stderr.exp \
49 annotate_ignore_write.vgtest \
50 annotate_ignore_write2.stderr.exp \
51 annotate_ignore_write2.vgtest \
52 annotate_trace_memory.stderr.exp \
53 annotate_trace_memory.vgtest \
54 annotate_static.stderr.exp \
55 annotate_static.vgtest \
56 atomic_var.stderr.exp \
60 bar_trivial.stderr.exp \
61 bar_trivial.stdout.exp \
63 boost_thread.stderr.exp \
65 bug-235681.stderr.exp \
67 circular_buffer.stderr.exp \
68 circular_buffer.vgtest \
69 custom_alloc.stderr.exp \
71 custom_alloc_fiw.stderr.exp \
72 custom_alloc_fiw.vgtest \
77 free_is_write.stderr.exp \
78 free_is_write.vgtest \
79 free_is_write2.stderr.exp \
80 free_is_write2.vgtest \
81 hg01_all_ok.stderr.exp \
83 hg02_deadlock.stderr.exp \
84 hg02_deadlock.vgtest \
85 hg03_inherit.stderr.exp \
87 hg04_race.stderr.exp \
89 hg05_race2.stderr.exp \
90 hg05_race2.stderr.exp-powerpc \
92 hg06_readshared.stderr.exp \
93 hg06_readshared.vgtest \
94 hold_lock_1.stderr.exp \
96 hold_lock_2.stderr.exp \
98 linuxthreads_det.stderr.exp \
99 linuxthreads_det.stderr.exp-linuxthreads \
100 linuxthreads_det.stdout.exp \
101 linuxthreads_det.stdout.exp-linuxthreads \
102 linuxthreads_det.vgtest \
106 memory_allocation.stderr.exp \
107 memory_allocation.vgtest \
108 monitor_example.stderr.exp \
109 monitor_example.vgtest \
110 new_delete.stderr.exp \
112 omp_matinv.stderr.exp \
113 omp_matinv.stdout.exp \
115 omp_matinv_racy.stderr.exp \
116 omp_matinv_racy.stdout.exp \
117 omp_matinv_racy.vgtest \
118 omp_prime_racy.stderr.exp \
119 omp_prime_racy.vgtest \
120 omp_printf.stderr.exp \
122 pth_barrier.stderr.exp \
124 pth_barrier2.stderr.exp \
125 pth_barrier2.vgtest \
126 pth_barrier3.stderr.exp \
127 pth_barrier3.vgtest \
128 pth_barrier_race.stderr.exp \
129 pth_barrier_race.vgtest \
130 pth_barrier_reinit.stderr.exp \
131 pth_barrier_reinit.vgtest \
132 pth_broadcast.stderr.exp \
133 pth_broadcast.vgtest \
134 pth_cancel_locked.stderr.exp \
135 pth_cancel_locked.stderr.exp-darwin \
136 pth_cancel_locked.vgtest \
137 pth_cleanup_handler.stderr.exp \
138 pth_cleanup_handler.vgtest \
139 pth_cond_race.stderr.exp \
140 pth_cond_race.vgtest \
141 pth_cond_race2.stderr.exp \
142 pth_cond_race2.vgtest \
143 pth_cond_race3.stderr.exp \
144 pth_cond_race3.vgtest \
145 pth_create_chain.stderr.exp \
146 pth_create_chain.vgtest \
147 pth_create_glibc_2_0.stderr.exp \
148 pth_create_glibc_2_0.vgtest \
149 pth_detached.stderr.exp \
150 pth_detached.stdout.exp \
151 pth_detached.vgtest \
152 pth_detached2.stderr.exp \
153 pth_detached2.stdout.exp \
154 pth_detached2.vgtest \
155 pth_detached3.stderr.exp1 \
156 pth_detached3.stderr.exp2 \
157 pth_detached3.vgtest \
158 pth_detached_sem.stderr.exp \
159 pth_detached_sem.stdout.exp \
160 pth_detached_sem.vgtest \
161 pth_inconsistent_cond_wait.stderr.exp1 \
162 pth_inconsistent_cond_wait.stderr.exp2 \
163 pth_inconsistent_cond_wait.vgtest \
164 pth_mutex_reinit.stderr.exp \
165 pth_mutex_reinit.vgtest \
166 pth_once.stderr.exp \
168 pth_process_shared_mutex.stderr.exp \
169 pth_process_shared_mutex.vgtest \
170 pth_spinlock.stderr.exp \
171 pth_spinlock.vgtest \
172 pth_uninitialized_cond.stderr.exp \
173 pth_uninitialized_cond.vgtest \
174 qt4_atomic.stderr.exp \
176 qt4_mutex.stderr.exp \
178 qt4_rwlock.stderr.exp \
180 qt4_semaphore.stderr.exp \
181 qt4_semaphore.vgtest \
182 read_and_free_race.stderr.exp \
183 read_and_free_race.vgtest \
184 recursive_mutex.stderr.exp-linux \
185 recursive_mutex.stderr.exp-darwin \
186 recursive_mutex.vgtest \
187 rwlock_race.stderr.exp \
188 rwlock_race.stderr.exp2 \
190 rwlock_test.stderr.exp \
192 rwlock_type_checking.stderr.exp \
193 rwlock_type_checking.vgtest \
194 sem_as_mutex.stderr.exp \
195 sem_as_mutex.vgtest \
196 sem_as_mutex2.stderr.exp \
197 sem_as_mutex2.vgtest \
198 sem_as_mutex3.stderr.exp \
199 sem_as_mutex3.vgtest \
200 sem_open.stderr.exp \
202 sem_open2.stderr.exp \
204 sem_open3.stderr.exp \
206 sem_open_traced.stderr.exp \
207 sem_open_traced.vgtest \
210 sigaltstack.stderr.exp \
212 tc01_simple_race.stderr.exp \
213 tc01_simple_race.vgtest \
214 tc02_simple_tls.stderr.exp \
215 tc02_simple_tls.vgtest \
216 tc03_re_excl.stderr.exp \
217 tc03_re_excl.vgtest \
218 tc04_free_lock.stderr.exp \
219 tc04_free_lock.vgtest \
220 tc05_simple_race.stderr.exp \
221 tc05_simple_race.vgtest \
222 tc06_two_races.stderr.exp \
223 tc06_two_races.vgtest \
224 tc07_hbl1.stderr.exp \
225 tc07_hbl1.stdout.exp \
227 tc08_hbl2.stderr.exp \
228 tc08_hbl2.stdout.exp \
230 tc09_bad_unlock.stderr.exp \
231 tc09_bad_unlock.stderr.exp-glibc2.8 \
232 tc09_bad_unlock.vgtest \
233 tc10_rec_lock.stderr.exp \
234 tc10_rec_lock.vgtest \
235 tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp \
237 tc12_rwl_trivial.stderr.exp \
238 tc12_rwl_trivial.vgtest \
239 tc13_laog1.stderr.exp \
241 tc15_laog_lockdel.stderr.exp \
242 tc15_laog_lockdel.vgtest \
243 tc16_byterace.stderr.exp \
244 tc16_byterace.vgtest \
245 tc17_sembar.stderr.exp \
247 tc18_semabuse.stderr.exp \
248 tc18_semabuse.vgtest \
249 tc19_shadowmem.stderr.exp-32bit \
250 tc19_shadowmem.stderr.exp-64bit \
251 tc19_shadowmem.vgtest \
252 tc21_pthonce.stderr.exp \
253 tc21_pthonce.stdout.exp \
254 tc21_pthonce.vgtest \
255 tc22_exit_w_lock.stderr.exp-32bit \
256 tc22_exit_w_lock.stderr.exp-64bit \
257 tc22_exit_w_lock.vgtest \
258 tc23_bogus_condwait.stderr.exp-linux-x86 \
259 tc23_bogus_condwait.stderr.exp-linux-ppc \
260 tc23_bogus_condwait.stderr.exp-darwin-x86 \
261 tc23_bogus_condwait.stderr.exp-darwin-amd64 \
262 tc23_bogus_condwait.vgtest \
263 tc24_nonzero_sem.stderr.exp \
264 tc24_nonzero_sem.vgtest \
265 thread_name.stderr.exp \
267 threaded-fork.stderr.exp \
268 threaded-fork.vgtest \
271 unit_bitmap.stderr.exp \
281 annotate_ignore_write \
282 annotate_publish_hg \
295 pth_cleanup_handler \
301 pth_inconsistent_cond_wait \
303 pth_process_shared_mutex \
304 pth_uninitialized_cond \
308 rwlock_type_checking \
319 check_PROGRAMS += boost_thread
322 if HAVE_BUILTIN_ATOMIC
330 if HAVE_BUILTIN_ATOMIC_CXX
332 annotate_smart_pointer \
337 check_PROGRAMS += omp_matinv omp_prime omp_printf
340 if HAVE_PTHREAD_BARRIER
341 check_PROGRAMS += matinv pth_barrier pth_barrier_race pth_barrier_reinit
344 if HAVE_PTHREAD_CREATE_GLIBC_2_0
345 check_PROGRAMS += pth_create_glibc_2_0
348 if HAVE_PTHREAD_SPINLOCK
349 check_PROGRAMS += pth_spinlock
353 AM_CFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
354 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
359 monitor_example_SOURCES = monitor_example.cpp
360 new_delete_SOURCES = new_delete.cpp
362 pth_cleanup_handler_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_EMPTY_BODY@
364 tsan_unittest_SOURCES = tsan_unittest.cpp
365 tsan_unittest_CXXFLAGS = $(AM_CXXFLAGS) \
366 -DTHREAD_WRAPPERS='"tsan_thread_wrappers_pthread.h"'
368 unit_bitmap_CFLAGS = $(AM_CFLAGS) -O2 \
369 -DENABLE_DRD_CONSISTENCY_CHECKS \
370 @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
371 unit_bitmap_LDADD = # nothing, i.e. not -lpthread
373 unit_vc_CFLAGS = $(AM_CFLAGS) -DENABLE_DRD_CONSISTENCY_CHECKS
374 unit_vc_LDADD = # nothing, i.e. not -lpthread
377 boost_thread_SOURCES = boost_thread.cpp
378 boost_thread_CXXFLAGS = $(AM_CXXFLAGS) $(BOOST_CFLAGS)
379 boost_thread_LDADD = $(BOOST_LIBS)
382 if HAVE_BUILTIN_ATOMIC
383 annotate_smart_pointer_SOURCES = annotate_smart_pointer.cpp
386 annotate_static_SOURCES = annotate_static.cpp
389 omp_matinv_CFLAGS = $(AM_CFLAGS) -fopenmp
390 omp_matinv_LDFLAGS = -fopenmp
391 omp_matinv_LDADD = $(LDADD) -lm
393 omp_prime_CFLAGS = $(AM_CFLAGS) -fopenmp
394 omp_prime_LDFLAGS = -fopenmp
395 omp_prime_LDADD = $(LDADD) -lm
397 omp_printf_CFLAGS = $(AM_CFLAGS) -fopenmp
398 omp_printf_LDFLAGS = -fopenmp
399 omp_printf_LDADD = $(LDADD) -lm
402 if HAVE_PTHREAD_BARRIER
403 matinv_LDADD = $(LDADD) -lm