]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/valgrind/src/valgrind-3.6.0-svn/drd/tests/Makefile.am
08d24aa7fe019aa8d5c139fbcbfa96ca1014c1d4
[l4.git] / l4 / pkg / valgrind / src / valgrind-3.6.0-svn / drd / tests / Makefile.am
1
2 include $(top_srcdir)/Makefile.tool-tests.am
3
4 dist_noinst_SCRIPTS =               \
5         compare_error_count_with    \
6         filter_error_summary        \
7         filter_stderr               \
8         filter_stderr_and_thread_no \
9         run_openmp_test             \
10         supported_libpthread        \
11         supported_sem_init
12
13 noinst_HEADERS =                                    \
14         tsan_thread_wrappers_pthread.h
15
16 EXTRA_DIST =                                        \
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                       \
56         atomic_var.vgtest                           \
57         bar_bad.stderr.exp                          \
58         bar_bad.vgtest                              \
59         bar_trivial.stderr.exp                      \
60         bar_trivial.stdout.exp                      \
61         bar_trivial.vgtest                          \
62         boost_thread.stderr.exp                     \
63         boost_thread.vgtest                         \
64         bug-235681.stderr.exp                       \
65         bug-235681.vgtest                           \
66         circular_buffer.stderr.exp                  \
67         circular_buffer.vgtest                      \
68         custom_alloc.stderr.exp                     \
69         custom_alloc.vgtest                         \
70         fp_race.stderr.exp                          \
71         fp_race.vgtest                              \
72         fp_race2.stderr.exp                         \
73         fp_race2.vgtest                             \
74         hg01_all_ok.stderr.exp                      \
75         hg01_all_ok.vgtest                          \
76         hg02_deadlock.stderr.exp                    \
77         hg02_deadlock.vgtest                        \
78         hg03_inherit.stderr.exp                     \
79         hg03_inherit.vgtest                         \
80         hg04_race.stderr.exp                        \
81         hg04_race.vgtest                            \
82         hg05_race2.stderr.exp                       \
83         hg05_race2.stderr.exp-powerpc               \
84         hg05_race2.vgtest                           \
85         hg06_readshared.stderr.exp                  \
86         hg06_readshared.vgtest                      \
87         hold_lock_1.stderr.exp                      \
88         hold_lock_1.vgtest                          \
89         hold_lock_2.stderr.exp                      \
90         hold_lock_2.vgtest                          \
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                     \
96         matinv.stderr.exp                           \
97         matinv.stdout.exp                           \
98         matinv.vgtest                               \
99         memory_allocation.stderr.exp                \
100         memory_allocation.vgtest                    \
101         monitor_example.stderr.exp                  \
102         monitor_example.vgtest                      \
103         new_delete.stderr.exp                       \
104         new_delete.vgtest                           \
105         omp_matinv.stderr.exp                       \
106         omp_matinv.stdout.exp                       \
107         omp_matinv.vgtest                           \
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                       \
114         omp_printf.vgtest                           \
115         pth_barrier.stderr.exp                      \
116         pth_barrier.vgtest                          \
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                         \
157         pth_once.vgtest                             \
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                       \
163         qt4_atomic.vgtest                           \
164         qt4_mutex.stderr.exp                        \
165         qt4_mutex.vgtest                            \
166         qt4_rwlock.stderr.exp                       \
167         qt4_rwlock.vgtest                           \
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                     \
175         rwlock_race.vgtest                          \
176         rwlock_test.stderr.exp                      \
177         rwlock_test.vgtest                          \
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                         \
187         sem_open.vgtest                             \
188         sem_open2.stderr.exp                        \
189         sem_open2.vgtest                            \
190         sem_open3.stderr.exp                        \
191         sem_open3.vgtest                            \
192         sem_open_traced.stderr.exp                  \
193         sem_open_traced.vgtest                      \
194         sigalrm.stderr.exp                          \
195         sigalrm.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                        \
210         tc07_hbl1.vgtest                            \
211         tc08_hbl2.stderr.exp                        \
212         tc08_hbl2.stdout.exp                        \
213         tc08_hbl2.vgtest                            \
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   \
220         tc11_XCHG.vgtest                            \
221         tc12_rwl_trivial.stderr.exp                 \
222         tc12_rwl_trivial.vgtest                     \
223         tc13_laog1.stderr.exp                       \
224         tc13_laog1.vgtest                           \
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                      \
230         tc17_sembar.vgtest                          \
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                      \
249         thread_name.vgtest                          \
250         trylock.stderr.exp                          \
251         trylock.vgtest                              \
252         unit_bitmap.stderr.exp                      \
253         unit_bitmap.vgtest                          \
254         unit_vc.stderr.exp                          \
255         unit_vc.vgtest
256
257
258 check_PROGRAMS =      \
259   annotate_hb_err     \
260   annotate_hb_race    \
261   annotate_ignore_rw  \
262   annotate_ignore_write \
263   annotate_publish_hg \
264   annotate_static     \
265   bug-235681          \
266   custom_alloc        \
267   fp_race             \
268   hold_lock           \
269   linuxthreads_det    \
270   memory_allocation   \
271   monitor_example     \
272   new_delete          \
273   pth_broadcast       \
274   pth_cancel_locked   \
275   pth_cleanup_handler \
276   pth_cond_race       \
277   pth_create_chain    \
278   pth_detached        \
279   pth_detached_sem    \
280   pth_inconsistent_cond_wait \
281   pth_mutex_reinit    \
282   pth_process_shared_mutex   \
283   recursive_mutex     \
284   rwlock_race         \
285   rwlock_test         \
286   rwlock_type_checking \
287   sem_as_mutex        \
288   sem_open            \
289   sigalrm             \
290   thread_name         \
291   trylock             \
292   unit_bitmap         \
293   unit_vc
294
295 if HAVE_BOOST_1_35
296 check_PROGRAMS += boost_thread
297 endif
298
299 if HAVE_BUILTIN_ATOMIC
300 check_PROGRAMS +=        \
301   annotate_barrier       \
302   annotate_rwlock        \
303   annotate_smart_pointer \
304   atomic_var             \
305   circular_buffer        \
306   tsan_unittest
307 endif
308
309 if HAVE_OPENMP
310 check_PROGRAMS += omp_matinv omp_prime omp_printf
311 endif
312
313 if HAVE_PTHREAD_BARRIER
314 check_PROGRAMS += matinv pth_barrier pth_barrier_race pth_barrier_reinit
315 endif
316
317 if HAVE_PTHREAD_CREATE_GLIBC_2_0
318 check_PROGRAMS += pth_create_glibc_2_0
319 endif
320
321 if HAVE_PTHREAD_SPINLOCK
322 check_PROGRAMS += pth_spinlock
323 endif
324
325 if HAVE_QTCORE
326 check_PROGRAMS += qt4_mutex qt4_rwlock qt4_semaphore
327 endif
328
329 if HAVE_QTCORE_QATOMICINT
330 check_PROGRAMS += qt4_atomic
331 endif
332
333
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
336
337 LDADD = -lpthread
338
339
340 monitor_example_SOURCES     = monitor_example.cpp
341 new_delete_SOURCES          = new_delete.cpp
342
343 pth_cleanup_handler_CFLAGS  = $(AM_CFLAGS) @FLAG_W_NO_EMPTY_BODY@
344
345 tsan_unittest_SOURCES       = tsan_unittest.cpp
346 tsan_unittest_CXXFLAGS      = $(AM_CXXFLAGS) \
347                         -DTHREAD_WRAPPERS='"tsan_thread_wrappers_pthread.h"'
348
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
353
354 unit_vc_CFLAGS              = $(AM_CFLAGS) -DENABLE_DRD_CONSISTENCY_CHECKS
355 unit_vc_LDADD               = # nothing, i.e. not -lpthread
356
357 if HAVE_BOOST_1_35
358 boost_thread_SOURCES        = boost_thread.cpp
359 boost_thread_CXXFLAGS       = $(AM_CXXFLAGS) $(BOOST_CFLAGS)
360 boost_thread_LDADD          = $(BOOST_LIBS)
361 endif
362
363 if HAVE_BUILTIN_ATOMIC
364 annotate_smart_pointer_SOURCES = annotate_smart_pointer.cpp
365 endif
366
367 annotate_static_SOURCES     = annotate_static.cpp
368
369 if HAVE_OPENMP
370 omp_matinv_CFLAGS           = $(AM_CFLAGS) -fopenmp
371 omp_matinv_LDFLAGS          = -fopenmp
372 omp_matinv_LDADD            = $(LDADD) -lm
373
374 omp_prime_CFLAGS            = $(AM_CFLAGS) -fopenmp
375 omp_prime_LDFLAGS           = -fopenmp
376 omp_prime_LDADD             = $(LDADD) -lm
377
378 omp_printf_CFLAGS           = $(AM_CFLAGS) -fopenmp
379 omp_printf_LDFLAGS          = -fopenmp
380 omp_printf_LDADD            = $(LDADD) -lm
381 endif
382
383 if HAVE_PTHREAD_BARRIER
384 matinv_LDADD                = $(LDADD) -lm
385 endif
386
387 if HAVE_QTCORE
388 qt4_mutex_SOURCES           = qt4_mutex.cpp
389 qt4_mutex_CXXFLAGS          = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
390 qt4_mutex_LDADD             = $(LDADD) $(QTCORE_LIBS)
391
392 qt4_rwlock_SOURCES          = qt4_rwlock.cpp
393 qt4_rwlock_CXXFLAGS         = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
394 qt4_rwlock_LDADD            = $(LDADD) $(QTCORE_LIBS)
395
396 qt4_semaphore_SOURCES       = qt4_semaphore.cpp
397 qt4_semaphore_CXXFLAGS      = $(AM_CXXFLAGS) $(QTCORE_CFLAGS)
398 qt4_semaphore_LDADD         = $(LDADD) $(QTCORE_LIBS)
399 endif
400
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)
405 endif