Home | History | Annotate | Download | only in tests
      1 
      2 include $(top_srcdir)/Makefile.tool-tests.am
      3 
      4 SUBDIRS = .
      5 
      6 # Arch-specific tests.
      7 if VGCONF_ARCHS_INCLUDE_X86
      8 SUBDIRS += x86
      9 endif
     10 if VGCONF_ARCHS_INCLUDE_AMD64
     11 SUBDIRS += amd64
     12 endif
     13 if VGCONF_ARCHS_INCLUDE_MIPS32
     14 SUBDIRS += mips32
     15 endif
     16 if VGCONF_ARCHS_INCLUDE_MIPS64
     17 SUBDIRS += mips64
     18 endif
     19 if VGCONF_ARCHS_INCLUDE_PPC32
     20 SUBDIRS += ppc32
     21 endif
     22 if VGCONF_ARCHS_INCLUDE_PPC64
     23 SUBDIRS += ppc64
     24 endif
     25 if VGCONF_ARCHS_INCLUDE_S390X
     26 SUBDIRS += s390x
     27 endif
     28 
     29 # OS-specific tests
     30 if VGCONF_OS_IS_LINUX
     31 SUBDIRS += linux
     32 endif
     33 if VGCONF_OS_IS_DARWIN
     34 SUBDIRS += darwin
     35 endif
     36 if VGCONF_OS_IS_SOLARIS
     37 SUBDIRS += solaris
     38 endif
     39 
     40 # Platform-specific tests
     41 if VGCONF_PLATFORMS_INCLUDE_X86_LINUX
     42 SUBDIRS += x86-linux
     43 endif
     44 if VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX
     45 SUBDIRS += amd64-linux
     46 endif
     47 if VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX
     48 SUBDIRS += arm64-linux
     49 endif
     50 if VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS
     51 SUBDIRS += x86-solaris
     52 endif
     53 if VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS
     54 SUBDIRS += amd64-solaris
     55 endif
     56 
     57 DIST_SUBDIRS = x86 amd64 ppc32 ppc64 s390x linux \
     58 		darwin solaris x86-linux amd64-linux arm64-linux \
     59 		x86-solaris amd64-solaris mips32 mips64 \
     60 		common .
     61 
     62 dist_noinst_SCRIPTS = \
     63 	filter_addressable \
     64 	filter_allocs \
     65 	filter_dw4 \
     66 	filter_leak_cases_possible \
     67 	filter_stderr filter_xml \
     68 	filter_strchr \
     69 	filter_varinfo3 \
     70 	filter_memcheck \
     71 	filter_overlaperror
     72 
     73 noinst_HEADERS = leak.h
     74 
     75 EXTRA_DIST = \
     76 	accounting.stderr.exp accounting.vgtest \
     77 	addressable.stderr.exp addressable.stdout.exp addressable.vgtest \
     78 	atomic_incs.stderr.exp atomic_incs.vgtest \
     79 	atomic_incs.stdout.exp-32bit atomic_incs.stdout.exp-64bit \
     80 	badaddrvalue.stderr.exp \
     81 	badaddrvalue.stdout.exp badaddrvalue.vgtest \
     82 	badfree-2trace.stderr.exp badfree-2trace.vgtest \
     83 	badfree.stderr.exp badfree.vgtest \
     84 	badfree3.stderr.exp badfree3.vgtest \
     85 	badjump.stderr.exp badjump.vgtest \
     86 	badjump2.stderr.exp badjump2.vgtest \
     87 	badjump.stderr.exp-kfail \
     88 	badjump2.stderr.exp-kfail \
     89 	badloop.stderr.exp badloop.vgtest \
     90 	badpoll.stderr.exp badpoll.vgtest \
     91 	badrw.stderr.exp badrw.vgtest badrw.stderr.exp-s390x-mvc \
     92 	big_blocks_freed_list.stderr.exp big_blocks_freed_list.vgtest \
     93 	brk2.stderr.exp brk2.vgtest \
     94 	buflen_check.stderr.exp buflen_check.vgtest \
     95 		buflen_check.stderr.exp-kfail \
     96 	bug155125.stderr.exp bug155125.vgtest \
     97 	bug287260.stderr.exp bug287260.vgtest \
     98 	bug340392.stderr.exp bug340392.vgtest \
     99 	calloc-overflow.stderr.exp calloc-overflow.vgtest\
    100 	cdebug_zlib.stderr.exp cdebug_zlib.vgtest \
    101 	cdebug_zlib_gnu.stderr.exp cdebug_zlib_gnu.vgtest \
    102 	client-msg.stderr.exp client-msg.vgtest \
    103 	client-msg-as-xml.stderr.exp client-msg-as-xml.vgtest \
    104 	clientperm.stderr.exp \
    105 	clientperm.stdout.exp clientperm.vgtest \
    106 	clireq_nofill.stderr.exp \
    107 	clireq_nofill.stdout.exp clireq_nofill.vgtest \
    108 	clo_redzone_default.vgtest clo_redzone_128.vgtest \
    109 	clo_redzone_default.stderr.exp clo_redzone_128.stderr.exp \
    110 	cond_ld.vgtest cond_ld.stdout.exp cond_ld.stderr.exp-arm \
    111 		cond_ld.stderr.exp-64bit-non-arm \
    112 		cond_ld.stderr.exp-32bit-non-arm \
    113 	cond_st.vgtest cond_st.stdout.exp cond_st.stderr.exp-arm \
    114 		cond_st.stderr.exp-64bit-non-arm \
    115 		cond_st.stderr.exp-32bit-non-arm \
    116 	leak_cpp_interior.stderr.exp leak_cpp_interior.stderr.exp-64bit leak_cpp_interior.vgtest \
    117 		leak_cpp_interior.stderr.exp-solaris leak_cpp_interior.stderr.exp-64bit-solaris \
    118 	custom_alloc.stderr.exp custom_alloc.vgtest \
    119 		custom_alloc.stderr.exp-s390x-mvc \
    120 	custom-overlap.stderr.exp custom-overlap.vgtest \
    121 	deep-backtrace.vgtest deep-backtrace.stderr.exp \
    122 	demangle.stderr.exp demangle.vgtest \
    123 	big_debuginfo_symbol.stderr.exp big_debuginfo_symbol.vgtest \
    124 	describe-block.stderr.exp describe-block.vgtest \
    125 	descr_belowsp.vgtest descr_belowsp.stderr.exp \
    126 	doublefree.stderr.exp doublefree.vgtest \
    127 	dw4.vgtest dw4.stderr.exp dw4.stderr.exp-solaris dw4.stdout.exp \
    128 	err_disable1.vgtest err_disable1.stderr.exp \
    129 	err_disable2.vgtest err_disable2.stderr.exp \
    130 	err_disable3.vgtest err_disable3.stderr.exp \
    131 	err_disable4.vgtest err_disable4.stderr.exp \
    132 	err_disable_arange1.vgtest err_disable_arange1.stderr.exp \
    133 	erringfds.stderr.exp erringfds.stdout.exp erringfds.vgtest \
    134 	error_counts.stderr.exp error_counts.vgtest \
    135 	errs1.stderr.exp errs1.vgtest \
    136 	exitprog.stderr.exp exitprog.vgtest \
    137 	execve1.stderr.exp execve1.vgtest execve1.stderr.exp-kfail \
    138 	execve2.stderr.exp execve2.vgtest execve2.stderr.exp-kfail \
    139 	file_locking.stderr.exp file_locking.vgtest \
    140 	fprw.stderr.exp fprw.stderr.exp-mips32-be fprw.stderr.exp-mips32-le \
    141 		fprw.vgtest \
    142 	fwrite.stderr.exp fwrite.vgtest fwrite.stderr.exp-kfail \
    143 	gone_abrt_xml.vgtest gone_abrt_xml.stderr.exp gone_abrt_xml.stderr.exp-solaris \
    144 	holey_buffer_too_small.vgtest holey_buffer_too_small.stdout.exp \
    145 	holey_buffer_too_small.stderr.exp \
    146 	inits.stderr.exp inits.vgtest \
    147 	inline.stderr.exp inline.stdout.exp inline.vgtest \
    148 	inlinfo.stderr.exp inlinfo.stdout.exp inlinfo.vgtest \
    149 	inlinfosupp.stderr.exp inlinfosupp.stdout.exp inlinfosupp.supp inlinfosupp.vgtest \
    150 	inlinfosuppobj.stderr.exp inlinfosuppobj.stdout.exp inlinfosuppobj.supp inlinfosuppobj.vgtest \
    151 	inltemplate.stderr.exp inltemplate.stdout.exp inltemplate.vgtest \
    152 		inltemplate.stderr.exp-old-gcc \
    153 	leak-0.vgtest leak-0.stderr.exp \
    154 	leak-cases-full.vgtest leak-cases-full.stderr.exp \
    155 	leak-cases-possible.vgtest leak-cases-possible.stderr.exp \
    156 	leak-cases-summary.vgtest leak-cases-summary.stderr.exp \
    157 	leak-cycle.vgtest leak-cycle.stderr.exp \
    158 	leak-delta.vgtest leak-delta.stderr.exp \
    159 	leak-pool-0.vgtest leak-pool-0.stderr.exp \
    160 	leak-pool-1.vgtest leak-pool-1.stderr.exp \
    161 	leak-pool-2.vgtest leak-pool-2.stderr.exp \
    162 	leak-pool-3.vgtest leak-pool-3.stderr.exp \
    163 	leak-pool-4.vgtest leak-pool-4.stderr.exp \
    164 	leak-pool-5.vgtest leak-pool-5.stderr.exp \
    165 	leak-autofreepool-0.vgtest leak-autofreepool-0.stderr.exp \
    166 	leak-autofreepool-1.vgtest leak-autofreepool-1.stderr.exp \
    167 	leak-autofreepool-2.vgtest leak-autofreepool-2.stderr.exp \
    168 	leak-autofreepool-4.vgtest leak-autofreepool-4.stderr.exp \
    169 	leak-autofreepool-5.vgtest leak-autofreepool-5.stderr.exp \
    170 	leak-autofreepool-6.vgtest leak-autofreepool-6.stderr.exp \
    171 	leak-tree.vgtest leak-tree.stderr.exp \
    172 	leak-segv-jmp.vgtest leak-segv-jmp.stderr.exp \
    173 	lks.vgtest lks.stdout.exp lks.supp lks.stderr.exp \
    174 	long_namespace_xml.vgtest long_namespace_xml.stdout.exp \
    175 	long_namespace_xml.stderr.exp \
    176 	long-supps.vgtest long-supps.stderr.exp long-supps.supp \
    177 	mallinfo.stderr.exp mallinfo.vgtest \
    178 	malloc_free_fill.vgtest \
    179 	malloc_free_fill.stderr.exp \
    180 	malloc_usable.stderr.exp malloc_usable.vgtest \
    181 	malloc1.stderr.exp malloc1.vgtest \
    182 	malloc1_ks_none.stderr.exp malloc1_ks_none.vgtest \
    183 	malloc1_ks_alloc.stderr.exp malloc1_ks_alloc.vgtest \
    184 	malloc1_ks_free.stderr.exp malloc1_ks_free.vgtest \
    185 	malloc1_ks_alloc_and_free.stderr.exp malloc1_ks_alloc_and_free.vgtest \
    186 	malloc2.stderr.exp malloc2.vgtest \
    187 	malloc3.stderr.exp malloc3.stdout.exp malloc3.vgtest \
    188 	manuel1.stderr.exp manuel1.stdout.exp manuel1.vgtest \
    189 	manuel2.stderr.exp manuel2.stderr.exp64 manuel2.stdout.exp \
    190 		manuel2.vgtest \
    191 	manuel3.stderr.exp manuel3.vgtest \
    192 	match-overrun.stderr.exp match-overrun.vgtest match-overrun.supp \
    193 	memalign_test.stderr.exp memalign_test.vgtest \
    194 	memalign2.stderr.exp memalign2.vgtest \
    195 	memcmptest.stderr.exp memcmptest.stderr.exp2 \
    196 	memcmptest.stdout.exp memcmptest.vgtest \
    197 	mempool.stderr.exp mempool.vgtest \
    198 	mempool2.stderr.exp mempool2.vgtest \
    199 	metadata.stderr.exp metadata.stdout.exp metadata.vgtest \
    200 	mismatches.stderr.exp mismatches.vgtest \
    201 	mmaptest.stderr.exp mmaptest.vgtest \
    202 	nanoleak_supp.stderr.exp nanoleak_supp.vgtest nanoleak.supp \
    203 	nanoleak2.stderr.exp nanoleak2.vgtest \
    204 	new_nothrow.stderr.exp new_nothrow.vgtest \
    205 	new_override.stderr.exp new_override.stdout.exp new_override.vgtest \
    206 	noisy_child.vgtest noisy_child.stderr.exp noisy_child.stdout.exp \
    207 	null_socket.stderr.exp null_socket.vgtest \
    208 	origin1-yes.vgtest origin1-yes.stdout.exp origin1-yes.stderr.exp \
    209 	origin2-not-quite.vgtest origin2-not-quite.stdout.exp \
    210 	origin2-not-quite.stderr.exp \
    211 	origin3-no.vgtest origin3-no.stdout.exp \
    212 	origin3-no.stderr.exp \
    213 	origin4-many.vgtest origin4-many.stdout.exp \
    214 	origin4-many.stderr.exp \
    215 	origin5-bz2.vgtest origin5-bz2.stdout.exp \
    216 	origin5-bz2.stderr.exp-glibc25-x86 \
    217 	origin5-bz2.stderr.exp-glibc25-amd64 \
    218 	origin5-bz2.stderr.exp-glibc25-amd64-b \
    219 	origin5-bz2.stderr.exp-glibc27-ppc64 \
    220 	origin5-bz2.stderr.exp-glibc212-s390x \
    221 	origin5-bz2.stderr.exp-glibc234-s390x \
    222 	origin5-bz2.stderr.exp-glibc218-mips32 \
    223 	origin6-fp.vgtest origin6-fp.stdout.exp \
    224 	origin6-fp.stderr.exp-glibc25-amd64 \
    225 	origin6-fp.stderr.exp-glibc27-ppc64 \
    226 	overlap.stderr.exp overlap.stdout.exp overlap.vgtest \
    227 	partiallydefinedeq.vgtest partiallydefinedeq.stderr.exp \
    228 	partiallydefinedeq.stderr.exp4 \
    229 	partiallydefinedeq.stderr.exp3 \
    230 	partiallydefinedeq.stderr.exp2 \
    231 	partiallydefinedeq.stdout.exp \
    232 	partial_load_ok.vgtest partial_load_ok.stderr.exp \
    233 		partial_load_ok.stderr.exp64 \
    234 	partial_load_dflt.vgtest partial_load_dflt.stderr.exp \
    235 		partial_load_dflt.stderr.exp64 \
    236 	partial_load_dflt.stderr.expr-s390x-mvc \
    237 	pdb-realloc.stderr.exp pdb-realloc.vgtest \
    238 	pdb-realloc2.stderr.exp pdb-realloc2.stdout.exp pdb-realloc2.vgtest \
    239 	pipe.stderr.exp pipe.vgtest \
    240 	pointer-trace.vgtest \
    241 	pointer-trace.stderr.exp \
    242 	post-syscall.stderr.exp post-syscall.vgtest \
    243 	reach_thread_register.stderr.exp reach_thread_register.vgtest \
    244 		reach_thread_register.stderr.exp-mips32 \
    245 		reach_thread_register.stderr.exp-mips64 \
    246 	realloc1.stderr.exp realloc1.vgtest \
    247 	realloc2.stderr.exp realloc2.vgtest \
    248 	realloc3.stderr.exp realloc3.vgtest \
    249 	recursive-merge.stderr.exp recursive-merge.vgtest \
    250 	resvn_stack.stderr.exp resvn_stack.vgtest \
    251 	sbfragment.stdout.exp sbfragment.stderr.exp sbfragment.vgtest \
    252 	sem.stderr.exp sem.vgtest \
    253 	sendmsg.stderr.exp sendmsg.stderr.exp-solaris sendmsg.vgtest \
    254 	sh-mem.stderr.exp sh-mem.vgtest \
    255 	sh-mem-random.stderr.exp sh-mem-random.stdout.exp64 \
    256 	sh-mem-random.stdout.exp sh-mem-random.vgtest \
    257 	sigaltstack.stderr.exp sigaltstack.vgtest \
    258 	sigkill.stderr.exp sigkill.stderr.exp-darwin sigkill.stderr.exp-mips32 \
    259 	    sigkill.stderr.exp-solaris sigkill.vgtest \
    260 	signal2.stderr.exp signal2.stdout.exp signal2.vgtest \
    261 	sigprocmask.stderr.exp sigprocmask.stderr.exp2 sigprocmask.vgtest \
    262 	static_malloc.stderr.exp static_malloc.vgtest \
    263 	stpncpy.vgtest stpncpy.stderr.exp stpncpy.stdout.exp \
    264 	strchr.stderr.exp strchr.stderr.exp2 strchr.stderr.exp3 strchr.vgtest \
    265 	str_tester.stderr.exp str_tester.vgtest \
    266 	supp-dir.vgtest supp-dir.stderr.exp \
    267 	supp_unknown.stderr.exp supp_unknown.vgtest supp_unknown.supp \
    268 	supp_unknown.stderr.exp-kfail \
    269 	supp1.stderr.exp supp1.vgtest \
    270 	supp2.stderr.exp supp2.vgtest \
    271 	supp.supp \
    272 	suppfree.stderr.exp suppfree.supp suppfree.vgtest \
    273 	suppfreecollision.stderr.exp suppfreecollision.supp suppfreecollision.vgtest \
    274 	supponlyobj.stderr.exp supponlyobj.supp supponlyobj.vgtest \
    275 	suppvarinfo5.stderr.exp suppvarinfo5.supp suppvarinfo5.vgtest \
    276 	test-plo-no.vgtest test-plo-no.stdout.exp \
    277 	    test-plo-no.stderr.exp-le64 test-plo-no.stderr.exp-le32 \
    278 	test-plo-yes.vgtest test-plo-yes.stdout.exp \
    279 	    test-plo-yes.stderr.exp-le64 test-plo-yes.stderr.exp-le32 \
    280 	    test-plo-no.stderr.exp-s390x-mvc \
    281 	thread_alloca.stderr.exp thread_alloca.vgtest \
    282 	threadname.vgtest threadname.stderr.exp \
    283 	threadname_xml.vgtest threadname_xml.stderr.exp \
    284 	trivialleak.stderr.exp trivialleak.vgtest trivialleak.stderr.exp2 \
    285 	undef_malloc_args.stderr.exp undef_malloc_args.vgtest \
    286 	unit_libcbase.stderr.exp unit_libcbase.vgtest \
    287 	unit_oset.stderr.exp unit_oset.stdout.exp unit_oset.vgtest \
    288 	varinfo1.vgtest varinfo1.stdout.exp varinfo1.stderr.exp \
    289 		varinfo1.stderr.exp-ppc64 \
    290 	varinfo2.vgtest varinfo2.stdout.exp varinfo2.stderr.exp \
    291 		varinfo2.stderr.exp-ppc64 \
    292 	varinfo3.vgtest varinfo3.stdout.exp varinfo3.stderr.exp \
    293 		varinfo3.stderr.exp-ppc64 \
    294 	varinfo4.vgtest varinfo4.stdout.exp varinfo4.stderr.exp \
    295 		varinfo4.stderr.exp-ppc64 \
    296 	varinfo5.vgtest varinfo5.stdout.exp varinfo5.stderr.exp \
    297 		varinfo5.stderr.exp-ppc64 \
    298 	varinfo6.vgtest varinfo6.stdout.exp varinfo6.stderr.exp \
    299 		varinfo6.stderr.exp-ppc64 \
    300 	varinforestrict.vgtest varinforestrict.stderr.exp \
    301 	vcpu_bz2.stdout.exp vcpu_bz2.stderr.exp vcpu_bz2.vgtest \
    302 	vcpu_fbench.stdout.exp vcpu_fbench.stderr.exp vcpu_fbench.vgtest \
    303 	vcpu_fnfns.stdout.exp vcpu_fnfns.stdout.exp-glibc28-amd64 \
    304 	vcpu_fnfns.stdout.exp-darwin vcpu_fnfns.stdout.exp-solaris \
    305 	vcpu_fnfns.stderr.exp vcpu_fnfns.vgtest \
    306 	wcs.vgtest wcs.stderr.exp wcs.stdout.exp \
    307 	wrap1.vgtest wrap1.stdout.exp wrap1.stderr.exp \
    308 	wrap2.vgtest wrap2.stdout.exp wrap2.stderr.exp \
    309 	wrap3.vgtest wrap3.stdout.exp wrap3.stderr.exp \
    310 	wrap4.vgtest wrap4.stdout.exp wrap4.stderr.exp \
    311 	wrap5.vgtest wrap5.stdout.exp wrap5.stderr.exp \
    312 	wrap6.vgtest wrap6.stdout.exp wrap6.stderr.exp \
    313 	wrap7.vgtest wrap7.stdout.exp wrap7.stderr.exp \
    314 	wrap8.vgtest wrap8.stdout.exp wrap8.stderr.exp \
    315 	wrap8.stdout.exp-ppc64 wrap8.stderr.exp-ppc64 \
    316 	wrapmalloc.vgtest wrapmalloc.stdout.exp wrapmalloc.stderr.exp \
    317 	wrapmallocstatic.vgtest wrapmallocstatic.stdout.exp \
    318 	wrapmallocstatic.stderr.exp \
    319 	writev1.stderr.exp writev1.stderr.exp-solaris writev1.vgtest \
    320 	xml1.stderr.exp xml1.stdout.exp xml1.vgtest xml1.stderr.exp-s390x-mvc
    321 
    322 check_PROGRAMS = \
    323 	accounting \
    324 	addressable \
    325 	atomic_incs \
    326 	badaddrvalue badfree badjump badjump2 \
    327 	badloop \
    328 	badpoll \
    329 	badrw \
    330 	big_blocks_freed_list \
    331 	brk2 \
    332 	buflen_check \
    333 	bug155125 \
    334 	bug287260 \
    335 	bug340392 \
    336 	calloc-overflow \
    337 	client-msg \
    338 	clientperm \
    339 	clireq_nofill \
    340 	clo_redzone \
    341 	cond_ld_st \
    342 	descr_belowsp \
    343 	leak_cpp_interior \
    344 	custom_alloc \
    345 	custom-overlap \
    346 	demangle \
    347 	big_debuginfo_symbol \
    348 	deep-backtrace \
    349 	describe-block \
    350 	doublefree error_counts errs1 exitprog execve1 execve2 erringfds \
    351 	err_disable1 err_disable2 err_disable3 err_disable4 \
    352 	err_disable_arange1 \
    353 	file_locking \
    354 	fprw fwrite inits inline inlinfo inltemplate \
    355 	holey_buffer_too_small \
    356 	leak-0 \
    357 	leak-cases \
    358 	leak-cycle \
    359 	leak-delta \
    360 	leak-pool \
    361 	leak-autofreepool \
    362 	leak-tree \
    363 	leak-segv-jmp \
    364 	long-supps \
    365 	mallinfo \
    366 	malloc_free_fill \
    367 	malloc_usable malloc1 malloc2 malloc3 manuel1 manuel2 manuel3 \
    368 	match-overrun \
    369 	memalign_test memalign2 memcmptest mempool mempool2 mmaptest \
    370 	mismatches new_override metadata \
    371 	nanoleak_supp nanoleak2 new_nothrow \
    372 	noisy_child \
    373 	null_socket \
    374 	origin1-yes origin2-not-quite origin3-no \
    375 	origin4-many origin5-bz2 origin6-fp \
    376 	overlap \
    377 	partiallydefinedeq \
    378 	partial_load pdb-realloc pdb-realloc2 \
    379 	pipe pointer-trace \
    380 	post-syscall \
    381 	realloc1 realloc2 realloc3 \
    382 	recursive-merge \
    383 	resvn_stack \
    384 	sbfragment \
    385 	sendmsg \
    386 	sh-mem sh-mem-random \
    387 	sigaltstack signal2 sigprocmask static_malloc sigkill \
    388 	strchr \
    389 	str_tester \
    390 	supp_unknown supp1 supp2 suppfree \
    391 	test-plo \
    392 	trivialleak \
    393 	thread_alloca \
    394 	undef_malloc_args \
    395 	unit_libcbase unit_oset \
    396 	varinfo1 varinfo2 varinfo3 varinfo4 \
    397 	varinfo5 varinfo5so.so varinfo6 \
    398 	varinforestrict \
    399 	vcpu_fbench vcpu_fnfns \
    400 	wcs \
    401 	xml1 \
    402 	wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap7so.so wrap8 \
    403 	wrapmalloc wrapmallocso.so wrapmallocstatic \
    404 	writev1
    405 
    406 if !SOLARIS_SUN_STUDIO_AS
    407 # Sun Studio assembler fails on "IDENT too long"
    408 check_PROGRAMS += long_namespace_xml
    409 endif
    410 
    411 if DWARF4
    412 check_PROGRAMS += dw4
    413 endif
    414 
    415 if GZ_ZLIB
    416 check_PROGRAMS += cdebug_zlib
    417 cdebug_zlib_SOURCES = cdebug.c
    418 cdebug_zlib_CFLAGS = $(AM_CFLAGS) -g -gz=zlib @FLAG_W_NO_UNINITIALIZED@
    419 endif
    420 
    421 if GZ_ZLIB_GNU
    422 check_PROGRAMS += cdebug_zlib_gnu
    423 cdebug_zlib_gnu_SOURCES = cdebug.c
    424 cdebug_zlib_gnu_CFLAGS = $(AM_CFLAGS) -g -gz=zlib-gnu @FLAG_W_NO_UNINITIALIZED@
    425 endif
    426 
    427 if HAVE_GNU_STPNCPY
    428 check_PROGRAMS += stpncpy
    429 endif
    430 
    431 if HAVE_PTHREAD_SETNAME_NP
    432 check_PROGRAMS += threadname 
    433 endif
    434 
    435 if HAVE_PTHREAD_BARRIER
    436 check_PROGRAMS += reach_thread_register
    437 endif
    438 
    439 AM_CFLAGS   += $(AM_FLAG_M3264_PRI)
    440 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
    441 
    442 if VGCONF_PLATFORMS_INCLUDE_ARM_LINUX
    443 #AM_CFLAGS   += -mfloat-abi=softfp
    444 #AM_CXXFLAGS += -mfloat-abi=softfp
    445 endif
    446 
    447 if VGCONF_OS_IS_DARWIN
    448 atomic_incs_CFLAGS = $(AM_CFLAGS) -mdynamic-no-pic
    449 else
    450 atomic_incs_CFLAGS = $(AM_CFLAGS)
    451 endif
    452 
    453 if VGCONF_OS_IS_SOLARIS
    454 buflen_check_LDADD	= -lsocket -lnsl
    455 endif
    456 
    457 leak_cpp_interior_SOURCES	= leak_cpp_interior.cpp
    458 
    459 demangle_SOURCES = demangle.cpp
    460 
    461 big_debuginfo_symbol_SOURCES = big_debuginfo_symbol.cpp
    462 big_debuginfo_symbol_CXXFLAGS = $(AM_CXXFLAGS) -std=c++0x
    463 
    464 bug340392_CFLAGS        = $(AM_CFLAGS) -O3
    465 dw4_CFLAGS		= $(AM_CFLAGS) -gdwarf-4 -fdebug-types-section
    466 
    467 descr_belowsp_LDADD     = -lpthread
    468 err_disable3_LDADD 	= -lpthread
    469 err_disable4_LDADD 	= -lpthread
    470 err_disable4_CFLAGS	= $(AM_CFLAGS)
    471 if VGCONF_OS_IS_SOLARIS
    472 err_disable4_CFLAGS	+= -std=c99 -D_XOPEN_SOURCE=600
    473 endif
    474 reach_thread_register_CFLAGS	= $(AM_CFLAGS) -O2
    475 reach_thread_register_LDADD	= -lpthread
    476 thread_alloca_LDADD     = -lpthread
    477 threadname_LDADD 	= -lpthread
    478 
    479 error_counts_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
    480 
    481 execve1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
    482 
    483 execve2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
    484 
    485 fprw_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
    486 
    487 inits_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
    488 
    489 inlinfo_CFLAGS = $(AM_CFLAGS) -w
    490 
    491 inltemplate_SOURCES = inltemplate.cpp
    492 inltemplate_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_UNINITIALIZED@
    493 
    494 long_namespace_xml_SOURCES = long_namespace_xml.cpp
    495 
    496 manuel1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
    497 
    498 memalign2_CFLAGS	= $(AM_CFLAGS)
    499 if VGCONF_OS_IS_SOLARIS
    500 memalign2_CFLAGS	+= -std=c99 -D__EXTENSIONS__
    501 endif
    502 
    503 memcmptest_CFLAGS	= $(AM_CFLAGS) -fno-builtin-memcmp
    504 
    505 mismatches_SOURCES	= mismatches.cpp
    506 mismatches_CXXFLAGS	= $(AM_CXXFLAGS) @FLAG_W_NO_MISMATCHED_NEW_DELETE@
    507 
    508 new_nothrow_SOURCES 	= new_nothrow.cpp
    509 new_override_SOURCES 	= new_override.cpp
    510 
    511 if VGCONF_OS_IS_SOLARIS
    512 null_socket_LDADD	= -lsocket -lnsl
    513 endif
    514 
    515 origin1_yes_CFLAGS      = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
    516 
    517 origin2_not_quite_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
    518 
    519 origin3_no_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
    520 
    521 # This requires optimisation in order to get just one resulting error.
    522 origin4_many_CFLAGS	= $(AM_CFLAGS) -O
    523 
    524 # Apply -O so as to run in reasonable time.
    525 origin5_bz2_CFLAGS	= $(AM_CFLAGS) -O -Wno-inline
    526 origin6_fp_CFLAGS	= $(AM_CFLAGS) -O
    527 
    528 # Don't allow GCC to inline memcpy() and strcpy(),
    529 # because then we can't intercept it
    530 overlap_CFLAGS		= $(AM_CFLAGS) -fno-builtin-memcpy -fno-builtin-strcpy
    531 
    532 resvn_stack_CFLAGS      = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
    533 
    534 sendmsg_CFLAGS		= $(AM_CFLAGS)
    535 if VGCONF_OS_IS_SOLARIS
    536 sendmsg_CFLAGS		+= -std=c99 -D_XOPEN_SOURCE=600
    537 sendmsg_LDADD		= -lsocket -lnsl
    538 endif
    539 
    540 str_tester_CFLAGS	= $(AM_CFLAGS) -Wno-shadow \
    541 			  @FLAG_W_NO_MEMSET_TRANSPOSED_ARGS@
    542 
    543 supp_CFLAGS             = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
    544 
    545 supp_unknown_SOURCES	= badjump.c
    546 supp_unknown_CFLAGS     = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
    547 
    548 supp1_SOURCES		= supp.c
    549 supp1_CFLAGS            = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
    550 
    551 supp2_SOURCES		= supp.c
    552 supp2_CFLAGS            = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
    553 
    554 vcpu_bz2_CFLAGS		= $(AM_CFLAGS) -O2
    555 vcpu_fbench_CFLAGS	= $(AM_CFLAGS) -O2
    556 vcpu_fnfns_CFLAGS	= $(AM_CFLAGS) -O2
    557 vcpu_fnfns_LDADD	= -lm
    558 wrap6_CFLAGS		= $(AM_CFLAGS) -O2
    559 
    560 # To make it a bit more realistic, have some optimisation enabled
    561 # for the varinfo tests.  We still expect sane results.
    562 varinfo1_CFLAGS		= $(AM_CFLAGS) -O
    563 varinfo2_CFLAGS		= $(AM_CFLAGS) -O -Wno-shadow
    564 varinfo3_CFLAGS		= $(AM_CFLAGS) -O
    565 varinfo4_CFLAGS		= $(AM_CFLAGS) -O
    566 varinfo5_CFLAGS		= $(AM_CFLAGS) -O
    567 varinfo6_CFLAGS		= $(AM_CFLAGS) -O
    568 
    569 # Build shared object for varinfo5
    570 varinfo5_SOURCES        = varinfo5.c
    571 varinfo5_DEPENDENCIES   = varinfo5so.so
    572 if VGCONF_OS_IS_DARWIN
    573  varinfo5_LDADD         = `pwd`/varinfo5so.so
    574  varinfo5_LDFLAGS       = $(AM_FLAG_M3264_PRI)
    575 else
    576  varinfo5_LDADD         = varinfo5so.so
    577  varinfo5_LDFLAGS       = $(AM_FLAG_M3264_PRI) \
    578 				-Wl,-rpath,$(top_builddir)/memcheck/tests
    579 endif
    580 
    581 varinfo5so_so_SOURCES   = varinfo5so.c
    582 varinfo5so_so_CFLAGS    = $(AM_CFLAGS) -fpic -O -Wno-shadow
    583 if VGCONF_OS_IS_DARWIN
    584  varinfo5so_so_LDFLAGS  = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
    585 				-dynamiclib -all_load
    586 else
    587  varinfo5so_so_LDFLAGS  = -fpic $(AM_FLAG_M3264_PRI) -shared \
    588 				-Wl,-soname -Wl,varinfo5so.so
    589 endif
    590 varinforestrict_CFLAGS	= $(AM_CFLAGS) -O0 -g -std=c99
    591 
    592 # Build shared object for wrap7
    593 wrap7_SOURCES           = wrap7.c
    594 wrap7_DEPENDENCIES      = wrap7so.so
    595 if VGCONF_OS_IS_DARWIN
    596  wrap7_LDADD            = `pwd`/wrap7so.so
    597  wrap7_LDFLAGS          = $(AM_FLAG_M3264_PRI)
    598 else
    599  wrap7_LDADD            = wrap7so.so
    600  wrap7_LDFLAGS          = $(AM_FLAG_M3264_PRI) \
    601 				-Wl,-rpath,$(top_builddir)/memcheck/tests
    602 endif
    603 
    604 wrap7so_so_SOURCES      = wrap7so.c
    605 wrap7so_so_CFLAGS       = $(AM_CFLAGS) -fpic
    606 if VGCONF_OS_IS_DARWIN
    607  wrap7so_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
    608 				-dynamiclib -all_load
    609 else
    610  wrap7so_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -shared \
    611 				-Wl,-soname -Wl,wrap7so.so
    612 endif
    613 
    614 # Build shared object for wrapmalloc
    615 wrapmalloc_SOURCES           = wrapmalloc.c
    616 wrapmalloc_DEPENDENCIES      = wrapmallocso.so
    617 if VGCONF_OS_IS_DARWIN
    618  wrapmalloc_LDADD            = `pwd`/wrapmallocso.so
    619  wrapmalloc_LDFLAGS          = $(AM_FLAG_M3264_PRI)
    620 else
    621  wrapmalloc_LDADD            = wrapmallocso.so
    622  wrapmalloc_LDFLAGS          = $(AM_FLAG_M3264_PRI) \
    623 				-Wl,-rpath,$(top_builddir)/memcheck/tests
    624 endif
    625 
    626 wrapmallocso_so_SOURCES      = wrapmallocso.c
    627 wrapmallocso_so_CFLAGS       = $(AM_CFLAGS) -fpic
    628 if VGCONF_OS_IS_DARWIN
    629  wrapmallocso_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
    630 				-dynamiclib -all_load
    631 else
    632  wrapmallocso_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -shared \
    633 				-Wl,-soname -Wl,wrapmallocso.so
    634 endif
    635 
    636 xml1_CFLAGS             = $(AM_CFLAGS) -D_GNU_SOURCE
    637