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_zstd.vgtest cdebug_zstd.stderr.exp \
133 cdebug_zlib.stderr.exp cdebug_zlib.vgtest \
134 cdebug_zlib_gnu.stderr.exp cdebug_zlib_gnu.vgtest \
135 client-msg.stderr.exp client-msg.vgtest \
136 client-msg-as-xml.stderr.exp client-msg-as-xml.vgtest \
137 clientperm.stderr.exp \
138 clientperm.stdout.exp clientperm.vgtest \
139 clireq_nofill.stderr.exp \
140 clireq_nofill.stdout.exp clireq_nofill.vgtest \
141 clo_redzone_default.vgtest clo_redzone_128.vgtest \
142 clo_redzone_default.stderr.exp clo_redzone_128.stderr.exp \
143 close_range.vgtest close_range.stderr.exp \
144 close_range.stderr.exp.linux \
145 cond_ld.vgtest cond_ld.stdout.exp cond_ld.stderr.exp-arm \
146 cond_ld.stderr.exp-64bit-non-arm \
147 cond_ld.stderr.exp-32bit-non-arm \
148 cond_st.vgtest cond_st.stdout.exp cond_st.stderr.exp-arm \
149 cond_st.stderr.exp-64bit-non-arm \
150 cond_st.stderr.exp-32bit-non-arm \
151 leak_cpp_interior.stderr.exp leak_cpp_interior.stderr.exp-64bit leak_cpp_interior.vgtest libstdc++.supp \
152 leak_cpp_interior.stderr.exp-freebsd leak_cpp_interior.stderr.exp-freebsd-32bit \
153 leak_cpp_interior.stderr.exp-arm \
154 custom_alloc.stderr.exp custom_alloc.vgtest \
155 custom_alloc.stderr.exp-s390x-mvc \
156 custom-overlap.stderr.exp custom-overlap.vgtest \
157 cxx17_aligned_new.stderr.exp cxx17_aligned_new.vgtest \
158 cxx17_aligned_new.stderr.exp_32 \
159 cxx17_aligned_new.stdout.exp \
160 sized_aligned_new_delete_args.stderr.exp \
161 sized_aligned_new_delete_args.vgtest \
162 sized_aligned_new_delete_misaligned1.stderr.exp \
163 sized_aligned_new_delete_misaligned1.vgtest \
164 sized_aligned_new_delete_misaligned2.stderr.exp \
165 sized_aligned_new_delete_misaligned2.vgtest \
166 sized_aligned_new_delete_misaligned3.stderr.exp \
167 sized_aligned_new_delete_misaligned3.vgtest \
168 sized_aligned_new_delete_misaligned1_xml.stderr.exp \
169 sized_aligned_new_delete_misaligned1_xml.vgtest \
170 sized_aligned_new_delete_misaligned2_xml.stderr.exp \
171 sized_aligned_new_delete_misaligned2_xml.vgtest \
172 sized_aligned_new_delete_misaligned3_xml.stderr.exp \
173 sized_aligned_new_delete_misaligned3_xml.vgtest \
174 sized_aligned_new_delete_misaligned1_supp.vgtest \
175 sized_aligned_new_delete_misaligned1_supp.supp \
176 sized_aligned_new_delete_misaligned1_supp.stderr.exp \
177 sized_aligned_new_delete_misaligned2_supp.vgtest \
178 sized_aligned_new_delete_misaligned2_supp.supp \
179 sized_aligned_new_delete_misaligned2_supp.stderr.exp \
180 sized_aligned_new_delete_misaligned2_supp.stderr.exp-32 \
181 sized_aligned_new_delete_misaligned3_supp.vgtest \
182 sized_aligned_new_delete_misaligned3_supp.supp \
183 sized_aligned_new_delete_misaligned3_supp.stderr.exp \
184 sized_aligned_new_delete_misaligned3_supp.stderr.exp-32 \
185 new_aligned_delete_default.stderr.exp \
186 new_aligned_delete_default.stderr.exp_32 \
187 new_aligned_delete_default.vgtest \
188 new_delete_mismatch_size.stderr.exp \
189 new_delete_mismatch_size.vgtest \
190 new_delete_mismatch_size_supp.stderr.exp \
191 new_delete_mismatch_size_supp.stderr.exp-32 \
192 new_delete_mismatch_size_supp.vgtest \
193 new_delete_mismatch_size_supp.supp \
194 deep-backtrace.vgtest deep-backtrace.stderr.exp \
195 demangle.stderr.exp demangle.vgtest \
196 big_debuginfo_symbol.stderr.exp big_debuginfo_symbol.vgtest \
197 describe-block.stderr.exp describe-block.vgtest \
198 descr_belowsp.vgtest descr_belowsp.stderr.exp \
199 doublefree.stderr.exp doublefree.vgtest \
200 dw4.vgtest dw4.stderr.exp dw4.stderr.exp-solaris dw4.stdout.exp \
201 err_disable1.vgtest err_disable1.stderr.exp \
202 err_disable2.vgtest err_disable2.stderr.exp \
203 err_disable3.vgtest err_disable3.stderr.exp \
204 err_disable4.vgtest err_disable4.stderr.exp \
205 err_disable_arange1.vgtest err_disable_arange1.stderr.exp \
206 erringfds.stderr.exp erringfds.stdout.exp erringfds.vgtest \
207 error_counts.stderr.exp error_counts.vgtest \
208 errs1.stderr.exp errs1.vgtest \
209 exit_on_first_error.stderr.exp \
210 exit_on_first_error.vgtest \
211 exit_on_first_error_with_xml.stderr.exp \
212 exit_on_first_error_with_xml.vgtest \
213 exitprog.stderr.exp exitprog.vgtest \
214 execve1.stderr.exp execve1.vgtest execve1.stderr.exp-kfail \
215 execve2.stderr.exp execve2.vgtest execve2.stderr.exp-kfail \
216 file_locking.stderr.exp file_locking.vgtest \
217 fprw.stderr.exp fprw.stderr.exp-freebsd fprw.stderr.exp-mips32-be \
218 fprw.stderr.exp-mips32-le fprw.vgtest \
219 fprw.stderr.exp-freebsd-x86 \
220 fwrite.stderr.exp fwrite.vgtest fwrite.stderr.exp-kfail \
221 gone_abrt_xml.vgtest gone_abrt_xml.stderr.exp gone_abrt_xml.stderr.exp-solaris \
222 gone_abrt_xml.stderr.exp-freebsd \
223 holey_buffer_too_small.vgtest holey_buffer_too_small.stdout.exp \
224 holey_buffer_too_small.stderr.exp \
225 inits.stderr.exp inits.vgtest \
226 inline.stderr.exp inline.stdout.exp inline.vgtest \
227 inlinfo.stderr.exp inlinfo.stdout.exp inlinfo.vgtest \
228 inlinfosupp.stderr.exp inlinfosupp.stdout.exp inlinfosupp.supp inlinfosupp.vgtest \
229 inlinfosuppobj.stderr.exp inlinfosuppobj.stdout.exp inlinfosuppobj.supp inlinfosuppobj.vgtest \
230 inltemplate.stderr.exp inltemplate.stdout.exp inltemplate.vgtest \
231 inltemplate.stderr.exp-old-gcc \
232 leak-0.vgtest leak-0.stderr.exp \
233 leak-cases-exit-on-definite.vgtest leak-cases-exit-on-definite.stderr.exp \
234 leak-cases-full.vgtest leak-cases-full.stderr.exp \
235 leak-cases-possible.vgtest leak-cases-possible.stderr.exp \
236 leak-cases-summary.vgtest leak-cases-summary.stderr.exp \
237 leak-cycle.vgtest leak-cycle.stderr.exp \
238 leak-delta.vgtest leak-delta.stderr.exp \
239 leak-pool-0.vgtest leak-pool-0.stderr.exp \
240 leak-pool-1.vgtest leak-pool-1.stderr.exp \
241 leak-pool-2.vgtest leak-pool-2.stderr.exp \
242 leak-pool-3.vgtest leak-pool-3.stderr.exp \
243 leak-pool-4.vgtest leak-pool-4.stderr.exp \
244 leak-pool-5.vgtest leak-pool-5.stderr.exp \
245 leak-autofreepool-0.vgtest leak-autofreepool-0.stderr.exp \
246 leak-autofreepool-1.vgtest leak-autofreepool-1.stderr.exp \
247 leak-autofreepool-2.vgtest leak-autofreepool-2.stderr.exp \
248 leak-autofreepool-4.vgtest leak-autofreepool-4.stderr.exp \
249 leak-autofreepool-5.vgtest leak-autofreepool-5.stderr.exp \
250 leak-autofreepool-6.vgtest leak-autofreepool-6.stderr.exp \
251 leak-autofreepool-5.stderr.exp-freebsd \
252 leak-tree.vgtest leak-tree.stderr.exp \
253 leak-segv-jmp.vgtest leak-segv-jmp.stderr.exp \
254 lks.vgtest lks.stdout.exp lks.supp lks.stderr.exp \
255 long_namespace_xml.vgtest long_namespace_xml.stdout.exp \
256 long_namespace_xml.stderr.exp \
257 long-supps.vgtest long-supps.stderr.exp long-supps.supp \
258 mallinfo.stderr.exp mallinfo.vgtest \
259 malloc_free_fill.vgtest \
260 malloc_free_fill.stderr.exp \
261 malloc_usable.stderr.exp malloc_usable.vgtest \
262 malloc1.stderr.exp malloc1.vgtest \
263 malloc1_ks_none.stderr.exp malloc1_ks_none.vgtest \
264 malloc1_ks_alloc.stderr.exp malloc1_ks_alloc.vgtest \
265 malloc1_ks_free.stderr.exp malloc1_ks_free.vgtest \
266 malloc1_ks_alloc_and_free.stderr.exp malloc1_ks_alloc_and_free.vgtest \
267 malloc2.stderr.exp malloc2.vgtest \
268 malloc3.stderr.exp malloc3.stdout.exp malloc3.vgtest \
269 manuel1.stderr.exp manuel1.stdout.exp manuel1.vgtest \
270 manuel2.stderr.exp manuel2.stderr.exp64 manuel2.stdout.exp \
272 manuel3.stderr.exp manuel3.vgtest \
273 match-overrun.stderr.exp match-overrun.vgtest match-overrun.supp \
274 memalign_test.stderr.exp memalign_test.vgtest \
275 memalign_args.vgtest memalign_args.stderr.exp \
276 memalign_args.stderr.exp-glibc \
277 memalign_args.stderr.exp-darwin \
278 memalign_args.stderr.exp-solaris \
279 memccpy1.stderr.exp memccpy1.stdout.exp memccpy1.vgtest \
280 memccpy2.stderr.exp memccpy2.vgtest \
281 memcmptest.stderr.exp \
282 memcmptest.stdout.exp memcmptest.vgtest \
283 memmem.stderr.exp memmem.vgtest \
284 mempool.stderr.exp mempool.vgtest \
285 mempool2.stderr.exp mempool2.vgtest \
286 metadata.stderr.exp metadata.stdout.exp metadata.vgtest \
287 mismatches.stderr.exp mismatches.vgtest \
288 mismatches.stderr.exp2 \
289 mismatches_xml.stderr.exp mismatches_xml.vgtest \
290 mismatches_xml.stderr.exp2 \
291 mmaptest.stderr.exp mmaptest.vgtest \
292 nanoleak_supp.stderr.exp nanoleak_supp.vgtest nanoleak.supp \
293 nanoleak_dynsupp.stderr.exp nanoleak_dynsupp.vgtest \
294 nanoleak2.stderr.exp nanoleak2.vgtest \
295 new_nothrow.stderr.exp new_nothrow.vgtest \
296 new_override.stderr.exp new_override.stdout.exp new_override.vgtest \
297 noisy_child.vgtest noisy_child.stderr.exp noisy_child.stdout.exp \
298 null_socket.stderr.exp null_socket.vgtest \
299 origin1-yes.vgtest origin1-yes.stdout.exp origin1-yes.stderr.exp \
300 origin1-yes.stderr.exp-freebsd \
301 origin2-not-quite.vgtest origin2-not-quite.stdout.exp \
302 origin2-not-quite.stderr.exp \
303 origin2-not-quite.stderr.exp-freebsd \
304 origin3-no.vgtest origin3-no.stdout.exp \
305 origin3-no.stderr.exp-freebsd \
306 origin3-no.stderr.exp \
307 origin4-many.vgtest origin4-many.stdout.exp \
308 origin4-many.stderr.exp \
309 origin5-bz2.vgtest origin5-bz2.stdout.exp \
310 origin5-bz2.stderr.exp-glibc25-x86 \
311 origin5-bz2.stderr.exp-glibc25-amd64 \
312 origin5-bz2.stderr.exp-glibc25-amd64-b \
313 origin5-bz2.stderr.exp-glibc25-x86-b \
314 origin5-bz2.stderr.exp-glibc27-ppc64 \
315 origin5-bz2.stderr.exp-glibc212-s390x \
316 origin5-bz2.stderr.exp-glibc234-s390x \
317 origin5-bz2.stderr.exp-glibc218-mips32 \
318 origin5-bz2.stderr.exp-glibc236-arm \
319 origin6-fp.vgtest origin6-fp.stdout.exp \
320 origin6-fp.stderr.exp-glibc25-amd64 \
321 origin6-fp.stderr.exp-glibc27-ppc64 \
322 overlap.stderr.exp overlap.stdout.exp overlap.vgtest \
323 overlap.stderr.exp-no_memcpy \
324 partiallydefinedeq.vgtest partiallydefinedeq.stderr.exp \
325 partiallydefinedeq.stderr.exp4 \
326 partiallydefinedeq.stderr.exp3 \
327 partiallydefinedeq.stderr.exp2 \
328 partiallydefinedeq.stdout.exp \
329 partial_load_ok.vgtest partial_load_ok.stderr.exp \
330 partial_load_ok.stderr.exp64 \
331 partial_load_ok.stderr.exp-ppc64 \
332 partial_load_dflt.vgtest partial_load_dflt.stderr.exp \
333 partial_load_dflt.stderr.exp64 \
334 partial_load_dflt.stderr.exp-ppc64 \
335 partial_load_dflt.stderr.expr-s390x-mvc \
336 pdb-realloc.stderr.exp pdb-realloc.vgtest \
337 pdb-realloc2.stderr.exp pdb-realloc2.stdout.exp pdb-realloc2.vgtest \
338 pipe.stderr.exp pipe.vgtest \
339 pointer-trace.vgtest \
340 pointer-trace.stderr.exp \
341 posix_memalign.stderr.exp posix_memalign.vgtest \
342 posix_memalign.stderr.exp-darwin \
343 posix_memalign_supp.stderr.exp posix_memalign_supp.vgtest \
344 posix_memalign_supp.supp \
345 posix_memalign_xml.stderr.exp posix_memalign_xml.vgtest \
346 post-syscall.stderr.exp post-syscall.vgtest \
347 reach_thread_register.stderr.exp reach_thread_register.vgtest \
348 reach_thread_register.stderr.exp-mips32 \
349 reach_thread_register.stderr.exp-mips64 \
350 realloc_size_zero.stderr.exp realloc_size_zero.stdout.exp-glibc \
351 realloc_size_zero.stdout.exp-other \
352 realloc_size_zero.vgtest \
353 realloc_size_zero_yes.stderr.exp realloc_size_zero_yes.stdout.exp \
354 realloc_size_zero_yes.vgtest \
355 realloc_size_zero_again_yes.stderr.exp \
356 realloc_size_zero_again_yes.stdout.exp \
357 realloc_size_zero_again_yes.vgtest \
358 realloc_size_zero_no.stderr.exp realloc_size_zero_no.stdout.exp \
359 realloc_size_zero_no.vgtest \
360 realloc_size_zero_again_no.stderr.exp \
361 realloc_size_zero_again_no.stdout.exp \
362 realloc_size_zero_again_no.vgtest \
363 realloc_size_zero_off.stderr.exp realloc_size_zero_off.stdout.exp \
364 realloc_size_zero_off.vgtest \
365 realloc_size_zero_mismatch.stderr.exp \
366 realloc_size_zero_mismatch.stdout.exp \
367 realloc_size_zero_mismatch.vgtest \
368 realloc_size_zero_supp.stderr.exp realloc_size_zero_supp.stdout.exp \
369 realloc_size_zero_supp.vgtest \
370 realloc_size_zero.supp \
371 realloc1.stderr.exp realloc1.vgtest \
372 realloc2.stderr.exp realloc2.vgtest \
373 realloc3.stderr.exp realloc3.vgtest \
374 recursive-merge.stderr.exp recursive-merge.vgtest \
375 resvn_stack.stderr.exp resvn_stack.vgtest \
376 demangle-rust.vgtest demangle-rust.stderr.exp \
377 sbfragment.stdout.exp sbfragment.stderr.exp sbfragment.vgtest \
378 sem.stderr.exp sem.vgtest \
379 sendmsg.stderr.exp sendmsg.stderr.exp-solaris sendmsg.vgtest \
380 sendmsg.stderr.exp-freebsd \
381 sendmsg.stderr.exp-freebsd-x86 \
382 sh-mem.stderr.exp sh-mem.vgtest \
383 sh-mem-random.stderr.exp sh-mem-random.stdout.exp64 \
384 sh-mem-random.stdout.exp sh-mem-random.vgtest \
385 sigaltstack.stderr.exp sigaltstack.vgtest \
386 sigkill.stderr.exp sigkill.stderr.exp-darwin sigkill.stderr.exp-freebsd sigkill.stderr.exp-mips32 \
387 sigkill.stderr.exp-solaris \
388 sigkill.stderr.exp-glibc-2.28 sigkill.vgtest \
389 signal2.stderr.exp signal2.stdout.exp signal2.vgtest \
390 sigprocmask.stderr.exp sigprocmask.stderr.exp2 sigprocmask.vgtest \
391 sized_delete.stderr.exp sized_delete.stderr.exp-x86 sized_delete.vgtest \
392 static_malloc.stderr.exp static_malloc.vgtest \
393 stpncpy.vgtest stpncpy.stderr.exp stpncpy.stdout.exp \
394 strchr.stderr.exp strchr.stderr.exp2 strchr.stderr.exp3 strchr.vgtest \
395 str_tester.stderr.exp str_tester.vgtest \
396 supp-dir.vgtest supp-dir.stderr.exp \
397 supp_unknown.stderr.exp supp_unknown.vgtest supp_unknown.supp \
398 supp_unknown.stderr.exp-kfail \
399 supp1.stderr.exp supp1.vgtest \
400 supp2.stderr.exp supp2.vgtest \
402 suppfree.stderr.exp suppfree.supp suppfree.vgtest \
403 suppfreecollision.stderr.exp suppfreecollision.supp suppfreecollision.vgtest \
404 supponlyobj.stderr.exp supponlyobj.supp supponlyobj.vgtest \
405 suppsrc_lineno.stderr.exp suppsrc_lineno.stdout.exp suppsrc_lineno.vgtest \
406 suppsrc_lineno.supp \
407 suppsrc_sanlineno.stderr.exp suppsrc_sanlineno.stdout.exp suppsrc_sanlineno.vgtest \
408 suppsrc_sanlineno.supp \
409 suppvarinfo5.stderr.exp suppvarinfo5.supp suppvarinfo5.vgtest \
410 test-plo-no.vgtest test-plo-no.stdout.exp \
411 test-plo-no.stderr.exp-le64 test-plo-no.stderr.exp-le32 \
412 test-plo-no.stderr.exp-le32-freebsd test-plo-no.stderr.exp-le64-freebsd \
413 test-plo-no.stderr.exp-le32-freebsd-clang \
414 test-plo-yes.vgtest test-plo-yes.stdout.exp \
415 test-plo-yes.stderr.exp-le64 test-plo-yes.stderr.exp-le32 \
416 test-plo-no.stderr.exp-s390x-mvc \
417 thread_alloca.stderr.exp thread_alloca.vgtest \
418 threadname.vgtest threadname.stderr.exp \
419 threadname_xml.vgtest threadname_xml.stderr.exp \
420 trivialleak.stderr.exp trivialleak.vgtest trivialleak.stderr.exp2 \
421 undef_malloc_args.stderr.exp undef_malloc_args.vgtest \
422 unit_libcbase.stderr.exp unit_libcbase.vgtest \
423 unit_oset.stderr.exp unit_oset.stdout.exp unit_oset.vgtest \
424 varinfo1.vgtest varinfo1.stdout.exp varinfo1.stderr.exp \
425 varinfo1.stderr.exp-ppc64 \
426 varinfo1.stderr.exp-freebsd \
427 varinfo2.vgtest varinfo2.stdout.exp varinfo2.stderr.exp \
428 varinfo2.stderr.exp-ppc64 \
429 varinfo3.vgtest varinfo3.stdout.exp varinfo3.stderr.exp \
430 varinfo3.stderr.exp-ppc64 \
431 varinfo3.stderr.exp-freebsd \
432 varinfo4.vgtest varinfo4.stdout.exp varinfo4.stderr.exp \
433 varinfo4.stderr.exp-ppc64 \
434 varinfo4.stderr.exp-freebsd \
435 varinfo5.vgtest varinfo5.stdout.exp varinfo5.stderr.exp \
436 varinfo5.stderr.exp-ppc64 \
437 varinfo5.stderr.exp-freebsd \
438 varinfo5.stderr.exp-freebsd2 \
439 varinfo6.vgtest varinfo6.stdout.exp varinfo6.stderr.exp \
440 varinfo6.stderr.exp-ppc64 \
441 varinforestrict.vgtest varinforestrict.stderr.exp \
442 vcpu_bz2.stdout.exp vcpu_bz2.stderr.exp vcpu_bz2.vgtest \
443 vcpu_fbench.stdout.exp vcpu_fbench.stderr.exp vcpu_fbench.vgtest \
444 vcpu_fnfns.stdout.exp vcpu_fnfns.stdout.exp-glibc28-amd64 \
445 vcpu_fnfns.stdout.exp-darwin vcpu_fnfns.stdout.exp-solaris \
446 vcpu_fnfns.stderr.exp vcpu_fnfns.vgtest \
447 wcpncpy.stderr.exp wcpncpy.vgtest \
448 wcs.vgtest wcs.stderr.exp wcs.stdout.exp \
449 wcsncpy.vgtest wcsncpy.stderr.exp \
450 wmemcmp.vgtest wmemcmp.stderr.exp \
451 wrap1.vgtest wrap1.stdout.exp wrap1.stderr.exp \
452 wrap2.vgtest wrap2.stdout.exp wrap2.stderr.exp \
453 wrap3.vgtest wrap3.stdout.exp wrap3.stderr.exp \
454 wrap4.vgtest wrap4.stdout.exp wrap4.stderr.exp \
455 wrap5.vgtest wrap5.stdout.exp wrap5.stderr.exp \
456 wrap6.vgtest wrap6.stdout.exp wrap6.stderr.exp \
457 wrap7.vgtest wrap7.stdout.exp wrap7.stderr.exp \
458 wrap8.vgtest wrap8.stdout.exp wrap8.stderr.exp \
459 wrap8.stdout.exp-ppc64 wrap8.stderr.exp-ppc64 \
460 wrapmalloc.vgtest wrapmalloc.stdout.exp wrapmalloc.stderr.exp \
461 wrapmallocstatic.vgtest wrapmallocstatic.stdout.exp \
462 wrapmallocstatic.stderr.exp \
463 writev1.stderr.exp writev1.stderr.exp-solaris writev1.vgtest \
464 xml1.stderr.exp xml1.stdout.exp xml1.vgtest xml1.stderr.exp-s390x-mvc
470 badaddrvalue badfree badjump badjump2 \
474 big_blocks_freed_list \
480 bug445235_ada_demangle \
481 bug464969_d_demangle \
495 big_debuginfo_symbol \
498 doublefree error_counts errs1 exitprog execve1 execve2 erringfds \
499 err_disable1 err_disable2 err_disable3 err_disable4 \
500 err_disable_arange1 \
502 fprw fwrite inits inline inlinfo inltemplate \
503 holey_buffer_too_small \
515 malloc_usable malloc1 malloc2 malloc3 manuel1 manuel2 manuel3 \
517 memalign_test memcmptest mempool mempool2 mmaptest \
521 mismatches new_override metadata \
522 nanoleak_supp nanoleak2 new_nothrow \
525 origin1-yes origin2-not-quite origin3-no \
526 origin4-many origin5-bz2 origin6-fp \
529 partial_load pdb-realloc pdb-realloc2 \
533 realloc_size_zero realloc_size_zero_mismatch \
534 realloc_size_zero_again \
535 realloc1 realloc2 realloc3 \
540 sh-mem sh-mem-random \
541 sigaltstack signal2 sigprocmask static_malloc sigkill \
544 supp_unknown supp1 supp2 suppfree \
549 unit_libcbase unit_oset \
550 varinfo1 varinfo2 varinfo3 varinfo4 \
551 varinfo5 varinfo5so.so varinfo6 \
553 vcpu_fbench vcpu_fnfns \
557 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap7so.so wrap8 \
558 wrapmalloc wrapmallocso.so wrapmallocstatic \
561 if !SOLARIS_SUN_STUDIO_AS
562 # Sun Studio assembler fails on "IDENT too long"
563 check_PROGRAMS += long_namespace_xml
568 check_PROGRAMS += dw4
572 bug464969_d_demangle_SOURCES = bug464969_d_demangle.cpp
573 bug464969_d_demangle_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_UNINITIALIZED@
576 check_PROGRAMS += bug484002
580 check_PROGRAMS += cdebug_zlib
581 cdebug_zlib_SOURCES = cdebug.c
582 cdebug_zlib_CFLAGS = $(AM_CFLAGS) -g -gz=zlib @FLAG_W_NO_UNINITIALIZED@
586 check_PROGRAMS += cdebug_zlib_gnu
587 cdebug_zlib_gnu_SOURCES = cdebug.c
588 cdebug_zlib_gnu_CFLAGS = $(AM_CFLAGS) -g -gz=zlib-gnu @FLAG_W_NO_UNINITIALIZED@
592 check_PROGRAMS += cdebug_zstd
593 cdebug_zstd_SOURCES = cdebug.c
594 cdebug_zstd_CFLAGS = $(AM_CFLAGS) -g -gz=zstd @FLAG_W_NO_UNINITIALIZED@
598 check_PROGRAMS += brk2
601 if HAVE_ALIGNED_CXX_ALLOC
602 check_PROGRAMS += cxx17_aligned_new sized_aligned_new_delete_args \
603 new_aligned_delete_default \
604 sized_aligned_new_delete_misaligned1 \
605 sized_aligned_new_delete_misaligned2 \
606 sized_aligned_new_delete_misaligned3
610 check_PROGRAMS += close_range
613 close_range_CFLAGS = ${AM_CFLAGS} @FLAG_W_NO_UNUSED_BUT_SET_VARIABLE@ \
614 @FLAG_W_NO_UNINITIALIZED@
616 if HAVE_PTHREAD_BARRIER
617 check_PROGRAMS += reach_thread_register
620 if HAVE_FSIZED_DEALLOCATION
621 check_PROGRAMS += sized_delete new_delete_mismatch_size
625 check_PROGRAMS += stpncpy
628 if HAVE_PTHREAD_SETNAME_NP
629 check_PROGRAMS += threadname
633 check_PROGRAMS += wcpncpy
636 # are there still pre-C99 C compilers?
638 check_PROGRAMS += wcsncpy
641 AM_CFLAGS += $(AM_FLAG_M3264_PRI)
642 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
644 if VGCONF_PLATFORMS_INCLUDE_ARM_LINUX
645 #AM_CFLAGS += -mfloat-abi=softfp
646 #AM_CXXFLAGS += -mfloat-abi=softfp
649 if VGCONF_OS_IS_DARWIN
650 atomic_incs_CFLAGS = $(AM_CFLAGS) -mdynamic-no-pic
652 atomic_incs_CFLAGS = $(AM_CFLAGS)
655 badpoll_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_STRINGOP_OVERFLOW@
656 badrw_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
657 big_blocks_freed_list_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
659 if VGCONF_OS_IS_SOLARIS
660 buflen_check_LDADD = -lsocket -lnsl
663 leak_cpp_interior_SOURCES = leak_cpp_interior.cpp
665 # Suppress various gcc warnings which are correct, but for things
666 # we are actually testing for at runtime.
667 accounting_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_ALLOC_SIZE_LARGER_THAN@
668 badfree_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_FREE_NONHEAP_OBJECT@
669 bug155125_CFLAGS = $(AM_CFLAGS) -Wno-unused-result @FLAG_W_NO_ALLOC_SIZE_LARGER_THAN@
670 bug472219_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
671 mallinfo_CFLAGS = $(AM_CFLAGS) -Wno-deprecated-declarations
672 malloc3_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_ALLOC_SIZE_LARGER_THAN@
673 sbfragment_CFLAGS = $(AM_CFLAGS) -Wno-deprecated-declarations
674 strchr_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
676 big_debuginfo_symbol_SOURCES = big_debuginfo_symbol.cpp
677 big_debuginfo_symbol_CXXFLAGS = $(AM_CXXFLAGS) -std=c++0x
679 bug340392_CFLAGS = $(AM_CFLAGS) -O3 @FLAG_W_NO_MAYBE_UNINITIALIZED@
681 if HAVE_ALIGNED_CXX_ALLOC
682 cxx17_aligned_new_SOURCES = cxx17_aligned_new.cpp
683 cxx17_aligned_new_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17 @FLAG_W_NO_MISMATCHED_NEW_DELETE@
684 new_aligned_delete_default_SOURCES = new_aligned_delete_default.cpp
685 new_aligned_delete_default_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17
686 sized_aligned_new_delete_args_SOURCES = sized_aligned_new_delete_args.cpp
687 sized_aligned_new_delete_args_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17
688 sized_aligned_new_delete_misaligned1_SOURCES = sized_aligned_new_delete_misaligned1.cpp
689 sized_aligned_new_delete_misaligned1_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17
690 sized_aligned_new_delete_misaligned2_SOURCES = sized_aligned_new_delete_misaligned2.cpp
691 sized_aligned_new_delete_misaligned2_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17 @FLAG_W_NO_UNUSED_VARIABLE@
692 sized_aligned_new_delete_misaligned3_SOURCES = sized_aligned_new_delete_misaligned3.cpp
693 sized_aligned_new_delete_misaligned3_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17 @FLAG_W_NO_UNUSED_VARIABLE@
695 cxx17_aligned_new_CXXFLAGS += -fsized-deallocation
696 sized_aligned_new_delete_args_CXXFLAGS += -fsized-deallocation
697 sized_aligned_new_delete_misaligned1_CXXFLAGS += -fsized-deallocation
698 sized_aligned_new_delete_misaligned2_CXXFLAGS += -fsized-deallocation
699 sized_aligned_new_delete_misaligned3_CXXFLAGS += -fsized-deallocation
703 demangle_SOURCES = demangle.cpp
704 demangle_rust_SOURCES = demangle-rust.c
705 demangle_rust_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
706 dw4_CFLAGS = $(AM_CFLAGS) -gdwarf-4 -fdebug-types-section
708 descr_belowsp_LDADD = -lpthread
709 err_disable3_LDADD = -lpthread
710 err_disable4_LDADD = -lpthread
711 err_disable4_CFLAGS = $(AM_CFLAGS)
712 if VGCONF_OS_IS_SOLARIS
713 err_disable4_CFLAGS += -D_XOPEN_SOURCE=600
716 error_counts_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_UNUSED_BUT_SET_VARIABLE@
718 execve1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
720 execve2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
722 fprw_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_FREE_NONHEAP_OBJECT@ @FLAG_W_NO_USE_AFTER_FREE@
724 inits_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
726 inlinfo_CFLAGS = $(AM_CFLAGS) -w
728 inltemplate_SOURCES = inltemplate.cpp
729 inltemplate_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_UNINITIALIZED@
731 long_namespace_xml_SOURCES = long_namespace_xml.cpp
733 malloc_free_fill_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
734 malloc1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
735 manuel1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
736 manuel3_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
738 memalign_args_CFLAGS = $(AM_CFLAGS) -std=gnu11
739 memalign2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NON_POWER_OF_TWO_ALIGNMENT@
740 if VGCONF_OS_IS_SOLARIS
741 memalign2_CFLAGS += -D__EXTENSIONS__
742 posix_memalign_CFLAGS = ${AM_CFLAGS} -D__EXTENSIONS__
744 posix_memalign_CFLAGS = ${AM_CFLAGS}
747 memcmptest_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcmp
749 mismatches_SOURCES = mismatches.cpp
750 mismatches_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_MISMATCHED_NEW_DELETE@
752 if HAVE_FSIZED_DEALLOCATION
753 new_delete_mismatch_size_SOURCES = new_delete_mismatch_size.cpp
754 new_delete_mismatch_size_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_FSIZED_DEALLOCATION@ -std=c++17
757 new_nothrow_SOURCES = new_nothrow.cpp
758 new_override_SOURCES = new_override.cpp
760 noisy_child_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
762 if VGCONF_OS_IS_SOLARIS
763 null_socket_LDADD = -lsocket -lnsl
766 origin1_yes_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
768 origin2_not_quite_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
770 origin3_no_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
772 # This requires optimisation in order to get just one resulting error.
773 origin4_many_CFLAGS = $(AM_CFLAGS) -O @FLAG_W_NO_USE_AFTER_FREE@ @FLAG_W_NO_UNINITIALIZED@
775 # Apply -O so as to run in reasonable time.
776 origin5_bz2_CFLAGS = $(AM_CFLAGS) -O -Wno-inline
777 origin6_fp_CFLAGS = $(AM_CFLAGS) -O
779 # Don't allow GCC to inline memcpy() and strcpy(),
780 # because then we can't intercept it
781 overlap_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcpy -fno-builtin-strcpy \
782 @FLAG_W_NO_FORTIFY_SOURCE@ @FLAG_W_NO_STRINGOP_OVERFLOW@ @FLAG_W_NO_BUILTIN_MEMCPY_CHK_SIZE@
784 partial_load_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
785 reach_thread_register_CFLAGS = $(AM_CFLAGS) -O2
786 reach_thread_register_LDADD = -lpthread
788 realloc_size_zero_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_INCOMPATIBLE_POINTER_TYPES_DISCARDS_QUALIFIERS@
789 realloc_size_zero_mismatch_SOURCES = realloc_size_zero_mismatch.cpp
790 realloc_size_zero_mismatch_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_MISMATCHED_NEW_DELETE@
792 resvn_stack_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
794 sendmsg_CFLAGS = $(AM_CFLAGS)
795 if VGCONF_OS_IS_SOLARIS
796 sendmsg_CFLAGS += -D_XOPEN_SOURCE=600
797 sendmsg_LDADD = -lsocket -lnsl
800 if HAVE_FSIZED_DEALLOCATION
801 sized_delete_SOURCES = sized_delete.cpp
802 sized_delete_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_FSIZED_DEALLOCATION@
805 str_tester_CFLAGS = $(AM_CFLAGS) -Wno-shadow @FLAG_W_NO_STRINGOP_OVERFLOW@ \
806 @FLAG_W_NO_STRINGOP_TRUNCATION@ \
807 @FLAG_W_NO_FORTIFY_SOURCE@ @FLAG_W_NO_SUSPICIOUS_BZERO@ \
808 @FLAG_W_NO_MEMSET_TRANSPOSED_ARGS@ @FLAG_W_NO_STRINGOP_OVERREAD@ \
809 @FLAG_W_NO_BUILTIN_MEMCPY_CHK_SIZE@
811 supp_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
813 supp_unknown_SOURCES = badjump.c
814 supp_unknown_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
816 supp1_SOURCES = supp.c
817 supp1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
819 supp2_SOURCES = supp.c
820 supp2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
822 suppfree_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
823 test_plo_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
825 thread_alloca_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_FORMAT_OVERFLOW@
826 thread_alloca_LDADD = -lpthread
827 threadname_LDADD = -lpthread
829 vcpu_bz2_CFLAGS = $(AM_CFLAGS) -O2
830 vcpu_fbench_CFLAGS = $(AM_CFLAGS) -O2
831 vcpu_fnfns_CFLAGS = $(AM_CFLAGS) -O2
832 vcpu_fnfns_LDADD = -lm
833 wrap6_CFLAGS = $(AM_CFLAGS) -O2
835 # To make it a bit more realistic, have some optimisation enabled
836 # for the varinfo tests. We still expect sane results.
837 varinfo1_CFLAGS = $(AM_CFLAGS) -O @FLAG_W_NO_MAYBE_UNINITIALIZED@
838 varinfo2_CFLAGS = $(AM_CFLAGS) -O -Wno-shadow @FLAG_W_NO_MAYBE_UNINITIALIZED@
839 varinfo3_CFLAGS = $(AM_CFLAGS) -O @FLAG_W_NO_MAYBE_UNINITIALIZED@
840 varinfo4_CFLAGS = $(AM_CFLAGS) -O @FLAG_W_NO_MAYBE_UNINITIALIZED@
841 varinfo5_CFLAGS = $(AM_CFLAGS) -O
842 varinfo6_CFLAGS = $(AM_CFLAGS) -O @FLAG_W_NO_MAYBE_UNINITIALIZED@
844 # Build shared object for varinfo5
845 varinfo5_SOURCES = varinfo5.c
846 varinfo5_DEPENDENCIES = varinfo5so.so
847 if VGCONF_OS_IS_DARWIN
848 varinfo5_LDADD = `pwd`/varinfo5so.so
849 varinfo5_LDFLAGS = $(AM_FLAG_M3264_PRI)
851 varinfo5_LDADD = varinfo5so.so
852 varinfo5_LDFLAGS = $(AM_FLAG_M3264_PRI) \
853 -Wl,-rpath,$(top_builddir)/memcheck/tests
856 varinfo5so_so_SOURCES = varinfo5so.c
857 varinfo5so_so_CFLAGS = $(AM_CFLAGS) -fpic -O -Wno-shadow -fno-optimize-sibling-calls @FLAG_W_NO_MAYBE_UNINITIALIZED@
858 if VGCONF_OS_IS_DARWIN
859 varinfo5so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
860 -dynamiclib -all_load
862 varinfo5so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \
863 -Wl,-soname -Wl,varinfo5so.so
865 varinforestrict_CFLAGS = $(AM_CFLAGS) -O0 -g @FLAG_W_NO_MAYBE_UNINITIALIZED@
867 # Build shared object for wrap7
868 wrap7_SOURCES = wrap7.c
869 wrap7_DEPENDENCIES = wrap7so.so
870 if VGCONF_OS_IS_DARWIN
871 wrap7_LDADD = `pwd`/wrap7so.so
872 wrap7_LDFLAGS = $(AM_FLAG_M3264_PRI)
874 wrap7_LDADD = wrap7so.so
875 wrap7_LDFLAGS = $(AM_FLAG_M3264_PRI) \
876 -Wl,-rpath,$(top_builddir)/memcheck/tests
879 wrap7so_so_SOURCES = wrap7so.c
880 wrap7so_so_CFLAGS = $(AM_CFLAGS) -fpic
881 if VGCONF_OS_IS_DARWIN
882 wrap7so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
883 -dynamiclib -all_load
885 wrap7so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \
886 -Wl,-soname -Wl,wrap7so.so
889 # Build shared object for wrapmalloc
890 wrapmalloc_SOURCES = wrapmalloc.c
891 wrapmalloc_DEPENDENCIES = wrapmallocso.so
892 if VGCONF_OS_IS_DARWIN
893 wrapmalloc_LDADD = `pwd`/wrapmallocso.so
894 wrapmalloc_LDFLAGS = $(AM_FLAG_M3264_PRI)
896 wrapmalloc_LDADD = wrapmallocso.so
897 wrapmalloc_LDFLAGS = $(AM_FLAG_M3264_PRI) \
898 -Wl,-rpath,$(top_builddir)/memcheck/tests
901 wrapmallocso_so_SOURCES = wrapmallocso.c
902 wrapmallocso_so_CFLAGS = $(AM_CFLAGS) -fpic
903 if VGCONF_OS_IS_DARWIN
904 wrapmallocso_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
905 -dynamiclib -all_load
907 wrapmallocso_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \
908 -Wl,-soname -Wl,wrapmallocso.so
911 writev1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_STRINGOP_OVERFLOW@ @FLAG_W_NO_STRINGOP_OVERREAD@
912 xml1_CFLAGS = $(AM_CFLAGS) -D_GNU_SOURCE @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_USE_AFTER_FREE@