2 include $(top_srcdir)/Makefile.tool-tests.am
7 if VGCONF_ARCHS_INCLUDE_X86
10 if VGCONF_ARCHS_INCLUDE_AMD64
13 if VGCONF_ARCHS_INCLUDE_ARM64
16 if VGCONF_ARCHS_INCLUDE_MIPS32
19 if VGCONF_ARCHS_INCLUDE_MIPS64
22 if VGCONF_ARCHS_INCLUDE_PPC32
25 if VGCONF_ARCHS_INCLUDE_PPC64
28 if VGCONF_ARCHS_INCLUDE_S390X
36 if VGCONF_OS_IS_DARWIN
39 if VGCONF_OS_IS_SOLARIS
42 if VGCONF_OS_IS_FREEBSD
46 # Platform-specific tests
47 if VGCONF_PLATFORMS_INCLUDE_X86_LINUX
50 if VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX
51 SUBDIRS += amd64-linux
53 if VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX
54 SUBDIRS += arm64-linux
56 if VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS
57 SUBDIRS += x86-solaris
59 if VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS
60 SUBDIRS += amd64-solaris
62 if VGCONF_PLATFORMS_INCLUDE_X86_FREEBSD
63 SUBDIRS += x86-freebsd
65 if VGCONF_PLATFORMS_INCLUDE_AMD64_FREEBSD
66 SUBDIRS += amd64-freebsd
69 DIST_SUBDIRS = x86 amd64 arm64 ppc32 ppc64 s390x linux \
70 darwin solaris x86-linux amd64-linux arm64-linux \
71 x86-solaris amd64-solaris mips32 mips64 \
72 freebsd amd64-freebsd x86-freebsd \
75 dist_noinst_SCRIPTS = \
78 filter_leak_cases_possible \
79 filter_leak_cpp_interior \
80 filter_libc_variants \
90 filter_stanza_and_size_t
98 noinst_HEADERS = leak.h
101 accounting.stderr.exp accounting.vgtest \
102 addressable.stderr.exp addressable.stdout.exp addressable.vgtest \
103 atomic_incs.stderr.exp atomic_incs.vgtest \
104 atomic_incs.stdout.exp-32bit atomic_incs.stdout.exp-64bit \
105 atomic_incs.stdout.exp-64bit-and-128bit \
106 badaddrvalue.stderr.exp \
107 badaddrvalue.stdout.exp badaddrvalue.vgtest \
108 badfree-2trace.stderr.exp badfree-2trace.vgtest \
109 badfree.stderr.exp badfree.vgtest \
110 badfree3.stderr.exp badfree3.vgtest \
111 badjump.stderr.exp badjump.vgtest \
112 badjump2.stderr.exp badjump2.vgtest \
113 badjump.stderr.exp-kfail \
114 badjump2.stderr.exp-kfail \
115 badloop.stderr.exp badloop.vgtest \
116 badpoll.stderr.exp badpoll.vgtest \
117 badrw.stderr.exp badrw.vgtest badrw.stderr.exp-s390x-mvc \
118 big_blocks_freed_list.stderr.exp big_blocks_freed_list.vgtest \
119 brk2.stderr.exp brk2.vgtest \
120 buflen_check.stderr.exp buflen_check.vgtest \
121 buflen_check.stderr.exp-kfail \
122 bug155125.stderr.exp bug155125.vgtest \
123 bug287260.stderr.exp bug287260.vgtest \
124 bug340392.stderr.exp bug340392.vgtest \
125 bug445235_ada_demangle.stderr.exp bug445235_ada_demangle.vgtest \
126 bug401284.stderr.exp bug401284.stdout.exp bug401284.vgtest \
127 bug464969_d_demangle.stderr.exp bug464969_d_demangle.vgtest \
128 bug464969_d_demangle.stdout.exp \
129 bug472219.stderr.exp bug472219.vgtest \
130 bug484002.stderr.exp bug484002.stdout.exp bug484002.vgtest \
131 calloc-overflow.stderr.exp calloc-overflow.vgtest\
132 cdebug_zlib.stderr.exp cdebug_zlib.vgtest \
133 cdebug_zlib_gnu.stderr.exp cdebug_zlib_gnu.vgtest \
134 client-msg.stderr.exp client-msg.vgtest \
135 client-msg-as-xml.stderr.exp client-msg-as-xml.vgtest \
136 clientperm.stderr.exp \
137 clientperm.stdout.exp clientperm.vgtest \
138 clireq_nofill.stderr.exp \
139 clireq_nofill.stdout.exp clireq_nofill.vgtest \
140 clo_redzone_default.vgtest clo_redzone_128.vgtest \
141 clo_redzone_default.stderr.exp clo_redzone_128.stderr.exp \
142 close_range.vgtest close_range.stderr.exp \
143 close_range.stderr.exp.linux \
144 cond_ld.vgtest cond_ld.stdout.exp cond_ld.stderr.exp-arm \
145 cond_ld.stderr.exp-64bit-non-arm \
146 cond_ld.stderr.exp-32bit-non-arm \
147 cond_st.vgtest cond_st.stdout.exp cond_st.stderr.exp-arm \
148 cond_st.stderr.exp-64bit-non-arm \
149 cond_st.stderr.exp-32bit-non-arm \
150 leak_cpp_interior.stderr.exp leak_cpp_interior.stderr.exp-64bit leak_cpp_interior.vgtest libstdc++.supp \
151 leak_cpp_interior.stderr.exp-freebsd leak_cpp_interior.stderr.exp-freebsd-32bit \
152 leak_cpp_interior.stderr.exp-arm \
153 custom_alloc.stderr.exp custom_alloc.vgtest \
154 custom_alloc.stderr.exp-s390x-mvc \
155 custom-overlap.stderr.exp custom-overlap.vgtest \
156 cxx17_aligned_new.stderr.exp cxx17_aligned_new.vgtest \
157 cxx17_aligned_new.stderr.exp_32 \
158 cxx17_aligned_new.stdout.exp \
159 sized_aligned_new_delete_args.stderr.exp \
160 sized_aligned_new_delete_args.vgtest \
161 sized_aligned_new_delete_misaligned1.stderr.exp \
162 sized_aligned_new_delete_misaligned1.vgtest \
163 sized_aligned_new_delete_misaligned2.stderr.exp \
164 sized_aligned_new_delete_misaligned2.vgtest \
165 sized_aligned_new_delete_misaligned3.stderr.exp \
166 sized_aligned_new_delete_misaligned3.vgtest \
167 sized_aligned_new_delete_misaligned1_xml.stderr.exp \
168 sized_aligned_new_delete_misaligned1_xml.vgtest \
169 sized_aligned_new_delete_misaligned2_xml.stderr.exp \
170 sized_aligned_new_delete_misaligned2_xml.vgtest \
171 sized_aligned_new_delete_misaligned3_xml.stderr.exp \
172 sized_aligned_new_delete_misaligned3_xml.vgtest \
173 sized_aligned_new_delete_misaligned1_supp.vgtest \
174 sized_aligned_new_delete_misaligned1_supp.supp \
175 sized_aligned_new_delete_misaligned1_supp.stderr.exp \
176 sized_aligned_new_delete_misaligned2_supp.vgtest \
177 sized_aligned_new_delete_misaligned2_supp.supp \
178 sized_aligned_new_delete_misaligned2_supp.stderr.exp \
179 sized_aligned_new_delete_misaligned2_supp.stderr.exp-32 \
180 sized_aligned_new_delete_misaligned3_supp.vgtest \
181 sized_aligned_new_delete_misaligned3_supp.supp \
182 sized_aligned_new_delete_misaligned3_supp.stderr.exp \
183 sized_aligned_new_delete_misaligned3_supp.stderr.exp-32 \
184 new_aligned_delete_default.stderr.exp \
185 new_aligned_delete_default.stderr.exp_32 \
186 new_aligned_delete_default.vgtest \
187 new_delete_mismatch_size.stderr.exp \
188 new_delete_mismatch_size.vgtest \
189 new_delete_mismatch_size_supp.stderr.exp \
190 new_delete_mismatch_size_supp.stderr.exp-32 \
191 new_delete_mismatch_size_supp.vgtest \
192 new_delete_mismatch_size_supp.supp \
193 deep-backtrace.vgtest deep-backtrace.stderr.exp \
194 demangle.stderr.exp demangle.vgtest \
195 big_debuginfo_symbol.stderr.exp big_debuginfo_symbol.vgtest \
196 describe-block.stderr.exp describe-block.vgtest \
197 descr_belowsp.vgtest descr_belowsp.stderr.exp \
198 doublefree.stderr.exp doublefree.vgtest \
199 dw4.vgtest dw4.stderr.exp dw4.stderr.exp-solaris dw4.stdout.exp \
200 err_disable1.vgtest err_disable1.stderr.exp \
201 err_disable2.vgtest err_disable2.stderr.exp \
202 err_disable3.vgtest err_disable3.stderr.exp \
203 err_disable4.vgtest err_disable4.stderr.exp \
204 err_disable_arange1.vgtest err_disable_arange1.stderr.exp \
205 erringfds.stderr.exp erringfds.stdout.exp erringfds.vgtest \
206 error_counts.stderr.exp error_counts.vgtest \
207 errs1.stderr.exp errs1.vgtest \
208 exit_on_first_error.stderr.exp \
209 exit_on_first_error.vgtest \
210 exit_on_first_error_with_xml.stderr.exp \
211 exit_on_first_error_with_xml.vgtest \
212 exitprog.stderr.exp exitprog.vgtest \
213 execve1.stderr.exp execve1.vgtest execve1.stderr.exp-kfail \
214 execve2.stderr.exp execve2.vgtest execve2.stderr.exp-kfail \
215 file_locking.stderr.exp file_locking.vgtest \
216 fprw.stderr.exp fprw.stderr.exp-freebsd fprw.stderr.exp-mips32-be \
217 fprw.stderr.exp-mips32-le fprw.vgtest \
218 fprw.stderr.exp-freebsd-x86 \
219 fwrite.stderr.exp fwrite.vgtest fwrite.stderr.exp-kfail \
220 gone_abrt_xml.vgtest gone_abrt_xml.stderr.exp gone_abrt_xml.stderr.exp-solaris \
221 gone_abrt_xml.stderr.exp-freebsd \
222 holey_buffer_too_small.vgtest holey_buffer_too_small.stdout.exp \
223 holey_buffer_too_small.stderr.exp \
224 inits.stderr.exp inits.vgtest \
225 inline.stderr.exp inline.stdout.exp inline.vgtest \
226 inlinfo.stderr.exp inlinfo.stdout.exp inlinfo.vgtest \
227 inlinfosupp.stderr.exp inlinfosupp.stdout.exp inlinfosupp.supp inlinfosupp.vgtest \
228 inlinfosuppobj.stderr.exp inlinfosuppobj.stdout.exp inlinfosuppobj.supp inlinfosuppobj.vgtest \
229 inltemplate.stderr.exp inltemplate.stdout.exp inltemplate.vgtest \
230 inltemplate.stderr.exp-old-gcc \
231 leak-0.vgtest leak-0.stderr.exp \
232 leak-cases-exit-on-definite.vgtest leak-cases-exit-on-definite.stderr.exp \
233 leak-cases-full.vgtest leak-cases-full.stderr.exp \
234 leak-cases-possible.vgtest leak-cases-possible.stderr.exp \
235 leak-cases-summary.vgtest leak-cases-summary.stderr.exp \
236 leak-cycle.vgtest leak-cycle.stderr.exp \
237 leak-delta.vgtest leak-delta.stderr.exp \
238 leak-pool-0.vgtest leak-pool-0.stderr.exp \
239 leak-pool-1.vgtest leak-pool-1.stderr.exp \
240 leak-pool-2.vgtest leak-pool-2.stderr.exp \
241 leak-pool-3.vgtest leak-pool-3.stderr.exp \
242 leak-pool-4.vgtest leak-pool-4.stderr.exp \
243 leak-pool-5.vgtest leak-pool-5.stderr.exp \
244 leak-autofreepool-0.vgtest leak-autofreepool-0.stderr.exp \
245 leak-autofreepool-1.vgtest leak-autofreepool-1.stderr.exp \
246 leak-autofreepool-2.vgtest leak-autofreepool-2.stderr.exp \
247 leak-autofreepool-4.vgtest leak-autofreepool-4.stderr.exp \
248 leak-autofreepool-5.vgtest leak-autofreepool-5.stderr.exp \
249 leak-autofreepool-6.vgtest leak-autofreepool-6.stderr.exp \
250 leak-autofreepool-5.stderr.exp-freebsd \
251 leak-tree.vgtest leak-tree.stderr.exp \
252 leak-segv-jmp.vgtest leak-segv-jmp.stderr.exp \
253 lks.vgtest lks.stdout.exp lks.supp lks.stderr.exp \
254 long_namespace_xml.vgtest long_namespace_xml.stdout.exp \
255 long_namespace_xml.stderr.exp \
256 long-supps.vgtest long-supps.stderr.exp long-supps.supp \
257 mallinfo.stderr.exp mallinfo.vgtest \
258 malloc_free_fill.vgtest \
259 malloc_free_fill.stderr.exp \
260 malloc_usable.stderr.exp malloc_usable.vgtest \
261 malloc1.stderr.exp malloc1.vgtest \
262 malloc1_ks_none.stderr.exp malloc1_ks_none.vgtest \
263 malloc1_ks_alloc.stderr.exp malloc1_ks_alloc.vgtest \
264 malloc1_ks_free.stderr.exp malloc1_ks_free.vgtest \
265 malloc1_ks_alloc_and_free.stderr.exp malloc1_ks_alloc_and_free.vgtest \
266 malloc2.stderr.exp malloc2.vgtest \
267 malloc3.stderr.exp malloc3.stdout.exp malloc3.vgtest \
268 manuel1.stderr.exp manuel1.stdout.exp manuel1.vgtest \
269 manuel2.stderr.exp manuel2.stderr.exp64 manuel2.stdout.exp \
271 manuel3.stderr.exp manuel3.vgtest \
272 match-overrun.stderr.exp match-overrun.vgtest match-overrun.supp \
273 memalign_test.stderr.exp memalign_test.vgtest \
274 memalign_args.vgtest memalign_args.stderr.exp \
275 memalign_args.stderr.exp-glibc \
276 memalign_args.stderr.exp-darwin \
277 memalign_args.stderr.exp-solaris \
278 memccpy1.stderr.exp memccpy1.stdout.exp memccpy1.vgtest \
279 memccpy2.stderr.exp memccpy2.vgtest \
280 memcmptest.stderr.exp \
281 memcmptest.stdout.exp memcmptest.vgtest \
282 memmem.stderr.exp memmem.vgtest \
283 mempool.stderr.exp mempool.vgtest \
284 mempool2.stderr.exp mempool2.vgtest \
285 metadata.stderr.exp metadata.stdout.exp metadata.vgtest \
286 mismatches.stderr.exp mismatches.vgtest \
287 mismatches.stderr.exp2 \
288 mismatches_xml.stderr.exp mismatches_xml.vgtest \
289 mismatches_xml.stderr.exp2 \
290 mmaptest.stderr.exp mmaptest.vgtest \
291 nanoleak_supp.stderr.exp nanoleak_supp.vgtest nanoleak.supp \
292 nanoleak_dynsupp.stderr.exp nanoleak_dynsupp.vgtest \
293 nanoleak2.stderr.exp nanoleak2.vgtest \
294 new_nothrow.stderr.exp new_nothrow.vgtest \
295 new_override.stderr.exp new_override.stdout.exp new_override.vgtest \
296 noisy_child.vgtest noisy_child.stderr.exp noisy_child.stdout.exp \
297 null_socket.stderr.exp null_socket.vgtest \
298 origin1-yes.vgtest origin1-yes.stdout.exp origin1-yes.stderr.exp \
299 origin1-yes.stderr.exp-freebsd \
300 origin2-not-quite.vgtest origin2-not-quite.stdout.exp \
301 origin2-not-quite.stderr.exp \
302 origin2-not-quite.stderr.exp-freebsd \
303 origin3-no.vgtest origin3-no.stdout.exp \
304 origin3-no.stderr.exp-freebsd \
305 origin3-no.stderr.exp \
306 origin4-many.vgtest origin4-many.stdout.exp \
307 origin4-many.stderr.exp \
308 origin5-bz2.vgtest origin5-bz2.stdout.exp \
309 origin5-bz2.stderr.exp-glibc25-x86 \
310 origin5-bz2.stderr.exp-glibc25-amd64 \
311 origin5-bz2.stderr.exp-glibc25-amd64-b \
312 origin5-bz2.stderr.exp-glibc25-x86-b \
313 origin5-bz2.stderr.exp-glibc27-ppc64 \
314 origin5-bz2.stderr.exp-glibc212-s390x \
315 origin5-bz2.stderr.exp-glibc234-s390x \
316 origin5-bz2.stderr.exp-glibc218-mips32 \
317 origin5-bz2.stderr.exp-glibc236-arm \
318 origin6-fp.vgtest origin6-fp.stdout.exp \
319 origin6-fp.stderr.exp-glibc25-amd64 \
320 origin6-fp.stderr.exp-glibc27-ppc64 \
321 overlap.stderr.exp overlap.stdout.exp overlap.vgtest \
322 overlap.stderr.exp-no_memcpy \
323 partiallydefinedeq.vgtest partiallydefinedeq.stderr.exp \
324 partiallydefinedeq.stderr.exp4 \
325 partiallydefinedeq.stderr.exp3 \
326 partiallydefinedeq.stderr.exp2 \
327 partiallydefinedeq.stdout.exp \
328 partial_load_ok.vgtest partial_load_ok.stderr.exp \
329 partial_load_ok.stderr.exp64 \
330 partial_load_ok.stderr.exp-ppc64 \
331 partial_load_dflt.vgtest partial_load_dflt.stderr.exp \
332 partial_load_dflt.stderr.exp64 \
333 partial_load_dflt.stderr.exp-ppc64 \
334 partial_load_dflt.stderr.expr-s390x-mvc \
335 pdb-realloc.stderr.exp pdb-realloc.vgtest \
336 pdb-realloc2.stderr.exp pdb-realloc2.stdout.exp pdb-realloc2.vgtest \
337 pipe.stderr.exp pipe.vgtest \
338 pointer-trace.vgtest \
339 pointer-trace.stderr.exp \
340 posix_memalign.stderr.exp posix_memalign.vgtest \
341 posix_memalign.stderr.exp-darwin \
342 posix_memalign_supp.stderr.exp posix_memalign_supp.vgtest \
343 posix_memalign_supp.supp \
344 posix_memalign_xml.stderr.exp posix_memalign_xml.vgtest \
345 post-syscall.stderr.exp post-syscall.vgtest \
346 reach_thread_register.stderr.exp reach_thread_register.vgtest \
347 reach_thread_register.stderr.exp-mips32 \
348 reach_thread_register.stderr.exp-mips64 \
349 realloc_size_zero.stderr.exp realloc_size_zero.stdout.exp-glibc \
350 realloc_size_zero.stdout.exp-other \
351 realloc_size_zero.vgtest \
352 realloc_size_zero_yes.stderr.exp realloc_size_zero_yes.stdout.exp \
353 realloc_size_zero_yes.vgtest \
354 realloc_size_zero_again_yes.stderr.exp \
355 realloc_size_zero_again_yes.stdout.exp \
356 realloc_size_zero_again_yes.vgtest \
357 realloc_size_zero_no.stderr.exp realloc_size_zero_no.stdout.exp \
358 realloc_size_zero_no.vgtest \
359 realloc_size_zero_again_no.stderr.exp \
360 realloc_size_zero_again_no.stdout.exp \
361 realloc_size_zero_again_no.vgtest \
362 realloc_size_zero_off.stderr.exp realloc_size_zero_off.stdout.exp \
363 realloc_size_zero_off.vgtest \
364 realloc_size_zero_mismatch.stderr.exp \
365 realloc_size_zero_mismatch.stdout.exp \
366 realloc_size_zero_mismatch.vgtest \
367 realloc_size_zero_supp.stderr.exp realloc_size_zero_supp.stdout.exp \
368 realloc_size_zero_supp.vgtest \
369 realloc_size_zero.supp \
370 realloc1.stderr.exp realloc1.vgtest \
371 realloc2.stderr.exp realloc2.vgtest \
372 realloc3.stderr.exp realloc3.vgtest \
373 recursive-merge.stderr.exp recursive-merge.vgtest \
374 resvn_stack.stderr.exp resvn_stack.vgtest \
375 demangle-rust.vgtest demangle-rust.stderr.exp \
376 sbfragment.stdout.exp sbfragment.stderr.exp sbfragment.vgtest \
377 sem.stderr.exp sem.vgtest \
378 sendmsg.stderr.exp sendmsg.stderr.exp-solaris sendmsg.vgtest \
379 sendmsg.stderr.exp-freebsd \
380 sendmsg.stderr.exp-freebsd-x86 \
381 sh-mem.stderr.exp sh-mem.vgtest \
382 sh-mem-random.stderr.exp sh-mem-random.stdout.exp64 \
383 sh-mem-random.stdout.exp sh-mem-random.vgtest \
384 sigaltstack.stderr.exp sigaltstack.vgtest \
385 sigkill.stderr.exp sigkill.stderr.exp-darwin sigkill.stderr.exp-freebsd sigkill.stderr.exp-mips32 \
386 sigkill.stderr.exp-solaris \
387 sigkill.stderr.exp-glibc-2.28 sigkill.vgtest \
388 signal2.stderr.exp signal2.stdout.exp signal2.vgtest \
389 sigprocmask.stderr.exp sigprocmask.stderr.exp2 sigprocmask.vgtest \
390 sized_delete.stderr.exp sized_delete.stderr.exp-x86 sized_delete.vgtest \
391 static_malloc.stderr.exp static_malloc.vgtest \
392 stpncpy.vgtest stpncpy.stderr.exp stpncpy.stdout.exp \
393 strchr.stderr.exp strchr.stderr.exp2 strchr.stderr.exp3 strchr.vgtest \
394 str_tester.stderr.exp str_tester.vgtest \
395 supp-dir.vgtest supp-dir.stderr.exp \
396 supp_unknown.stderr.exp supp_unknown.vgtest supp_unknown.supp \
397 supp_unknown.stderr.exp-kfail \
398 supp1.stderr.exp supp1.vgtest \
399 supp2.stderr.exp supp2.vgtest \
401 suppfree.stderr.exp suppfree.supp suppfree.vgtest \
402 suppfreecollision.stderr.exp suppfreecollision.supp suppfreecollision.vgtest \
403 supponlyobj.stderr.exp supponlyobj.supp supponlyobj.vgtest \
404 suppsrc_lineno.stderr.exp suppsrc_lineno.stdout.exp suppsrc_lineno.vgtest \
405 suppsrc_lineno.supp \
406 suppsrc_sanlineno.stderr.exp suppsrc_sanlineno.stdout.exp suppsrc_sanlineno.vgtest \
407 suppsrc_sanlineno.supp \
408 suppvarinfo5.stderr.exp suppvarinfo5.supp suppvarinfo5.vgtest \
409 test-plo-no.vgtest test-plo-no.stdout.exp \
410 test-plo-no.stderr.exp-le64 test-plo-no.stderr.exp-le32 \
411 test-plo-no.stderr.exp-le32-freebsd test-plo-no.stderr.exp-le64-freebsd \
412 test-plo-no.stderr.exp-le32-freebsd-clang \
413 test-plo-yes.vgtest test-plo-yes.stdout.exp \
414 test-plo-yes.stderr.exp-le64 test-plo-yes.stderr.exp-le32 \
415 test-plo-no.stderr.exp-s390x-mvc \
416 thread_alloca.stderr.exp thread_alloca.vgtest \
417 threadname.vgtest threadname.stderr.exp \
418 threadname_xml.vgtest threadname_xml.stderr.exp \
419 trivialleak.stderr.exp trivialleak.vgtest trivialleak.stderr.exp2 \
420 undef_malloc_args.stderr.exp undef_malloc_args.vgtest \
421 unit_libcbase.stderr.exp unit_libcbase.vgtest \
422 unit_oset.stderr.exp unit_oset.stdout.exp unit_oset.vgtest \
423 varinfo1.vgtest varinfo1.stdout.exp varinfo1.stderr.exp \
424 varinfo1.stderr.exp-ppc64 \
425 varinfo1.stderr.exp-freebsd \
426 varinfo2.vgtest varinfo2.stdout.exp varinfo2.stderr.exp \
427 varinfo2.stderr.exp-ppc64 \
428 varinfo3.vgtest varinfo3.stdout.exp varinfo3.stderr.exp \
429 varinfo3.stderr.exp-ppc64 \
430 varinfo3.stderr.exp-freebsd \
431 varinfo4.vgtest varinfo4.stdout.exp varinfo4.stderr.exp \
432 varinfo4.stderr.exp-ppc64 \
433 varinfo4.stderr.exp-freebsd \
434 varinfo5.vgtest varinfo5.stdout.exp varinfo5.stderr.exp \
435 varinfo5.stderr.exp-ppc64 \
436 varinfo5.stderr.exp-freebsd \
437 varinfo5.stderr.exp-freebsd2 \
438 varinfo6.vgtest varinfo6.stdout.exp varinfo6.stderr.exp \
439 varinfo6.stderr.exp-ppc64 \
440 varinforestrict.vgtest varinforestrict.stderr.exp \
441 vcpu_bz2.stdout.exp vcpu_bz2.stderr.exp vcpu_bz2.vgtest \
442 vcpu_fbench.stdout.exp vcpu_fbench.stderr.exp vcpu_fbench.vgtest \
443 vcpu_fnfns.stdout.exp vcpu_fnfns.stdout.exp-glibc28-amd64 \
444 vcpu_fnfns.stdout.exp-darwin vcpu_fnfns.stdout.exp-solaris \
445 vcpu_fnfns.stderr.exp vcpu_fnfns.vgtest \
446 wcpncpy.stderr.exp wcpncpy.vgtest \
447 wcs.vgtest wcs.stderr.exp wcs.stdout.exp \
448 wcsncpy.vgtest wcsncpy.stderr.exp \
449 wmemcmp.vgtest wmemcmp.stderr.exp \
450 wrap1.vgtest wrap1.stdout.exp wrap1.stderr.exp \
451 wrap2.vgtest wrap2.stdout.exp wrap2.stderr.exp \
452 wrap3.vgtest wrap3.stdout.exp wrap3.stderr.exp \
453 wrap4.vgtest wrap4.stdout.exp wrap4.stderr.exp \
454 wrap5.vgtest wrap5.stdout.exp wrap5.stderr.exp \
455 wrap6.vgtest wrap6.stdout.exp wrap6.stderr.exp \
456 wrap7.vgtest wrap7.stdout.exp wrap7.stderr.exp \
457 wrap8.vgtest wrap8.stdout.exp wrap8.stderr.exp \
458 wrap8.stdout.exp-ppc64 wrap8.stderr.exp-ppc64 \
459 wrapmalloc.vgtest wrapmalloc.stdout.exp wrapmalloc.stderr.exp \
460 wrapmallocstatic.vgtest wrapmallocstatic.stdout.exp \
461 wrapmallocstatic.stderr.exp \
462 writev1.stderr.exp writev1.stderr.exp-solaris writev1.vgtest \
463 xml1.stderr.exp xml1.stdout.exp xml1.vgtest xml1.stderr.exp-s390x-mvc
469 badaddrvalue badfree badjump badjump2 \
473 big_blocks_freed_list \
479 bug445235_ada_demangle \
480 bug464969_d_demangle \
494 big_debuginfo_symbol \
497 doublefree error_counts errs1 exitprog execve1 execve2 erringfds \
498 err_disable1 err_disable2 err_disable3 err_disable4 \
499 err_disable_arange1 \
501 fprw fwrite inits inline inlinfo inltemplate \
502 holey_buffer_too_small \
514 malloc_usable malloc1 malloc2 malloc3 manuel1 manuel2 manuel3 \
516 memalign_test memcmptest mempool mempool2 mmaptest \
520 mismatches new_override metadata \
521 nanoleak_supp nanoleak2 new_nothrow \
524 origin1-yes origin2-not-quite origin3-no \
525 origin4-many origin5-bz2 origin6-fp \
528 partial_load pdb-realloc pdb-realloc2 \
532 realloc_size_zero realloc_size_zero_mismatch \
533 realloc_size_zero_again \
534 realloc1 realloc2 realloc3 \
539 sh-mem sh-mem-random \
540 sigaltstack signal2 sigprocmask static_malloc sigkill \
543 supp_unknown supp1 supp2 suppfree \
548 unit_libcbase unit_oset \
549 varinfo1 varinfo2 varinfo3 varinfo4 \
550 varinfo5 varinfo5so.so varinfo6 \
552 vcpu_fbench vcpu_fnfns \
556 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap7so.so wrap8 \
557 wrapmalloc wrapmallocso.so wrapmallocstatic \
560 if !SOLARIS_SUN_STUDIO_AS
561 # Sun Studio assembler fails on "IDENT too long"
562 check_PROGRAMS += long_namespace_xml
567 check_PROGRAMS += dw4
571 bug464969_d_demangle_SOURCES = bug464969_d_demangle.cpp
572 bug464969_d_demangle_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_UNINITIALIZED@
575 check_PROGRAMS += bug484002
579 check_PROGRAMS += cdebug_zlib
580 cdebug_zlib_SOURCES = cdebug.c
581 cdebug_zlib_CFLAGS = $(AM_CFLAGS) -g -gz=zlib @FLAG_W_NO_UNINITIALIZED@
585 check_PROGRAMS += cdebug_zlib_gnu
586 cdebug_zlib_gnu_SOURCES = cdebug.c
587 cdebug_zlib_gnu_CFLAGS = $(AM_CFLAGS) -g -gz=zlib-gnu @FLAG_W_NO_UNINITIALIZED@
591 check_PROGRAMS += brk2
594 if HAVE_ALIGNED_CXX_ALLOC
595 check_PROGRAMS += cxx17_aligned_new sized_aligned_new_delete_args \
596 new_aligned_delete_default \
597 sized_aligned_new_delete_misaligned1 \
598 sized_aligned_new_delete_misaligned2 \
599 sized_aligned_new_delete_misaligned3
603 check_PROGRAMS += close_range
606 close_range_CFLAGS = ${AM_CFLAGS} @FLAG_W_NO_UNUSED_BUT_SET_VARIABLE@ \
607 @FLAG_W_NO_UNINITIALIZED@
609 if HAVE_PTHREAD_BARRIER
610 check_PROGRAMS += reach_thread_register
613 if HAVE_FSIZED_DEALLOCATION
614 check_PROGRAMS += sized_delete new_delete_mismatch_size
618 check_PROGRAMS += stpncpy
621 if HAVE_PTHREAD_SETNAME_NP
622 check_PROGRAMS += threadname
626 check_PROGRAMS += wcpncpy
629 # are there still pre-C99 C compilers?
631 check_PROGRAMS += wcsncpy
634 AM_CFLAGS += $(AM_FLAG_M3264_PRI)
635 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
637 if VGCONF_PLATFORMS_INCLUDE_ARM_LINUX
638 #AM_CFLAGS += -mfloat-abi=softfp
639 #AM_CXXFLAGS += -mfloat-abi=softfp
642 if VGCONF_OS_IS_DARWIN
643 atomic_incs_CFLAGS = $(AM_CFLAGS) -mdynamic-no-pic
645 atomic_incs_CFLAGS = $(AM_CFLAGS)
648 badpoll_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_STRINGOP_OVERFLOW@
649 badrw_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
650 big_blocks_freed_list_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
652 if VGCONF_OS_IS_SOLARIS
653 buflen_check_LDADD = -lsocket -lnsl
656 leak_cpp_interior_SOURCES = leak_cpp_interior.cpp
658 # Suppress various gcc warnings which are correct, but for things
659 # we are actually testing for at runtime.
660 accounting_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_ALLOC_SIZE_LARGER_THAN@
661 badfree_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_FREE_NONHEAP_OBJECT@
662 bug155125_CFLAGS = $(AM_CFLAGS) -Wno-unused-result @FLAG_W_NO_ALLOC_SIZE_LARGER_THAN@
663 bug472219_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
664 mallinfo_CFLAGS = $(AM_CFLAGS) -Wno-deprecated-declarations
665 malloc3_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_ALLOC_SIZE_LARGER_THAN@
666 sbfragment_CFLAGS = $(AM_CFLAGS) -Wno-deprecated-declarations
667 strchr_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
669 big_debuginfo_symbol_SOURCES = big_debuginfo_symbol.cpp
670 big_debuginfo_symbol_CXXFLAGS = $(AM_CXXFLAGS) -std=c++0x
672 bug340392_CFLAGS = $(AM_CFLAGS) -O3 @FLAG_W_NO_MAYBE_UNINITIALIZED@
674 if HAVE_ALIGNED_CXX_ALLOC
675 cxx17_aligned_new_SOURCES = cxx17_aligned_new.cpp
676 cxx17_aligned_new_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17 @FLAG_W_NO_MISMATCHED_NEW_DELETE@
677 new_aligned_delete_default_SOURCES = new_aligned_delete_default.cpp
678 new_aligned_delete_default_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17
679 sized_aligned_new_delete_args_SOURCES = sized_aligned_new_delete_args.cpp
680 sized_aligned_new_delete_args_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17
681 sized_aligned_new_delete_misaligned1_SOURCES = sized_aligned_new_delete_misaligned1.cpp
682 sized_aligned_new_delete_misaligned1_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17
683 sized_aligned_new_delete_misaligned2_SOURCES = sized_aligned_new_delete_misaligned2.cpp
684 sized_aligned_new_delete_misaligned2_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17 @FLAG_W_NO_UNUSED_VARIABLE@
685 sized_aligned_new_delete_misaligned3_SOURCES = sized_aligned_new_delete_misaligned3.cpp
686 sized_aligned_new_delete_misaligned3_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17 @FLAG_W_NO_UNUSED_VARIABLE@
688 cxx17_aligned_new_CXXFLAGS += -fsized-deallocation
689 sized_aligned_new_delete_args_CXXFLAGS += -fsized-deallocation
690 sized_aligned_new_delete_misaligned1_CXXFLAGS += -fsized-deallocation
691 sized_aligned_new_delete_misaligned2_CXXFLAGS += -fsized-deallocation
692 sized_aligned_new_delete_misaligned3_CXXFLAGS += -fsized-deallocation
696 demangle_SOURCES = demangle.cpp
697 demangle_rust_SOURCES = demangle-rust.c
698 demangle_rust_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
699 dw4_CFLAGS = $(AM_CFLAGS) -gdwarf-4 -fdebug-types-section
701 descr_belowsp_LDADD = -lpthread
702 err_disable3_LDADD = -lpthread
703 err_disable4_LDADD = -lpthread
704 err_disable4_CFLAGS = $(AM_CFLAGS)
705 if VGCONF_OS_IS_SOLARIS
706 err_disable4_CFLAGS += -D_XOPEN_SOURCE=600
709 error_counts_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_UNUSED_BUT_SET_VARIABLE@
711 execve1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
713 execve2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
715 fprw_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_FREE_NONHEAP_OBJECT@ @FLAG_W_NO_USE_AFTER_FREE@
717 inits_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
719 inlinfo_CFLAGS = $(AM_CFLAGS) -w
721 inltemplate_SOURCES = inltemplate.cpp
722 inltemplate_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_UNINITIALIZED@
724 long_namespace_xml_SOURCES = long_namespace_xml.cpp
726 malloc_free_fill_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
727 malloc1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
728 manuel1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
729 manuel3_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
731 memalign_args_CFLAGS = $(AM_CFLAGS) -std=gnu11
732 memalign2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NON_POWER_OF_TWO_ALIGNMENT@
733 if VGCONF_OS_IS_SOLARIS
734 memalign2_CFLAGS += -D__EXTENSIONS__
735 posix_memalign_CFLAGS = ${AM_CFLAGS} -D__EXTENSIONS__
737 posix_memalign_CFLAGS = ${AM_CFLAGS}
740 memcmptest_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcmp
742 mismatches_SOURCES = mismatches.cpp
743 mismatches_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_MISMATCHED_NEW_DELETE@
745 if HAVE_FSIZED_DEALLOCATION
746 new_delete_mismatch_size_SOURCES = new_delete_mismatch_size.cpp
747 new_delete_mismatch_size_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_FSIZED_DEALLOCATION@ -std=c++17
750 new_nothrow_SOURCES = new_nothrow.cpp
751 new_override_SOURCES = new_override.cpp
753 noisy_child_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
755 if VGCONF_OS_IS_SOLARIS
756 null_socket_LDADD = -lsocket -lnsl
759 origin1_yes_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
761 origin2_not_quite_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
763 origin3_no_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
765 # This requires optimisation in order to get just one resulting error.
766 origin4_many_CFLAGS = $(AM_CFLAGS) -O @FLAG_W_NO_USE_AFTER_FREE@ @FLAG_W_NO_UNINITIALIZED@
768 # Apply -O so as to run in reasonable time.
769 origin5_bz2_CFLAGS = $(AM_CFLAGS) -O -Wno-inline
770 origin6_fp_CFLAGS = $(AM_CFLAGS) -O
772 # Don't allow GCC to inline memcpy() and strcpy(),
773 # because then we can't intercept it
774 overlap_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcpy -fno-builtin-strcpy \
775 @FLAG_W_NO_FORTIFY_SOURCE@ @FLAG_W_NO_STRINGOP_OVERFLOW@ @FLAG_W_NO_BUILTIN_MEMCPY_CHK_SIZE@
777 partial_load_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
778 reach_thread_register_CFLAGS = $(AM_CFLAGS) -O2
779 reach_thread_register_LDADD = -lpthread
781 realloc_size_zero_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_INCOMPATIBLE_POINTER_TYPES_DISCARDS_QUALIFIERS@
782 realloc_size_zero_mismatch_SOURCES = realloc_size_zero_mismatch.cpp
783 realloc_size_zero_mismatch_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_MISMATCHED_NEW_DELETE@
785 resvn_stack_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
787 sendmsg_CFLAGS = $(AM_CFLAGS)
788 if VGCONF_OS_IS_SOLARIS
789 sendmsg_CFLAGS += -D_XOPEN_SOURCE=600
790 sendmsg_LDADD = -lsocket -lnsl
793 if HAVE_FSIZED_DEALLOCATION
794 sized_delete_SOURCES = sized_delete.cpp
795 sized_delete_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_FSIZED_DEALLOCATION@
798 str_tester_CFLAGS = $(AM_CFLAGS) -Wno-shadow @FLAG_W_NO_STRINGOP_OVERFLOW@ \
799 @FLAG_W_NO_STRINGOP_TRUNCATION@ \
800 @FLAG_W_NO_FORTIFY_SOURCE@ @FLAG_W_NO_SUSPICIOUS_BZERO@ \
801 @FLAG_W_NO_MEMSET_TRANSPOSED_ARGS@ @FLAG_W_NO_STRINGOP_OVERREAD@ \
802 @FLAG_W_NO_BUILTIN_MEMCPY_CHK_SIZE@
804 supp_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
806 supp_unknown_SOURCES = badjump.c
807 supp_unknown_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
809 supp1_SOURCES = supp.c
810 supp1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
812 supp2_SOURCES = supp.c
813 supp2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
815 suppfree_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
816 test_plo_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
818 thread_alloca_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_FORMAT_OVERFLOW@
819 thread_alloca_LDADD = -lpthread
820 threadname_LDADD = -lpthread
822 vcpu_bz2_CFLAGS = $(AM_CFLAGS) -O2
823 vcpu_fbench_CFLAGS = $(AM_CFLAGS) -O2
824 vcpu_fnfns_CFLAGS = $(AM_CFLAGS) -O2
825 vcpu_fnfns_LDADD = -lm
826 wrap6_CFLAGS = $(AM_CFLAGS) -O2
828 # To make it a bit more realistic, have some optimisation enabled
829 # for the varinfo tests. We still expect sane results.
830 varinfo1_CFLAGS = $(AM_CFLAGS) -O @FLAG_W_NO_MAYBE_UNINITIALIZED@
831 varinfo2_CFLAGS = $(AM_CFLAGS) -O -Wno-shadow @FLAG_W_NO_MAYBE_UNINITIALIZED@
832 varinfo3_CFLAGS = $(AM_CFLAGS) -O @FLAG_W_NO_MAYBE_UNINITIALIZED@
833 varinfo4_CFLAGS = $(AM_CFLAGS) -O @FLAG_W_NO_MAYBE_UNINITIALIZED@
834 varinfo5_CFLAGS = $(AM_CFLAGS) -O
835 varinfo6_CFLAGS = $(AM_CFLAGS) -O @FLAG_W_NO_MAYBE_UNINITIALIZED@
837 # Build shared object for varinfo5
838 varinfo5_SOURCES = varinfo5.c
839 varinfo5_DEPENDENCIES = varinfo5so.so
840 if VGCONF_OS_IS_DARWIN
841 varinfo5_LDADD = `pwd`/varinfo5so.so
842 varinfo5_LDFLAGS = $(AM_FLAG_M3264_PRI)
844 varinfo5_LDADD = varinfo5so.so
845 varinfo5_LDFLAGS = $(AM_FLAG_M3264_PRI) \
846 -Wl,-rpath,$(top_builddir)/memcheck/tests
849 varinfo5so_so_SOURCES = varinfo5so.c
850 varinfo5so_so_CFLAGS = $(AM_CFLAGS) -fpic -O -Wno-shadow -fno-optimize-sibling-calls @FLAG_W_NO_MAYBE_UNINITIALIZED@
851 if VGCONF_OS_IS_DARWIN
852 varinfo5so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
853 -dynamiclib -all_load
855 varinfo5so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \
856 -Wl,-soname -Wl,varinfo5so.so
858 varinforestrict_CFLAGS = $(AM_CFLAGS) -O0 -g @FLAG_W_NO_MAYBE_UNINITIALIZED@
860 # Build shared object for wrap7
861 wrap7_SOURCES = wrap7.c
862 wrap7_DEPENDENCIES = wrap7so.so
863 if VGCONF_OS_IS_DARWIN
864 wrap7_LDADD = `pwd`/wrap7so.so
865 wrap7_LDFLAGS = $(AM_FLAG_M3264_PRI)
867 wrap7_LDADD = wrap7so.so
868 wrap7_LDFLAGS = $(AM_FLAG_M3264_PRI) \
869 -Wl,-rpath,$(top_builddir)/memcheck/tests
872 wrap7so_so_SOURCES = wrap7so.c
873 wrap7so_so_CFLAGS = $(AM_CFLAGS) -fpic
874 if VGCONF_OS_IS_DARWIN
875 wrap7so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
876 -dynamiclib -all_load
878 wrap7so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \
879 -Wl,-soname -Wl,wrap7so.so
882 # Build shared object for wrapmalloc
883 wrapmalloc_SOURCES = wrapmalloc.c
884 wrapmalloc_DEPENDENCIES = wrapmallocso.so
885 if VGCONF_OS_IS_DARWIN
886 wrapmalloc_LDADD = `pwd`/wrapmallocso.so
887 wrapmalloc_LDFLAGS = $(AM_FLAG_M3264_PRI)
889 wrapmalloc_LDADD = wrapmallocso.so
890 wrapmalloc_LDFLAGS = $(AM_FLAG_M3264_PRI) \
891 -Wl,-rpath,$(top_builddir)/memcheck/tests
894 wrapmallocso_so_SOURCES = wrapmallocso.c
895 wrapmallocso_so_CFLAGS = $(AM_CFLAGS) -fpic
896 if VGCONF_OS_IS_DARWIN
897 wrapmallocso_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
898 -dynamiclib -all_load
900 wrapmallocso_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \
901 -Wl,-soname -Wl,wrapmallocso.so
904 writev1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_STRINGOP_OVERFLOW@ @FLAG_W_NO_STRINGOP_OVERREAD@
905 xml1_CFLAGS = $(AM_CFLAGS) -D_GNU_SOURCE @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_USE_AFTER_FREE@