Home | History | Annotate | Download | only in tests
      1 
      2 include $(top_srcdir)/Makefile.tool-tests.am
      3 
      4 dist_noinst_SCRIPTS = filter_stderr   \
      5 		      filter_helgrind \
      6 		      filter_xml
      7 
      8 EXTRA_DIST = \
      9 	annotate_hbefore.vgtest annotate_hbefore.stdout.exp \
     10 		annotate_hbefore.stderr.exp \
     11 	annotate_rwlock.vgtest annotate_rwlock.stdout.exp \
     12 		annotate_rwlock.stderr.exp \
     13 	annotate_smart_pointer.vgtest annotate_smart_pointer.stdout.exp \
     14 		annotate_smart_pointer.stderr.exp \
     15 	cond_timedwait_invalid.vgtest cond_timedwait_invalid.stdout.exp \
     16 		cond_timedwait_invalid.stderr.exp \
     17 	bar_bad.vgtest bar_bad.stdout.exp bar_bad.stderr.exp \
     18 	bar_trivial.vgtest bar_trivial.stdout.exp bar_trivial.stderr.exp \
     19 	free_is_write.vgtest free_is_write.stdout.exp \
     20 		free_is_write.stderr.exp \
     21 	hg01_all_ok.vgtest hg01_all_ok.stdout.exp hg01_all_ok.stderr.exp \
     22 	hg02_deadlock.vgtest hg02_deadlock.stdout.exp hg02_deadlock.stderr.exp \
     23 	hg03_inherit.vgtest hg03_inherit.stdout.exp hg03_inherit.stderr.exp \
     24 	hg04_race.vgtest hg04_race.stdout.exp hg04_race.stderr.exp \
     25 	hg05_race2.vgtest hg05_race2.stdout.exp hg05_race2.stderr.exp \
     26 	hg06_readshared.vgtest hg06_readshared.stdout.exp \
     27 		hg06_readshared.stderr.exp \
     28 	locked_vs_unlocked1_fwd.vgtest \
     29 		locked_vs_unlocked1_fwd.stderr.exp \
     30 		locked_vs_unlocked1_fwd.stdout.exp \
     31 	locked_vs_unlocked1_rev.vgtest \
     32 		locked_vs_unlocked1_rev.stderr.exp \
     33 		locked_vs_unlocked1_rev.stdout.exp \
     34 	locked_vs_unlocked2.vgtest \
     35 		locked_vs_unlocked2.stderr.exp \
     36 		locked_vs_unlocked2.stdout.exp \
     37 	locked_vs_unlocked3.vgtest \
     38 		locked_vs_unlocked3.stderr.exp \
     39 		locked_vs_unlocked3.stdout.exp \
     40 	pth_barrier1.vgtest pth_barrier1.stdout.exp pth_barrier1.stderr.exp \
     41 	pth_barrier2.vgtest pth_barrier2.stdout.exp pth_barrier2.stderr.exp \
     42 	pth_barrier3.vgtest pth_barrier3.stdout.exp pth_barrier3.stderr.exp \
     43 	pth_destroy_cond.vgtest \
     44 		pth_destroy_cond.stdout.exp pth_destroy_cond.stderr.exp \
     45 	pth_spinlock.vgtest pth_spinlock.stdout.exp pth_spinlock.stderr.exp \
     46 	rwlock_race.vgtest rwlock_race.stdout.exp rwlock_race.stderr.exp \
     47 	rwlock_test.vgtest rwlock_test.stdout.exp rwlock_test.stderr.exp \
     48 	t2t_laog.vgtest t2t_laog.stdout.exp t2t_laog.stderr.exp \
     49 	tc01_simple_race.vgtest tc01_simple_race.stdout.exp \
     50 		tc01_simple_race.stderr.exp \
     51 	tc02_simple_tls.vgtest tc02_simple_tls.stdout.exp \
     52 		tc02_simple_tls.stderr.exp \
     53 	tc03_re_excl.vgtest tc03_re_excl.stdout.exp \
     54 		tc03_re_excl.stderr.exp \
     55 	tc04_free_lock.vgtest tc04_free_lock.stdout.exp \
     56 		tc04_free_lock.stderr.exp \
     57 	tc05_simple_race.vgtest tc05_simple_race.stdout.exp \
     58 		tc05_simple_race.stderr.exp \
     59 	tc06_two_races.vgtest tc06_two_races.stdout.exp \
     60 		tc06_two_races.stderr.exp \
     61 	tc06_two_races_xml.vgtest tc06_two_races_xml.stdout.exp \
     62 		tc06_two_races_xml.stderr.exp \
     63 	tc07_hbl1.vgtest tc07_hbl1.stdout.exp tc07_hbl1.stderr.exp \
     64 	tc08_hbl2.vgtest tc08_hbl2.stdout.exp tc08_hbl2.stderr.exp \
     65 	tc09_bad_unlock.vgtest tc09_bad_unlock.stdout.exp \
     66 		tc09_bad_unlock.stderr.exp \
     67 	tc10_rec_lock.vgtest tc10_rec_lock.stdout.exp tc10_rec_lock.stderr.exp \
     68 	tc11_XCHG.vgtest tc11_XCHG.stdout.exp tc11_XCHG.stderr.exp \
     69 	tc12_rwl_trivial.vgtest tc12_rwl_trivial.stdout.exp \
     70 		tc12_rwl_trivial.stderr.exp \
     71 		tc12_rwl_trivial.stderr.exp-darwin970 \
     72 	tc13_laog1.vgtest tc13_laog1.stdout.exp tc13_laog1.stderr.exp \
     73 	tc14_laog_dinphils.vgtest tc14_laog_dinphils.stdout.exp \
     74 		tc14_laog_dinphils.stderr.exp \
     75 	tc15_laog_lockdel.vgtest tc15_laog_lockdel.stdout.exp \
     76 		tc15_laog_lockdel.stderr.exp \
     77 	tc16_byterace.vgtest tc16_byterace.stdout.exp \
     78 		tc16_byterace.stderr.exp \
     79 	tc17_sembar.vgtest tc17_sembar.stdout.exp \
     80 		tc17_sembar.stderr.exp \
     81 	tc18_semabuse.vgtest tc18_semabuse.stdout.exp \
     82 		tc18_semabuse.stderr.exp \
     83 	tc19_shadowmem.vgtest tc19_shadowmem.stdout.exp \
     84 		tc19_shadowmem.stderr.exp \
     85 	tc20_verifywrap.vgtest tc20_verifywrap.stdout.exp \
     86 		tc20_verifywrap.stderr.exp \
     87 	tc21_pthonce.vgtest tc21_pthonce.stdout.exp tc21_pthonce.stderr.exp \
     88 	tc22_exit_w_lock.vgtest tc22_exit_w_lock.stdout.exp \
     89 		tc22_exit_w_lock.stderr.exp \
     90 		tc22_exit_w_lock.stderr.exp-kfail-x86 \
     91 	tc23_bogus_condwait.vgtest tc23_bogus_condwait.stdout.exp \
     92 		tc23_bogus_condwait.stderr.exp \
     93 	tc24_nonzero_sem.vgtest tc24_nonzero_sem.stdout.exp \
     94 		tc24_nonzero_sem.stderr.exp
     95 
     96 # XXX: tc18_semabuse uses operations that are unsupported on Darwin.  It
     97 # should be conditionally compiled like tc20_verifywrap is.
     98 check_PROGRAMS = \
     99 	annotate_hbefore \
    100 	cond_timedwait_invalid \
    101 	free_is_write \
    102 	hg01_all_ok \
    103 	hg02_deadlock \
    104 	hg03_inherit \
    105 	hg04_race \
    106 	hg05_race2 \
    107 	hg06_readshared \
    108 	locked_vs_unlocked1 \
    109 	locked_vs_unlocked2 \
    110 	locked_vs_unlocked3 \
    111 	pth_destroy_cond \
    112 	t2t \
    113 	tc01_simple_race \
    114 	tc02_simple_tls \
    115 	tc03_re_excl \
    116 	tc04_free_lock \
    117 	tc05_simple_race \
    118 	tc06_two_races \
    119 	tc07_hbl1 \
    120 	tc08_hbl2 \
    121 	tc09_bad_unlock \
    122 	tc10_rec_lock \
    123 	tc11_XCHG \
    124 	tc12_rwl_trivial \
    125 	tc13_laog1 \
    126 	tc14_laog_dinphils \
    127 	tc15_laog_lockdel \
    128 	tc16_byterace \
    129 	tc17_sembar \
    130 	tc18_semabuse \
    131 	tc19_shadowmem \
    132 	tc21_pthonce \
    133 	tc23_bogus_condwait \
    134 	tc24_nonzero_sem
    135 
    136 # DDD: it seg faults, and then the Valgrind exit path hangs
    137 # JRS 29 July 09: it craps out in the stack unwinder, in
    138 #==13480==    at 0xF00B81FF: ??? f00b8180 VG_(get_StackTrace_wrk)
    139 #==13480==    by 0xF00B83F8: ??? f00b8340 VG_(get_StackTrace)
    140 #==13480==    by 0xF009FE19: ??? f009fd70 record_ExeContext_wrk
    141 #==13480==    by 0xF009D92E: ??? f009d8c0 construct_error
    142 #==13480==    by 0xF009F001: ??? f009eef0 VG_(maybe_record_error)
    143 #==13480==    by 0xF0081F80: ??? f0081f00 HG_(record_error_misc)
    144 #==13480==    by 0xF0089C00: ??? f0089b80 evh__pre_thread_ll_exit
    145 #==13480==    by 0xF01111D1: ??? f0111070 run_a_thread_NORETURN
    146 #==13480==    by 0xF0111512: ??? f0111500 start_thread_NORETURN
    147 # when the thread being unwound is at __bsdthread_terminate+0
    148 #
    149 # Like Tom says, the stack unwinder protection is bollocks.
    150 # We should junk all previous schemes and simply get the 
    151 # stack unwinder to consult aspacem at each frame (cache-accelerated,
    152 # of course) to check each page it visits is accessible.
    153 #
    154 if ! VGCONF_PLATFORMS_INCLUDE_X86_DARWIN
    155    check_PROGRAMS += \
    156 	tc22_exit_w_lock
    157 endif
    158 
    159 if VGCONF_PLATFORMS_INCLUDE_ARM_LINUX
    160 annotate_hbefore_CFLAGS = $(AM_CFLAGS) -mcpu=cortex-a8
    161 tc07_hbl1_CFLAGS        = $(AM_CFLAGS) -mcpu=cortex-a8
    162 tc08_hbl2_CFLAGS        = $(AM_CFLAGS) -mcpu=cortex-a8
    163 else
    164 annotate_hbefore_CFLAGS = $(AM_CFLAGS)
    165 tc07_hbl1_CFLAGS        = $(AM_CFLAGS)
    166 tc08_hbl2_CFLAGS        = $(AM_CFLAGS)
    167 endif
    168 
    169 if HAVE_PTHREAD_BARRIER
    170 check_PROGRAMS += bar_bad bar_trivial
    171 endif
    172 
    173 if HAVE_PTHREAD_MUTEX_TIMEDLOCK
    174 check_PROGRAMS += tc20_verifywrap
    175 endif
    176 
    177 if HAVE_BUILTIN_ATOMIC
    178 check_PROGRAMS += annotate_rwlock
    179 endif
    180 
    181 AM_CFLAGS   += $(AM_FLAG_M3264_PRI)
    182 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
    183 
    184 LDADD = -lpthread
    185 
    186 if VGCONF_OS_IS_DARWIN
    187 annotate_hbefore_CFLAGS = $(AM_CFLAGS) -mdynamic-no-pic
    188 else
    189 annotate_hbefore_CFLAGS = $(AM_CFLAGS)
    190 endif
    191