]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/valgrind/src/valgrind-3.6.0-svn/drd/tests/Makefile.am
update
[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         unified_annotations.h
16
17 EXTRA_DIST =                                        \
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                       \
57         atomic_var.vgtest                           \
58         bar_bad.stderr.exp                          \
59         bar_bad.vgtest                              \
60         bar_trivial.stderr.exp                      \
61         bar_trivial.stdout.exp                      \
62         bar_trivial.vgtest                          \
63         boost_thread.stderr.exp                     \
64         boost_thread.vgtest                         \
65         bug-235681.stderr.exp                       \
66         bug-235681.vgtest                           \
67         circular_buffer.stderr.exp                  \
68         circular_buffer.vgtest                      \
69         custom_alloc.stderr.exp                     \
70         custom_alloc.vgtest                         \
71         custom_alloc_fiw.stderr.exp                 \
72         custom_alloc_fiw.vgtest                     \
73         fp_race.stderr.exp                          \
74         fp_race.vgtest                              \
75         fp_race2.stderr.exp                         \
76         fp_race2.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                      \
82         hg01_all_ok.vgtest                          \
83         hg02_deadlock.stderr.exp                    \
84         hg02_deadlock.vgtest                        \
85         hg03_inherit.stderr.exp                     \
86         hg03_inherit.vgtest                         \
87         hg04_race.stderr.exp                        \
88         hg04_race.vgtest                            \
89         hg05_race2.stderr.exp                       \
90         hg05_race2.stderr.exp-powerpc               \
91         hg05_race2.vgtest                           \
92         hg06_readshared.stderr.exp                  \
93         hg06_readshared.vgtest                      \
94         hold_lock_1.stderr.exp                      \
95         hold_lock_1.vgtest                          \
96         hold_lock_2.stderr.exp                      \
97         hold_lock_2.vgtest                          \
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                     \
103         matinv.stderr.exp                           \
104         matinv.stdout.exp                           \
105         matinv.vgtest                               \
106         memory_allocation.stderr.exp                \
107         memory_allocation.vgtest                    \
108         monitor_example.stderr.exp                  \
109         monitor_example.vgtest                      \
110         new_delete.stderr.exp                       \
111         new_delete.vgtest                           \
112         omp_matinv.stderr.exp                       \
113         omp_matinv.stdout.exp                       \
114         omp_matinv.vgtest                           \
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                       \
121         omp_printf.vgtest                           \
122         pth_barrier.stderr.exp                      \
123         pth_barrier.vgtest                          \
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                         \
167         pth_once.vgtest                             \
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                       \
175         qt4_atomic.vgtest                           \
176         qt4_mutex.stderr.exp                        \
177         qt4_mutex.vgtest                            \
178         qt4_rwlock.stderr.exp                       \
179         qt4_rwlock.vgtest                           \
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                     \
189         rwlock_race.vgtest                          \
190         rwlock_test.stderr.exp                      \
191         rwlock_test.vgtest                          \
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                         \
201         sem_open.vgtest                             \
202         sem_open2.stderr.exp                        \
203         sem_open2.vgtest                            \
204         sem_open3.stderr.exp                        \
205         sem_open3.vgtest                            \
206         sem_open_traced.stderr.exp                  \
207         sem_open_traced.vgtest                      \
208         sigalrm.stderr.exp                          \
209         sigalrm.vgtest                              \
210         sigaltstack.stderr.exp                      \
211         sigaltstack.vgtest                          \
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                        \
226         tc07_hbl1.vgtest                            \
227         tc08_hbl2.stderr.exp                        \
228         tc08_hbl2.stdout.exp                        \
229         tc08_hbl2.vgtest                            \
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   \
236         tc11_XCHG.vgtest                            \
237         tc12_rwl_trivial.stderr.exp                 \
238         tc12_rwl_trivial.vgtest                     \
239         tc13_laog1.stderr.exp                       \
240         tc13_laog1.vgtest                           \
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                      \
246         tc17_sembar.vgtest                          \
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                      \
266         thread_name.vgtest                          \
267         threaded-fork.stderr.exp                    \
268         threaded-fork.vgtest                        \
269         trylock.stderr.exp                          \
270         trylock.vgtest                              \
271         unit_bitmap.stderr.exp                      \
272         unit_bitmap.vgtest                          \
273         unit_vc.stderr.exp                          \
274         unit_vc.vgtest
275
276
277 check_PROGRAMS =      \
278   annotate_hb_err     \
279   annotate_hb_race    \
280   annotate_ignore_rw  \
281   annotate_ignore_write \
282   annotate_publish_hg \
283   annotate_static     \
284   bug-235681          \
285   custom_alloc        \
286   fp_race             \
287   free_is_write       \
288   hold_lock           \
289   linuxthreads_det    \
290   memory_allocation   \
291   monitor_example     \
292   new_delete          \
293   pth_broadcast       \
294   pth_cancel_locked   \
295   pth_cleanup_handler \
296   pth_cond_race       \
297   pth_create_chain    \
298   pth_detached        \
299   pth_detached_sem    \
300   pth_detached3       \
301   pth_inconsistent_cond_wait \
302   pth_mutex_reinit    \
303   pth_process_shared_mutex   \
304   pth_uninitialized_cond \
305   recursive_mutex     \
306   rwlock_race         \
307   rwlock_test         \
308   rwlock_type_checking \
309   sem_as_mutex        \
310   sem_open            \
311   sigalrm             \
312   thread_name         \
313   threaded-fork       \
314   trylock             \
315   unit_bitmap         \
316   unit_vc
317
318 if HAVE_BOOST_1_35
319 check_PROGRAMS += boost_thread
320 endif
321
322 if HAVE_BUILTIN_ATOMIC
323 check_PROGRAMS +=        \
324   annotate_barrier       \
325   annotate_rwlock        \
326   atomic_var             \
327   circular_buffer
328 endif
329
330 if HAVE_BUILTIN_ATOMIC_CXX
331 check_PROGRAMS +=        \
332   annotate_smart_pointer \
333   tsan_unittest
334 endif
335
336 if HAVE_OPENMP
337 check_PROGRAMS += omp_matinv omp_prime omp_printf
338 endif
339
340 if HAVE_PTHREAD_BARRIER
341 check_PROGRAMS += matinv pth_barrier pth_barrier_race pth_barrier_reinit
342 endif
343
344 if HAVE_PTHREAD_CREATE_GLIBC_2_0
345 check_PROGRAMS += pth_create_glibc_2_0
346 endif
347
348 if HAVE_PTHREAD_SPINLOCK
349 check_PROGRAMS += pth_spinlock
350 endif
351
352
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
355
356 LDADD = -lpthread
357
358
359 monitor_example_SOURCES     = monitor_example.cpp
360 new_delete_SOURCES          = new_delete.cpp
361
362 pth_cleanup_handler_CFLAGS  = $(AM_CFLAGS) @FLAG_W_NO_EMPTY_BODY@
363
364 tsan_unittest_SOURCES       = tsan_unittest.cpp
365 tsan_unittest_CXXFLAGS      = $(AM_CXXFLAGS) \
366                         -DTHREAD_WRAPPERS='"tsan_thread_wrappers_pthread.h"'
367
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
372
373 unit_vc_CFLAGS              = $(AM_CFLAGS) -DENABLE_DRD_CONSISTENCY_CHECKS
374 unit_vc_LDADD               = # nothing, i.e. not -lpthread
375
376 if HAVE_BOOST_1_35
377 boost_thread_SOURCES        = boost_thread.cpp
378 boost_thread_CXXFLAGS       = $(AM_CXXFLAGS) $(BOOST_CFLAGS)
379 boost_thread_LDADD          = $(BOOST_LIBS)
380 endif
381
382 if HAVE_BUILTIN_ATOMIC
383 annotate_smart_pointer_SOURCES = annotate_smart_pointer.cpp
384 endif
385
386 annotate_static_SOURCES     = annotate_static.cpp
387
388 if HAVE_OPENMP
389 omp_matinv_CFLAGS           = $(AM_CFLAGS) -fopenmp
390 omp_matinv_LDFLAGS          = -fopenmp
391 omp_matinv_LDADD            = $(LDADD) -lm
392
393 omp_prime_CFLAGS            = $(AM_CFLAGS) -fopenmp
394 omp_prime_LDFLAGS           = -fopenmp
395 omp_prime_LDADD             = $(LDADD) -lm
396
397 omp_printf_CFLAGS           = $(AM_CFLAGS) -fopenmp
398 omp_printf_LDFLAGS          = -fopenmp
399 omp_printf_LDADD            = $(LDADD) -lm
400 endif
401
402 if HAVE_PTHREAD_BARRIER
403 matinv_LDADD                = $(LDADD) -lm
404 endif