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