Home | History | Annotate | Download | only in tests
      1 
      2 include $(top_srcdir)/Makefile.tool-tests.am
      3 
      4 dist_noinst_SCRIPTS =		    \
      5 	compare_error_count_with    \
      6 	filter_annotate_barrier_xml \
      7 	filter_error_count	    \
      8 	filter_error_summary	    \
      9 	filter_stderr               \
     10 	filter_stderr_and_thread_no \
     11 	filter_stderr_and_thread_no_and_offset \
     12 	filter_thread_no	    \
     13 	filter_xml_and_thread_no    \
     14 	run_openmp_test             \
     15 	supported_libpthread	    \
     16 	supported_sem_init
     17 
     18 noinst_HEADERS =                                    \
     19 	tsan_thread_wrappers_pthread.h		    \
     20 	unified_annotations.h
     21 
     22 EXTRA_DIST =                                        \
     23 	annotate_barrier.stderr.exp		    \
     24 	annotate_barrier.vgtest			    \
     25 	annotate_barrier_xml.stderr.exp		    \
     26 	annotate_barrier_xml.vgtest		    \
     27 	annotate_hb_err.stderr.exp		    \
     28 	annotate_hb_err.vgtest			    \
     29 	annotate_hb_race.stderr.exp		    \
     30 	annotate_hb_race.vgtest			    \
     31 	annotate_hbefore.stderr.exp		    \
     32 	annotate_hbefore.vgtest			    \
     33 	annotate_order_1.stderr.exp		    \
     34 	annotate_order_1.vgtest			    \
     35 	annotate_order_2.stderr.exp		    \
     36 	annotate_order_2.vgtest			    \
     37 	annotate_order_3.stderr.exp		    \
     38 	annotate_order_3.vgtest			    \
     39 	annotate_publish_hg.stderr.exp		    \
     40 	annotate_publish_hg.vgtest		    \
     41 	annotate_smart_pointer.stderr.exp	    \
     42 	annotate_smart_pointer.vgtest		    \
     43 	annotate_smart_pointer2.stderr.exp	    \
     44 	annotate_smart_pointer2.vgtest		    \
     45 	annotate_spinlock.stderr.exp		    \
     46 	annotate_spinlock.vgtest		    \
     47 	annotate_rwlock.stderr.exp		    \
     48 	annotate_rwlock.vgtest			    \
     49 	annotate_rwlock_hg.stderr.exp		    \
     50 	annotate_rwlock_hg.vgtest		    \
     51 	annotate_ignore_read.stderr.exp		    \
     52 	annotate_ignore_read.vgtest		    \
     53 	annotate_ignore_rw.stderr.exp		    \
     54 	annotate_ignore_rw.vgtest		    \
     55 	annotate_ignore_rw2.stderr.exp		    \
     56 	annotate_ignore_rw2.vgtest		    \
     57 	annotate_ignore_write.stderr.exp	    \
     58 	annotate_ignore_write.vgtest		    \
     59 	annotate_ignore_write2.stderr.exp	    \
     60 	annotate_ignore_write2.vgtest		    \
     61 	annotate_trace_memory.stderr.exp-32bit	    \
     62 	annotate_trace_memory.stderr.exp-64bit	    \
     63 	annotate_trace_memory.vgtest		    \
     64 	annotate_trace_memory_xml.stderr.exp-32bit  \
     65 	annotate_trace_memory_xml.stderr.exp-64bit  \
     66 	annotate_trace_memory_xml.vgtest	    \
     67 	annotate_static.stderr.exp	            \
     68 	annotate_static.vgtest		            \
     69 	atomic_var.stderr.exp			    \
     70 	atomic_var.vgtest			    \
     71 	bar_bad.stderr.exp			    \
     72 	bar_bad.vgtest				    \
     73 	bar_bad_xml.stderr.exp			    \
     74 	bar_bad_xml.vgtest			    \
     75 	bar_trivial.stderr.exp			    \
     76 	bar_trivial.stdout.exp			    \
     77 	bar_trivial.vgtest			    \
     78 	boost_thread.stderr.exp			    \
     79 	boost_thread.vgtest			    \
     80 	bug-235681.stderr.exp			    \
     81 	bug-235681.vgtest			    \
     82 	circular_buffer.stderr.exp		    \
     83 	circular_buffer.vgtest			    \
     84 	custom_alloc.stderr.exp			    \
     85 	custom_alloc.vgtest			    \
     86 	custom_alloc_fiw.stderr.exp		    \
     87 	custom_alloc_fiw.vgtest			    \
     88 	fp_race.stderr.exp                          \
     89 	fp_race.vgtest                              \
     90 	fp_race2.stderr.exp                         \
     91 	fp_race2.vgtest                             \
     92 	fp_race_xml.stderr.exp                      \
     93 	fp_race_xml.vgtest                          \
     94 	free_is_write.stderr.exp		    \
     95 	free_is_write.vgtest			    \
     96 	free_is_write2.stderr.exp		    \
     97 	free_is_write2.vgtest			    \
     98 	hg01_all_ok.stderr.exp                      \
     99 	hg01_all_ok.vgtest                          \
    100 	hg02_deadlock.stderr.exp                    \
    101 	hg02_deadlock.vgtest                        \
    102 	hg03_inherit.stderr.exp                     \
    103 	hg03_inherit.vgtest                         \
    104 	hg04_race.stderr.exp                        \
    105 	hg04_race.vgtest                            \
    106 	hg05_race2.stderr.exp                       \
    107 	hg05_race2.stderr.exp-powerpc               \
    108 	hg05_race2.vgtest                           \
    109 	hg06_readshared.stderr.exp                  \
    110 	hg06_readshared.vgtest                      \
    111 	hold_lock_1.stderr.exp                      \
    112 	hold_lock_1.vgtest                          \
    113 	hold_lock_2.stderr.exp                      \
    114 	hold_lock_2.vgtest                          \
    115 	linuxthreads_det.stderr.exp                 \
    116 	linuxthreads_det.stderr.exp-linuxthreads    \
    117 	linuxthreads_det.stdout.exp                 \
    118 	linuxthreads_det.stdout.exp-linuxthreads    \
    119 	linuxthreads_det.vgtest                     \
    120 	matinv.stderr.exp                           \
    121 	matinv.stdout.exp                           \
    122 	matinv.vgtest                               \
    123 	memory_allocation.stderr.exp		    \
    124 	memory_allocation.vgtest		    \
    125 	monitor_example.stderr.exp		    \
    126 	monitor_example.vgtest			    \
    127 	new_delete.stderr.exp                       \
    128 	new_delete.vgtest                           \
    129 	omp_matinv.stderr.exp                       \
    130 	omp_matinv.stdout.exp                       \
    131 	omp_matinv.vgtest                           \
    132 	omp_matinv_racy.stderr.exp                  \
    133 	omp_matinv_racy.stdout.exp                  \
    134 	omp_matinv_racy.vgtest                      \
    135 	omp_prime_racy.stderr.exp                   \
    136 	omp_prime_racy.vgtest                       \
    137 	omp_printf.stderr.exp                       \
    138 	omp_printf.vgtest                           \
    139 	pth_barrier.stderr.exp                      \
    140 	pth_barrier.vgtest                          \
    141 	pth_barrier2.stderr.exp                     \
    142 	pth_barrier2.vgtest                         \
    143 	pth_barrier3.stderr.exp                     \
    144 	pth_barrier3.vgtest                         \
    145 	pth_barrier_race.stderr.exp                 \
    146 	pth_barrier_race.vgtest                     \
    147 	pth_barrier_reinit.stderr.exp               \
    148 	pth_barrier_reinit.vgtest                   \
    149 	pth_barrier_thr_cr.stderr.exp               \
    150 	pth_barrier_thr_cr.vgtest                   \
    151 	pth_barrier_thr_cr.supp                     \
    152 	pth_broadcast.stderr.exp                    \
    153 	pth_broadcast.vgtest                        \
    154 	pth_cancel_locked.stderr.exp		    \
    155 	pth_cancel_locked.stderr.exp-darwin	    \
    156 	pth_cancel_locked.vgtest		    \
    157 	pth_cleanup_handler.stderr.exp		    \
    158 	pth_cleanup_handler.vgtest		    \
    159 	pth_cond_race.stderr.exp                    \
    160 	pth_cond_race.vgtest                        \
    161 	pth_cond_race2.stderr.exp                   \
    162 	pth_cond_race2.vgtest                       \
    163 	pth_cond_race3.stderr.exp                   \
    164 	pth_cond_race3.vgtest                       \
    165 	pth_create_chain.stderr.exp                 \
    166 	pth_create_chain.vgtest                     \
    167 	pth_create_glibc_2_0.stderr.exp             \
    168 	pth_create_glibc_2_0.vgtest                 \
    169 	pth_detached.stderr.exp                     \
    170 	pth_detached.stdout.exp                     \
    171 	pth_detached.vgtest                         \
    172 	pth_detached2.stderr.exp                    \
    173 	pth_detached2.stdout.exp                    \
    174 	pth_detached2.vgtest                        \
    175 	pth_detached3.stderr.exp1                   \
    176 	pth_detached3.stderr.exp2                   \
    177 	pth_detached3.vgtest                        \
    178 	pth_detached_sem.stderr.exp                 \
    179 	pth_detached_sem.stdout.exp                 \
    180 	pth_detached_sem.vgtest                     \
    181 	pth_inconsistent_cond_wait.stderr.exp1      \
    182 	pth_inconsistent_cond_wait.stderr.exp2      \
    183 	pth_inconsistent_cond_wait.vgtest           \
    184 	pth_mutex_reinit.stderr.exp		    \
    185 	pth_mutex_reinit.vgtest			    \
    186 	pth_once.stderr.exp			    \
    187 	pth_once.vgtest				    \
    188 	pth_process_shared_mutex.stderr.exp         \
    189 	pth_process_shared_mutex.vgtest             \
    190 	pth_spinlock.stderr.exp                     \
    191 	pth_spinlock.vgtest                         \
    192 	pth_uninitialized_cond.stderr.exp           \
    193 	pth_uninitialized_cond.vgtest               \
    194 	read_and_free_race.stderr.exp		    \
    195 	read_and_free_race.vgtest		    \
    196 	recursive_mutex.stderr.exp-linux            \
    197 	recursive_mutex.stderr.exp-darwin           \
    198 	recursive_mutex.vgtest                      \
    199 	rwlock_race.stderr.exp	                    \
    200 	rwlock_race.stderr.exp2	                    \
    201 	rwlock_race.vgtest                          \
    202 	rwlock_test.stderr.exp	                    \
    203 	rwlock_test.vgtest                          \
    204 	rwlock_type_checking.stderr.exp	            \
    205 	rwlock_type_checking.vgtest                 \
    206 	sem_as_mutex.stderr.exp                     \
    207 	sem_as_mutex.vgtest                         \
    208 	sem_as_mutex2.stderr.exp                    \
    209 	sem_as_mutex2.vgtest                        \
    210 	sem_as_mutex3.stderr.exp                    \
    211 	sem_as_mutex3.vgtest                        \
    212 	sem_open.stderr.exp                         \
    213 	sem_open.vgtest                             \
    214 	sem_open2.stderr.exp                        \
    215 	sem_open2.vgtest                            \
    216 	sem_open3.stderr.exp                        \
    217 	sem_open3.vgtest                            \
    218 	sem_open_traced.stderr.exp                  \
    219 	sem_open_traced.vgtest                      \
    220 	sigalrm.stderr.exp                          \
    221 	sigalrm.vgtest                              \
    222 	sigaltstack.stderr.exp                      \
    223 	sigaltstack.vgtest                          \
    224 	std_thread.stderr.exp		  	    \
    225 	std_thread.vgtest			    \
    226 	tc01_simple_race.stderr.exp                 \
    227 	tc01_simple_race.vgtest                     \
    228 	tc02_simple_tls.stderr.exp                  \
    229 	tc02_simple_tls.vgtest                      \
    230 	tc03_re_excl.stderr.exp                     \
    231 	tc03_re_excl.vgtest                         \
    232 	tc04_free_lock.stderr.exp-x86               \
    233 	tc04_free_lock.stderr.exp-ppc               \
    234 	tc04_free_lock.stderr.exp-s390              \
    235 	tc04_free_lock.vgtest                       \
    236 	tc05_simple_race.stderr.exp                 \
    237 	tc05_simple_race.vgtest                     \
    238 	tc06_two_races.stderr.exp                   \
    239 	tc06_two_races.vgtest                       \
    240 	tc07_hbl1.stderr.exp                        \
    241 	tc07_hbl1.stdout.exp                        \
    242 	tc07_hbl1.vgtest                            \
    243 	tc08_hbl2.stderr.exp                        \
    244 	tc08_hbl2.stdout.exp                        \
    245 	tc08_hbl2.vgtest                            \
    246 	tc09_bad_unlock.stderr.exp-x86              \
    247 	tc09_bad_unlock.stderr.exp-ppc              \
    248 	tc09_bad_unlock.stderr.exp-glibc2.8         \
    249 	tc09_bad_unlock.stderr.exp-s390             \
    250 	tc09_bad_unlock.vgtest                      \
    251 	tc10_rec_lock.stderr.exp                    \
    252 	tc10_rec_lock.vgtest                        \
    253 	tc11_XCHG.stderr.exp tc11_XCHG.stdout.exp   \
    254 	tc11_XCHG.vgtest                            \
    255 	tc12_rwl_trivial.stderr.exp                 \
    256 	tc12_rwl_trivial.vgtest                     \
    257 	tc13_laog1.stderr.exp                       \
    258 	tc13_laog1.vgtest                           \
    259 	tc15_laog_lockdel.stderr.exp                \
    260 	tc15_laog_lockdel.vgtest                    \
    261 	tc16_byterace.stderr.exp                    \
    262 	tc16_byterace.vgtest                        \
    263 	tc17_sembar.stderr.exp                      \
    264 	tc17_sembar.vgtest                          \
    265 	tc18_semabuse.stderr.exp                    \
    266 	tc18_semabuse.vgtest                        \
    267 	tc19_shadowmem.stderr.exp-32bit             \
    268 	tc19_shadowmem.stderr.exp-64bit             \
    269 	tc19_shadowmem.vgtest                       \
    270 	tc21_pthonce.stderr.exp                     \
    271 	tc21_pthonce.stdout.exp                     \
    272 	tc21_pthonce.vgtest                         \
    273 	tc22_exit_w_lock.stderr.exp-32bit	    \
    274 	tc22_exit_w_lock.stderr.exp-64bit           \
    275 	tc22_exit_w_lock.vgtest                     \
    276 	tc23_bogus_condwait.stderr.exp-linux-x86    \
    277 	tc23_bogus_condwait.stderr.exp-linux-ppc    \
    278 	tc23_bogus_condwait.stderr.exp-darwin-x86   \
    279 	tc23_bogus_condwait.stderr.exp-darwin-amd64 \
    280 	tc23_bogus_condwait.vgtest                  \
    281 	tc24_nonzero_sem.stderr.exp                 \
    282 	tc24_nonzero_sem.vgtest                     \
    283 	thread_name.stderr.exp			    \
    284 	thread_name.vgtest			    \
    285 	thread_name_xml.stderr.exp		    \
    286 	thread_name_xml.vgtest			    \
    287 	threaded-fork.stderr.exp		    \
    288 	threaded-fork.vgtest			    \
    289 	trylock.stderr.exp                          \
    290 	trylock.vgtest				    \
    291 	unit_bitmap.stderr.exp                      \
    292 	unit_bitmap.vgtest                          \
    293 	unit_vc.stderr.exp                          \
    294 	unit_vc.vgtest
    295 
    296 
    297 check_PROGRAMS =      \
    298   annotate_hb_err     \
    299   annotate_hb_race    \
    300   annotate_ignore_rw  \
    301   annotate_ignore_write \
    302   annotate_publish_hg \
    303   annotate_static     \
    304   bug-235681          \
    305   custom_alloc        \
    306   fp_race             \
    307   free_is_write	      \
    308   hold_lock           \
    309   linuxthreads_det    \
    310   memory_allocation   \
    311   monitor_example     \
    312   new_delete          \
    313   pth_broadcast       \
    314   pth_cancel_locked   \
    315   pth_cleanup_handler \
    316   pth_cond_race       \
    317   pth_create_chain    \
    318   pth_detached        \
    319   pth_detached_sem    \
    320   pth_detached3       \
    321   pth_inconsistent_cond_wait \
    322   pth_mutex_reinit    \
    323   pth_process_shared_mutex   \
    324   pth_uninitialized_cond \
    325   recursive_mutex     \
    326   rwlock_race         \
    327   rwlock_test         \
    328   rwlock_type_checking \
    329   sem_as_mutex        \
    330   sem_open            \
    331   sigalrm             \
    332   thread_name         \
    333   threaded-fork       \
    334   trylock             \
    335   unit_bitmap         \
    336   unit_vc
    337 
    338 if HAVE_BOOST_1_35
    339 check_PROGRAMS += boost_thread
    340 endif
    341 
    342 if HAVE_BUILTIN_ATOMIC
    343 check_PROGRAMS +=        \
    344   annotate_barrier       \
    345   annotate_rwlock        \
    346   atomic_var             \
    347   circular_buffer
    348 endif
    349 
    350 if HAVE_BUILTIN_ATOMIC64
    351 check_PROGRAMS +=        \
    352   annotate_trace_memory
    353 endif
    354 
    355 if HAVE_BUILTIN_ATOMIC_CXX
    356 check_PROGRAMS +=        \
    357   annotate_smart_pointer \
    358   tsan_unittest
    359 endif
    360 
    361 if HAVE_SHARED_POINTER_ANNOTATION
    362 check_PROGRAMS += \
    363   std_thread
    364 endif
    365 
    366 if HAVE_OPENMP
    367 check_PROGRAMS += omp_matinv omp_prime omp_printf
    368 endif
    369 
    370 if HAVE_PTHREAD_BARRIER
    371 check_PROGRAMS += matinv pth_barrier pth_barrier_race pth_barrier_reinit \
    372 	pth_barrier_thr_cr
    373 endif
    374 
    375 if HAVE_PTHREAD_CREATE_GLIBC_2_0
    376 check_PROGRAMS += pth_create_glibc_2_0
    377 endif
    378 
    379 if HAVE_PTHREAD_SPINLOCK
    380 check_PROGRAMS += pth_spinlock
    381 endif
    382 
    383 
    384 AM_CFLAGS   += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
    385 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) @FLAG_W_EXTRA@ -Wno-inline -Wno-unused-parameter
    386 
    387 LDADD = -lpthread
    388 
    389 
    390 monitor_example_SOURCES     = monitor_example.cpp
    391 new_delete_SOURCES          = new_delete.cpp
    392 
    393 pth_cleanup_handler_CFLAGS  = $(AM_CFLAGS) @FLAG_W_NO_EMPTY_BODY@
    394 
    395 tsan_unittest_SOURCES       = tsan_unittest.cpp
    396 tsan_unittest_CXXFLAGS      = $(AM_CXXFLAGS) \
    397 			-DTHREAD_WRAPPERS='"tsan_thread_wrappers_pthread.h"'
    398 
    399 unit_bitmap_CFLAGS          = $(AM_CFLAGS) -O2 \
    400                               -DENABLE_DRD_CONSISTENCY_CHECKS \
    401                               @FLAG_UNLIMITED_INLINE_UNIT_GROWTH@
    402 unit_bitmap_LDADD           = # nothing, i.e. not -lpthread
    403 
    404 unit_vc_CFLAGS              = $(AM_CFLAGS) -DENABLE_DRD_CONSISTENCY_CHECKS
    405 unit_vc_LDADD               = # nothing, i.e. not -lpthread
    406 
    407 if HAVE_BOOST_1_35
    408 boost_thread_SOURCES        = boost_thread.cpp
    409 boost_thread_CXXFLAGS       = $(AM_CXXFLAGS) $(BOOST_CFLAGS)
    410 boost_thread_LDADD          = $(BOOST_LIBS)
    411 endif
    412 
    413 if HAVE_BUILTIN_ATOMIC
    414 annotate_smart_pointer_SOURCES = annotate_smart_pointer.cpp
    415 endif
    416 
    417 annotate_static_SOURCES     = annotate_static.cpp
    418 
    419 if HAVE_OPENMP
    420 omp_matinv_CFLAGS           = $(AM_CFLAGS) -fopenmp
    421 omp_matinv_LDFLAGS          = -fopenmp
    422 omp_matinv_LDADD            = $(LDADD) -lm
    423 
    424 omp_prime_CFLAGS            = $(AM_CFLAGS) -fopenmp
    425 omp_prime_LDFLAGS           = -fopenmp
    426 omp_prime_LDADD             = $(LDADD) -lm
    427 
    428 omp_printf_CFLAGS           = $(AM_CFLAGS) -fopenmp
    429 omp_printf_LDFLAGS          = -fopenmp
    430 omp_printf_LDADD            = $(LDADD) -lm
    431 endif
    432 
    433 if HAVE_PTHREAD_BARRIER
    434 matinv_LDADD                = $(LDADD) -lm
    435 endif
    436 
    437 std_thread_SOURCES          = std_thread.cpp
    438 std_thread_CXXFLAGS         = $(AM_CXXFLAGS) -std=c++0x
    439