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