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
17 annotate_barrier.stderr.exp \
18 annotate_barrier.vgtest \
19 annotate_hb_err.stderr.exp \
20 annotate_hb_err.vgtest \
21 annotate_hb_race.stderr.exp \
22 annotate_hb_race.vgtest \
23 annotate_hbefore.stderr.exp \
24 annotate_hbefore.vgtest \
25 annotate_order_1.stderr.exp \
26 annotate_order_1.vgtest \
27 annotate_order_2.stderr.exp \
28 annotate_order_2.vgtest \
29 annotate_order_3.stderr.exp \
30 annotate_order_3.vgtest \
31 annotate_publish_hg.stderr.exp \
32 annotate_publish_hg.vgtest \
33 annotate_smart_pointer.stderr.exp \
34 annotate_smart_pointer.vgtest \
35 annotate_spinlock.stderr.exp \
36 annotate_spinlock.vgtest \
37 annotate_rwlock.stderr.exp \
38 annotate_rwlock.vgtest \
39 annotate_rwlock_hg.stderr.exp \
40 annotate_rwlock_hg.vgtest \
41 annotate_ignore_read.stderr.exp \
42 annotate_ignore_read.vgtest \
43 annotate_ignore_rw.stderr.exp \
44 annotate_ignore_rw.vgtest \
45 annotate_ignore_rw2.stderr.exp \
46 annotate_ignore_rw2.vgtest \
47 annotate_ignore_write.stderr.exp \
48 annotate_ignore_write.vgtest \
49 annotate_ignore_write2.stderr.exp \
50 annotate_ignore_write2.vgtest \
51 annotate_trace_memory.stderr.exp \
52 annotate_trace_memory.vgtest \
53 annotate_static.stderr.exp \
54 annotate_static.vgtest \
55 atomic_var.stderr.exp \
59 bar_trivial.stderr.exp \
60 bar_trivial.stdout.exp \
62 boost_thread.stderr.exp \
64 bug-235681.stderr.exp \
66 circular_buffer.stderr.exp \
67 circular_buffer.vgtest \
68 custom_alloc.stderr.exp \
74 hg01_all_ok.stderr.exp \
76 hg02_deadlock.stderr.exp \
77 hg02_deadlock.vgtest \
78 hg03_inherit.stderr.exp \
80 hg04_race.stderr.exp \
82 hg05_race2.stderr.exp \
83 hg05_race2.stderr.exp-powerpc \
85 hg06_readshared.stderr.exp \
86 hg06_readshared.vgtest \
87 hold_lock_1.stderr.exp \
89 hold_lock_2.stderr.exp \
91 linuxthreads_det.stderr.exp \
92 linuxthreads_det.stderr.exp-linuxthreads \
93 linuxthreads_det.stdout.exp \
94 linuxthreads_det.stdout.exp-linuxthreads \
95 linuxthreads_det.vgtest \
99 memory_allocation.stderr.exp \
100 memory_allocation.vgtest \
101 monitor_example.stderr.exp \
102 monitor_example.vgtest \
103 new_delete.stderr.exp \
105 omp_matinv.stderr.exp \
106 omp_matinv.stdout.exp \
108 omp_matinv_racy.stderr.exp \
109 omp_matinv_racy.stdout.exp \
110 omp_matinv_racy.vgtest \
111 omp_prime_racy.stderr.exp \
112 omp_prime_racy.vgtest \
113 omp_printf.stderr.exp \
115 pth_barrier.stderr.exp \
117 pth_barrier2.stderr.exp \
118 pth_barrier2.vgtest \
119 pth_barrier3.stderr.exp \
120 pth_barrier3.vgtest \
121 pth_barrier_race.stderr.exp \
122 pth_barrier_race.vgtest \
123 pth_barrier_reinit.stderr.exp \
124 pth_barrier_reinit.vgtest \
125 pth_broadcast.stderr.exp \
126 pth_broadcast.vgtest \
127 pth_cancel_locked.stderr.exp \
128 pth_cancel_locked.stderr.exp-darwin \
129 pth_cancel_locked.vgtest \
130 pth_cleanup_handler.stderr.exp \
131 pth_cleanup_handler.vgtest \
132 pth_cond_race.stderr.exp \
133 pth_cond_race.vgtest \
134 pth_cond_race2.stderr.exp \
135 pth_cond_race2.vgtest \
136 pth_cond_race3.stderr.exp \
137 pth_cond_race3.vgtest \
138 pth_create_chain.stderr.exp \
139 pth_create_chain.vgtest \
140 pth_create_glibc_2_0.stderr.exp \
141 pth_create_glibc_2_0.vgtest \
142 pth_detached.stderr.exp \
143 pth_detached.stdout.exp \
144 pth_detached.vgtest \
145 pth_detached2.stderr.exp \
146 pth_detached2.stdout.exp \
147 pth_detached2.vgtest \
148 pth_detached_sem.stderr.exp \
149 pth_detached_sem.stdout.exp \
150 pth_detached_sem.vgtest \
151 pth_inconsistent_cond_wait.stderr.exp1 \
152 pth_inconsistent_cond_wait.stderr.exp2 \
153 pth_inconsistent_cond_wait.vgtest \
154 pth_mutex_reinit.stderr.exp \
155 pth_mutex_reinit.vgtest \
156 pth_once.stderr.exp \
158 pth_process_shared_mutex.stderr.exp \
159 pth_process_shared_mutex.vgtest \
160 pth_spinlock.stderr.exp \
161 pth_spinlock.vgtest \
162 qt4_atomic.stderr.exp \
164 qt4_mutex.stderr.exp \
166 qt4_rwlock.stderr.exp \
168 qt4_semaphore.stderr.exp \
169 qt4_semaphore.vgtest \
170 recursive_mutex.stderr.exp-linux \
171 recursive_mutex.stderr.exp-darwin \
172 recursive_mutex.vgtest \
173 rwlock_race.stderr.exp \
174 rwlock_race.stderr.exp2 \
176 rwlock_test.stderr.exp \
178 rwlock_type_checking.stderr.exp \
179 rwlock_type_checking.vgtest \
180 sem_as_mutex.stderr.exp \
181 sem_as_mutex.vgtest \
182 sem_as_mutex2.stderr.exp \
183 sem_as_mutex2.vgtest \
184 sem_as_mutex3.stderr.exp \
185 sem_as_mutex3.vgtest \
186 sem_open.stderr.exp \
188 sem_open2.stderr.exp \
190 sem_open3.stderr.exp \
192 sem_open_traced.stderr.exp \
193 sem_open_traced.vgtest \
196 tc01_simple_race.stderr.exp \
197 tc01_simple_race.vgtest \
198 tc02_simple_tls.stderr.exp \
199 tc02_simple_tls.vgtest \
200 tc03_re_excl.stderr.exp \
201 tc03_re_excl.vgtest \
202 tc04_free_lock.stderr.exp \
203 tc04_free_lock.vgtest \
204 tc05_simple_race.stderr.exp \
205 tc05_simple_race.vgtest \
206 tc06_two_races.stderr.exp \
207 tc06_two_races.vgtest \
208 tc07_hbl1.stderr.exp \
209 tc07_hbl1.stdout.exp \
211 tc08_hbl2.stderr.exp \
212 tc08_hbl2.stdout.exp \
214 tc09_bad_unlock.stderr.exp \
215 tc09_bad_unlock.stderr.exp-glibc2.8 \
216 tc09_bad_unlock.vgtest \
217 tc10_rec_lock.stderr.exp \
218 tc10_rec_lock.vgtest \
219 tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp \
221 tc12_rwl_trivial.stderr.exp \
222 tc12_rwl_trivial.vgtest \
223 tc13_laog1.stderr.exp \
225 tc15_laog_lockdel.stderr.exp \
226 tc15_laog_lockdel.vgtest \
227 tc16_byterace.stderr.exp \
228 tc16_byterace.vgtest \
229 tc17_sembar.stderr.exp \
231 tc18_semabuse.stderr.exp \
232 tc18_semabuse.vgtest \
233 tc19_shadowmem.stderr.exp-32bit \
234 tc19_shadowmem.stderr.exp-64bit \
235 tc19_shadowmem.vgtest \
236 tc21_pthonce.stderr.exp \
237 tc21_pthonce.stdout.exp \
238 tc21_pthonce.vgtest \
239 tc22_exit_w_lock.stderr.exp-32bit \
240 tc22_exit_w_lock.stderr.exp-64bit \
241 tc22_exit_w_lock.vgtest \
242 tc23_bogus_condwait.stderr.exp-linux-x86 \
243 tc23_bogus_condwait.stderr.exp-linux-ppc \
244 tc23_bogus_condwait.stderr.exp-darwin \
245 tc23_bogus_condwait.vgtest \
246 tc24_nonzero_sem.stderr.exp \
247 tc24_nonzero_sem.vgtest \
248 thread_name.stderr.exp \
252 unit_bitmap.stderr.exp \
262 annotate_ignore_write \
263 annotate_publish_hg \
275 pth_cleanup_handler \
280 pth_inconsistent_cond_wait \
282 pth_process_shared_mutex \
286 rwlock_type_checking \
296 check_PROGRAMS += boost_thread
299 if HAVE_BUILTIN_ATOMIC
303 annotate_smart_pointer \
310 check_PROGRAMS += omp_matinv omp_prime omp_printf
313 if HAVE_PTHREAD_BARRIER
314 check_PROGRAMS += matinv pth_barrier pth_barrier_race pth_barrier_reinit
317 if HAVE_PTHREAD_CREATE_GLIBC_2_0
318 check_PROGRAMS += pth_create_glibc_2_0
321 if HAVE_PTHREAD_SPINLOCK
322 check_PROGRAMS += pth_spinlock
326 check_PROGRAMS += qt4_mutex qt4_rwlock qt4_semaphore
329 if HAVE_QTCORE_QATOMICINT
330 check_PROGRAMS += qt4_atomic
334 AM_CFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
335 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
340 monitor_example_SOURCES = monitor_example.cpp
341 new_delete_SOURCES = new_delete.cpp
343 pth_cleanup_handler_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_EMPTY_BODY@
345 tsan_unittest_SOURCES = tsan_unittest.cpp
346 tsan_unittest_CXXFLAGS = $(AM_CXXFLAGS) \
347 -DTHREAD_WRAPPERS='"tsan_thread_wrappers_pthread.h"'
349 unit_bitmap_CFLAGS = $(AM_CFLAGS) -O2 \
350 -DENABLE_DRD_CONSISTENCY_CHECKS \
351 @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
352 unit_bitmap_LDADD = # nothing, i.e. not -lpthread
354 unit_vc_CFLAGS = $(AM_CFLAGS) -DENABLE_DRD_CONSISTENCY_CHECKS
355 unit_vc_LDADD = # nothing, i.e. not -lpthread
358 boost_thread_SOURCES = boost_thread.cpp
359 boost_thread_CXXFLAGS = $(AM_CXXFLAGS) $(BOOST_CFLAGS)
360 boost_thread_LDADD = $(BOOST_LIBS)
363 if HAVE_BUILTIN_ATOMIC
364 annotate_smart_pointer_SOURCES = annotate_smart_pointer.cpp
367 annotate_static_SOURCES = annotate_static.cpp
370 omp_matinv_CFLAGS = $(AM_CFLAGS) -fopenmp
371 omp_matinv_LDFLAGS = -fopenmp
372 omp_matinv_LDADD = $(LDADD) -lm
374 omp_prime_CFLAGS = $(AM_CFLAGS) -fopenmp
375 omp_prime_LDFLAGS = -fopenmp
376 omp_prime_LDADD = $(LDADD) -lm
378 omp_printf_CFLAGS = $(AM_CFLAGS) -fopenmp
379 omp_printf_LDFLAGS = -fopenmp
380 omp_printf_LDADD = $(LDADD) -lm
383 if HAVE_PTHREAD_BARRIER
384 matinv_LDADD = $(LDADD) -lm
388 qt4_mutex_SOURCES = qt4_mutex.cpp
389 qt4_mutex_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
390 qt4_mutex_LDADD = $(LDADD) $(QTCORE_LIBS)
392 qt4_rwlock_SOURCES = qt4_rwlock.cpp
393 qt4_rwlock_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
394 qt4_rwlock_LDADD = $(LDADD) $(QTCORE_LIBS)
396 qt4_semaphore_SOURCES = qt4_semaphore.cpp
397 qt4_semaphore_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
398 qt4_semaphore_LDADD = $(LDADD) $(QTCORE_LIBS)
401 if HAVE_QTCORE_QATOMICINT
402 qt4_atomic_SOURCES = qt4_atomic.cpp
403 qt4_atomic_CXXFLAGS = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
404 qt4_atomic_LDADD = $(LDADD) $(QTCORE_LIBS)