regtest: remove FreeBSD version of expected for memcheck memalign_test
[valgrind.git] / memcheck / tests / Makefile.am
blob71c38acbafbb8f7102737a70b16ead3605a8f2e5
2 include $(top_srcdir)/Makefile.tool-tests.am
4 SUBDIRS = .
6 # Arch-specific tests.
7 if VGCONF_ARCHS_INCLUDE_X86
8 SUBDIRS += x86
9 endif
10 if VGCONF_ARCHS_INCLUDE_AMD64
11 SUBDIRS += amd64
12 endif
13 if VGCONF_ARCHS_INCLUDE_MIPS32
14 SUBDIRS += mips32
15 endif
16 if VGCONF_ARCHS_INCLUDE_MIPS64
17 SUBDIRS += mips64
18 endif
19 if VGCONF_ARCHS_INCLUDE_PPC32
20 SUBDIRS += ppc32
21 endif
22 if VGCONF_ARCHS_INCLUDE_PPC64
23 SUBDIRS += ppc64
24 endif
25 if VGCONF_ARCHS_INCLUDE_S390X
26 SUBDIRS += s390x
27 endif
29 # OS-specific tests
30 if VGCONF_OS_IS_LINUX
31 SUBDIRS += linux
32 endif
33 if VGCONF_OS_IS_DARWIN
34 SUBDIRS += darwin
35 endif
36 if VGCONF_OS_IS_SOLARIS
37 SUBDIRS += solaris
38 endif
39 if VGCONF_OS_IS_FREEBSD
40 SUBDIRS += freebsd
41 endif
43 # Platform-specific tests
44 if VGCONF_PLATFORMS_INCLUDE_X86_LINUX
45 SUBDIRS += x86-linux
46 endif
47 if VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX
48 SUBDIRS += amd64-linux
49 endif
50 if VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX
51 SUBDIRS += arm64-linux
52 endif
53 if VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS
54 SUBDIRS += x86-solaris
55 endif
56 if VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS
57 SUBDIRS += amd64-solaris
58 endif
59 if VGCONF_PLATFORMS_INCLUDE_X86_FREEBSD
60 SUBDIRS += x86-freebsd
61 endif
62 if VGCONF_PLATFORMS_INCLUDE_AMD64_FREEBSD
63 SUBDIRS += amd64-freebsd
64 endif
66 DIST_SUBDIRS = x86 amd64 ppc32 ppc64 s390x linux \
67                 darwin solaris x86-linux amd64-linux arm64-linux \
68                 x86-solaris amd64-solaris mips32 mips64 \
69                 freebsd amd64-freebsd x86-freebsd \
70                 common .
72 dist_noinst_SCRIPTS = \
73         filter_addressable \
74         filter_allocs \
75         filter_dw4 \
76         filter_leak_cases_possible \
77         filter_leak_cpp_interior \
78         filter_stderr filter_xml \
79         filter_strchr \
80         filter_varinfo3 \
81         filter_memcheck \
82         filter_overlaperror \
83         filter_malloc_free \
84         filter_size_t \
85         filter_stanza \
86         filter_stanza.awk
88 noinst_HEADERS = leak.h
90 EXTRA_DIST = \
91         accounting.stderr.exp accounting.vgtest \
92         addressable.stderr.exp addressable.stdout.exp addressable.vgtest \
93         atomic_incs.stderr.exp atomic_incs.vgtest \
94         atomic_incs.stdout.exp-32bit atomic_incs.stdout.exp-64bit \
95         atomic_incs.stdout.exp-64bit-and-128bit \
96         badaddrvalue.stderr.exp \
97         badaddrvalue.stdout.exp badaddrvalue.vgtest \
98         exit_on_first_error.stderr.exp \
99         exit_on_first_error.vgtest \
100         exit_on_first_error_with_xml.stderr.exp \
101         exit_on_first_error_with_xml.vgtest \
102         badfree-2trace.stderr.exp badfree-2trace.vgtest \
103         badfree.stderr.exp badfree.vgtest \
104         badfree3.stderr.exp badfree3.vgtest \
105         badjump.stderr.exp badjump.vgtest \
106         badjump2.stderr.exp badjump2.vgtest \
107         badjump.stderr.exp-kfail \
108         badjump2.stderr.exp-kfail \
109         badloop.stderr.exp badloop.vgtest \
110         badpoll.stderr.exp badpoll.vgtest \
111         badrw.stderr.exp badrw.vgtest badrw.stderr.exp-s390x-mvc \
112         big_blocks_freed_list.stderr.exp big_blocks_freed_list.vgtest \
113         brk2.stderr.exp brk2.vgtest \
114         buflen_check.stderr.exp buflen_check.vgtest \
115                 buflen_check.stderr.exp-kfail \
116         bug155125.stderr.exp bug155125.vgtest \
117         bug287260.stderr.exp bug287260.vgtest \
118         bug340392.stderr.exp bug340392.vgtest \
119         bug464969_d_demangle.stderr.exp bug464969_d_demangle.vgtest \
120                 bug464969_d_demangle.stdout.exp \
121         calloc-overflow.stderr.exp calloc-overflow.vgtest\
122         cdebug_zlib.stderr.exp cdebug_zlib.vgtest \
123         cdebug_zlib_gnu.stderr.exp cdebug_zlib_gnu.vgtest \
124         client-msg.stderr.exp client-msg.vgtest \
125         client-msg-as-xml.stderr.exp client-msg-as-xml.vgtest \
126         clientperm.stderr.exp \
127         clientperm.stdout.exp clientperm.vgtest \
128         clireq_nofill.stderr.exp \
129         clireq_nofill.stdout.exp clireq_nofill.vgtest \
130         clo_redzone_default.vgtest clo_redzone_128.vgtest \
131         clo_redzone_default.stderr.exp clo_redzone_128.stderr.exp \
132         cond_ld.vgtest cond_ld.stdout.exp cond_ld.stderr.exp-arm \
133                 cond_ld.stderr.exp-64bit-non-arm \
134                 cond_ld.stderr.exp-32bit-non-arm \
135         cond_st.vgtest cond_st.stdout.exp cond_st.stderr.exp-arm \
136                 cond_st.stderr.exp-64bit-non-arm \
137                 cond_st.stderr.exp-32bit-non-arm \
138         leak_cpp_interior.stderr.exp leak_cpp_interior.stderr.exp-64bit leak_cpp_interior.vgtest libstdc++.supp \
139         custom_alloc.stderr.exp custom_alloc.vgtest \
140                 custom_alloc.stderr.exp-s390x-mvc \
141         custom-overlap.stderr.exp custom-overlap.vgtest \
142         cxx17_aligned_new.stderr.exp cxx17_aligned_new.vgtest \
143                 cxx17_aligned_new.stderr.exp_32 \
144                 cxx17_aligned_new.stderr.exp-solaris \
145                 cxx17_aligned_new.stdout.exp \
146         sized_aligned_new_delete_args.stderr.exp \
147                 sized_aligned_new_delete_args.vgtest \
148         sized_aligned_new_delete_misaligned.stderr.exp \
149                 sized_aligned_new_delete_misaligned.vgtest \
150         deep-backtrace.vgtest deep-backtrace.stderr.exp \
151         demangle.stderr.exp demangle.vgtest \
152         big_debuginfo_symbol.stderr.exp big_debuginfo_symbol.vgtest \
153         describe-block.stderr.exp describe-block.vgtest \
154         descr_belowsp.vgtest descr_belowsp.stderr.exp \
155         doublefree.stderr.exp doublefree.vgtest \
156         dw4.vgtest dw4.stderr.exp dw4.stderr.exp-solaris dw4.stdout.exp \
157         err_disable1.vgtest err_disable1.stderr.exp \
158         err_disable2.vgtest err_disable2.stderr.exp \
159         err_disable3.vgtest err_disable3.stderr.exp \
160         err_disable4.vgtest err_disable4.stderr.exp \
161         err_disable_arange1.vgtest err_disable_arange1.stderr.exp \
162         erringfds.stderr.exp erringfds.stdout.exp erringfds.vgtest \
163         error_counts.stderr.exp error_counts.vgtest \
164         errs1.stderr.exp errs1.vgtest \
165         exitprog.stderr.exp exitprog.vgtest \
166         execve1.stderr.exp execve1.vgtest execve1.stderr.exp-kfail \
167         execve2.stderr.exp execve2.vgtest execve2.stderr.exp-kfail \
168         file_locking.stderr.exp file_locking.vgtest \
169         fprw.stderr.exp fprw.stderr.exp-freebsd fprw.stderr.exp-mips32-be \
170                 fprw.stderr.exp-mips32-le fprw.vgtest \
171                 fprw.stderr.exp-freebsd-x86 \
172         fwrite.stderr.exp fwrite.vgtest fwrite.stderr.exp-kfail \
173         gone_abrt_xml.vgtest gone_abrt_xml.stderr.exp gone_abrt_xml.stderr.exp-solaris \
174                 gone_abrt_xml.stderr.exp-freebsd \
175         holey_buffer_too_small.vgtest holey_buffer_too_small.stdout.exp \
176         holey_buffer_too_small.stderr.exp \
177         inits.stderr.exp inits.vgtest \
178         inline.stderr.exp inline.stdout.exp inline.vgtest \
179         inlinfo.stderr.exp inlinfo.stdout.exp inlinfo.vgtest \
180         inlinfosupp.stderr.exp inlinfosupp.stdout.exp inlinfosupp.supp inlinfosupp.vgtest \
181         inlinfosuppobj.stderr.exp inlinfosuppobj.stdout.exp inlinfosuppobj.supp inlinfosuppobj.vgtest \
182         inltemplate.stderr.exp inltemplate.stdout.exp inltemplate.vgtest \
183                 inltemplate.stderr.exp-old-gcc \
184         leak-0.vgtest leak-0.stderr.exp \
185         leak-cases-full.vgtest leak-cases-full.stderr.exp \
186         leak-cases-possible.vgtest leak-cases-possible.stderr.exp \
187         leak-cases-summary.vgtest leak-cases-summary.stderr.exp \
188         leak-cycle.vgtest leak-cycle.stderr.exp \
189         leak-delta.vgtest leak-delta.stderr.exp \
190         leak-pool-0.vgtest leak-pool-0.stderr.exp \
191         leak-pool-1.vgtest leak-pool-1.stderr.exp \
192         leak-pool-2.vgtest leak-pool-2.stderr.exp \
193         leak-pool-3.vgtest leak-pool-3.stderr.exp \
194         leak-pool-4.vgtest leak-pool-4.stderr.exp \
195         leak-pool-5.vgtest leak-pool-5.stderr.exp \
196         leak-autofreepool-0.vgtest leak-autofreepool-0.stderr.exp \
197         leak-autofreepool-1.vgtest leak-autofreepool-1.stderr.exp \
198         leak-autofreepool-2.vgtest leak-autofreepool-2.stderr.exp \
199         leak-autofreepool-4.vgtest leak-autofreepool-4.stderr.exp \
200         leak-autofreepool-5.vgtest leak-autofreepool-5.stderr.exp \
201         leak-autofreepool-6.vgtest leak-autofreepool-6.stderr.exp \
202         leak-autofreepool-5.stderr.exp-freebsd \
203         leak-tree.vgtest leak-tree.stderr.exp \
204         leak-segv-jmp.vgtest leak-segv-jmp.stderr.exp \
205         lks.vgtest lks.stdout.exp lks.supp lks.stderr.exp \
206         long_namespace_xml.vgtest long_namespace_xml.stdout.exp \
207         long_namespace_xml.stderr.exp \
208         long-supps.vgtest long-supps.stderr.exp long-supps.supp \
209         mallinfo.stderr.exp mallinfo.vgtest \
210         malloc_free_fill.vgtest \
211         malloc_free_fill.stderr.exp \
212         malloc_usable.stderr.exp malloc_usable.vgtest \
213         malloc1.stderr.exp malloc1.vgtest \
214         malloc1_ks_none.stderr.exp malloc1_ks_none.vgtest \
215         malloc1_ks_alloc.stderr.exp malloc1_ks_alloc.vgtest \
216         malloc1_ks_free.stderr.exp malloc1_ks_free.vgtest \
217         malloc1_ks_alloc_and_free.stderr.exp malloc1_ks_alloc_and_free.vgtest \
218         malloc2.stderr.exp malloc2.vgtest \
219         malloc3.stderr.exp malloc3.stdout.exp malloc3.vgtest \
220         manuel1.stderr.exp manuel1.stdout.exp manuel1.vgtest \
221                 manuel1.stderr.exp-freebsd-clang \
222         manuel2.stderr.exp manuel2.stderr.exp64 manuel2.stdout.exp \
223                 manuel2.vgtest \
224         manuel3.stderr.exp manuel3.vgtest \
225         match-overrun.stderr.exp match-overrun.vgtest match-overrun.supp \
226         memalign_test.stderr.exp memalign_test.vgtest \
227         memalign_args.vgtest memalign_args.stderr.exp \
228                 memalign_args.stderr.exp-glibc \
229                 memalign_args.stderr.exp-darwin \
230         memcmptest.stderr.exp memcmptest.stderr.exp2 \
231         memcmptest.stdout.exp memcmptest.vgtest \
232         memmem.stderr.exp memmem.vgtest \
233         mempool.stderr.exp mempool.vgtest \
234         mempool2.stderr.exp mempool2.vgtest \
235         metadata.stderr.exp metadata.stdout.exp metadata.vgtest \
236         mismatches.stderr.exp mismatches.vgtest \
237         mmaptest.stderr.exp mmaptest.vgtest \
238         nanoleak_supp.stderr.exp nanoleak_supp.vgtest nanoleak.supp \
239         nanoleak_dynsupp.stderr.exp nanoleak_dynsupp.vgtest \
240         nanoleak2.stderr.exp nanoleak2.vgtest \
241         new_nothrow.stderr.exp new_nothrow.vgtest \
242         new_override.stderr.exp new_override.stdout.exp new_override.vgtest \
243         noisy_child.vgtest noisy_child.stderr.exp noisy_child.stdout.exp \
244         null_socket.stderr.exp null_socket.vgtest \
245         origin1-yes.vgtest origin1-yes.stdout.exp origin1-yes.stderr.exp \
246                 origin1-yes.stderr.exp-freebsd \
247         origin2-not-quite.vgtest origin2-not-quite.stdout.exp \
248         origin2-not-quite.stderr.exp \
249                 origin2-not-quite.stderr.exp-freebsd \
250         origin3-no.vgtest origin3-no.stdout.exp \
251                 origin3-no.stderr.exp-freebsd \
252         origin3-no.stderr.exp \
253         origin4-many.vgtest origin4-many.stdout.exp \
254         origin4-many.stderr.exp \
255         origin5-bz2.vgtest origin5-bz2.stdout.exp \
256         origin5-bz2.stderr.exp-glibc25-x86 \
257         origin5-bz2.stderr.exp-glibc25-amd64 \
258         origin5-bz2.stderr.exp-glibc25-amd64-b \
259         origin5-bz2.stderr.exp-glibc27-ppc64 \
260         origin5-bz2.stderr.exp-glibc212-s390x \
261         origin5-bz2.stderr.exp-glibc234-s390x \
262         origin5-bz2.stderr.exp-glibc218-mips32 \
263         origin6-fp.vgtest origin6-fp.stdout.exp \
264         origin6-fp.stderr.exp-glibc25-amd64 \
265         origin6-fp.stderr.exp-glibc27-ppc64 \
266         overlap.stderr.exp overlap.stdout.exp overlap.vgtest \
267         partiallydefinedeq.vgtest partiallydefinedeq.stderr.exp \
268         partiallydefinedeq.stderr.exp4 \
269         partiallydefinedeq.stderr.exp3 \
270         partiallydefinedeq.stderr.exp2 \
271         partiallydefinedeq.stdout.exp \
272         partial_load_ok.vgtest partial_load_ok.stderr.exp \
273                 partial_load_ok.stderr.exp64 \
274                 partial_load_ok.stderr.exp-ppc64 \
275         partial_load_dflt.vgtest partial_load_dflt.stderr.exp \
276                 partial_load_dflt.stderr.exp64 \
277                 partial_load_dflt.stderr.exp-ppc64 \
278         partial_load_dflt.stderr.expr-s390x-mvc \
279         pdb-realloc.stderr.exp pdb-realloc.vgtest \
280         pdb-realloc2.stderr.exp pdb-realloc2.stdout.exp pdb-realloc2.vgtest \
281         pipe.stderr.exp pipe.vgtest \
282         pointer-trace.vgtest \
283         pointer-trace.stderr.exp \
284         posix_memalign.stderr.exp posix_memalign.vgtest \
285         post-syscall.stderr.exp post-syscall.vgtest \
286         reach_thread_register.stderr.exp reach_thread_register.vgtest \
287                 reach_thread_register.stderr.exp-mips32 \
288                 reach_thread_register.stderr.exp-mips64 \
289         realloc_size_zero.stderr.exp realloc_size_zero.stdout.exp-glibc \
290                 realloc_size_zero.stdout.exp-other \
291                 realloc_size_zero.vgtest \
292         realloc_size_zero_yes.stderr.exp realloc_size_zero_yes.stdout.exp \
293                 realloc_size_zero_yes.vgtest \
294         realloc_size_zero_no.stderr.exp realloc_size_zero_no.stdout.exp \
295                 realloc_size_zero_no.vgtest \
296         realloc_size_zero_off.stderr.exp realloc_size_zero_off.stdout.exp \
297                 realloc_size_zero_off.vgtest \
298         realloc_size_zero_mismatch.stderr.exp \
299                 realloc_size_zero_mismatch.stdout.exp \
300                 realloc_size_zero_mismatch.vgtest \
301         realloc_size_zero_supp.stderr.exp realloc_size_zero_supp.stdout.exp \
302                 realloc_size_zero_supp.vgtest \
303                 realloc_size_zero.supp \
304         realloc1.stderr.exp realloc1.vgtest \
305         realloc2.stderr.exp realloc2.vgtest \
306         realloc3.stderr.exp realloc3.vgtest \
307         recursive-merge.stderr.exp recursive-merge.vgtest \
308         resvn_stack.stderr.exp resvn_stack.vgtest \
309         demangle-rust.vgtest demangle-rust.stderr.exp \
310         sbfragment.stdout.exp sbfragment.stderr.exp sbfragment.vgtest \
311         sem.stderr.exp sem.vgtest \
312         sendmsg.stderr.exp sendmsg.stderr.exp-solaris sendmsg.vgtest \
313             sendmsg.stderr.exp-freebsd \
314             sendmsg.stderr.exp-freebsd-x86 \
315         sh-mem.stderr.exp sh-mem.vgtest \
316         sh-mem-random.stderr.exp sh-mem-random.stdout.exp64 \
317         sh-mem-random.stdout.exp sh-mem-random.vgtest \
318         sigaltstack.stderr.exp sigaltstack.vgtest \
319         sigkill.stderr.exp sigkill.stderr.exp-darwin sigkill.stderr.exp-freebsd sigkill.stderr.exp-mips32 \
320             sigkill.stderr.exp-solaris \
321             sigkill.stderr.exp-glibc-2.28 sigkill.vgtest \
322         signal2.stderr.exp signal2.stdout.exp signal2.vgtest \
323         sigprocmask.stderr.exp sigprocmask.stderr.exp2 sigprocmask.vgtest \
324         sized_delete.stderr.exp sized_delete.stderr.exp-x86 sized_delete.vgtest \
325         static_malloc.stderr.exp static_malloc.vgtest \
326         stpncpy.vgtest stpncpy.stderr.exp stpncpy.stdout.exp \
327         strchr.stderr.exp strchr.stderr.exp2 strchr.stderr.exp3 strchr.vgtest \
328         str_tester.stderr.exp str_tester.vgtest \
329         supp-dir.vgtest supp-dir.stderr.exp \
330         supp_unknown.stderr.exp supp_unknown.vgtest supp_unknown.supp \
331         supp_unknown.stderr.exp-kfail \
332         supp1.stderr.exp supp1.vgtest \
333         supp2.stderr.exp supp2.vgtest \
334         supp.supp \
335         suppfree.stderr.exp suppfree.supp suppfree.vgtest \
336         suppfreecollision.stderr.exp suppfreecollision.supp suppfreecollision.vgtest \
337         supponlyobj.stderr.exp supponlyobj.supp supponlyobj.vgtest \
338         suppsrc_lineno.stderr.exp suppsrc_lineno.stdout.exp suppsrc_lineno.vgtest \
339         suppsrc_lineno.supp \
340         suppsrc_sanlineno.stderr.exp suppsrc_sanlineno.stdout.exp suppsrc_sanlineno.vgtest \
341         suppsrc_sanlineno.supp \
342         suppvarinfo5.stderr.exp suppvarinfo5.supp suppvarinfo5.vgtest \
343         test-plo-no.vgtest test-plo-no.stdout.exp \
344             test-plo-no.stderr.exp-le64 test-plo-no.stderr.exp-le32 \
345             test-plo-no.stderr.exp-le32-freebsd test-plo-no.stderr.exp-le64-freebsd \
346             test-plo-no.stderr.exp-le32-freebsd-clang \
347         test-plo-yes.vgtest test-plo-yes.stdout.exp \
348             test-plo-yes.stderr.exp-le64 test-plo-yes.stderr.exp-le32 \
349             test-plo-no.stderr.exp-s390x-mvc \
350         thread_alloca.stderr.exp thread_alloca.vgtest \
351         threadname.vgtest threadname.stderr.exp \
352         threadname_xml.vgtest threadname_xml.stderr.exp \
353         trivialleak.stderr.exp trivialleak.vgtest trivialleak.stderr.exp2 \
354         undef_malloc_args.stderr.exp undef_malloc_args.vgtest \
355         unit_libcbase.stderr.exp unit_libcbase.vgtest \
356         unit_oset.stderr.exp unit_oset.stdout.exp unit_oset.vgtest \
357         varinfo1.vgtest varinfo1.stdout.exp varinfo1.stderr.exp \
358                 varinfo1.stderr.exp-ppc64 \
359                 varinfo1.stderr.exp-freebsd \
360         varinfo2.vgtest varinfo2.stdout.exp varinfo2.stderr.exp \
361                 varinfo2.stderr.exp-ppc64 \
362         varinfo3.vgtest varinfo3.stdout.exp varinfo3.stderr.exp \
363                 varinfo3.stderr.exp-ppc64 \
364                 varinfo3.stderr.exp-freebsd \
365         varinfo4.vgtest varinfo4.stdout.exp varinfo4.stderr.exp \
366                 varinfo4.stderr.exp-ppc64 \
367                 varinfo4.stderr.exp-freebsd \
368         varinfo5.vgtest varinfo5.stdout.exp varinfo5.stderr.exp \
369                 varinfo5.stderr.exp-ppc64 \
370                 varinfo5.stderr.exp-freebsd \
371         varinfo6.vgtest varinfo6.stdout.exp varinfo6.stderr.exp \
372                 varinfo6.stderr.exp-ppc64 \
373         varinforestrict.vgtest varinforestrict.stderr.exp \
374         vcpu_bz2.stdout.exp vcpu_bz2.stderr.exp vcpu_bz2.vgtest \
375         vcpu_fbench.stdout.exp vcpu_fbench.stderr.exp vcpu_fbench.vgtest \
376         vcpu_fnfns.stdout.exp vcpu_fnfns.stdout.exp-glibc28-amd64 \
377         vcpu_fnfns.stdout.exp-darwin vcpu_fnfns.stdout.exp-solaris \
378         vcpu_fnfns.stderr.exp vcpu_fnfns.vgtest \
379         wcs.vgtest wcs.stderr.exp wcs.stdout.exp \
380         wmemcmp.vgtest wmemcmp.stderr.exp \
381         wrap1.vgtest wrap1.stdout.exp wrap1.stderr.exp \
382         wrap2.vgtest wrap2.stdout.exp wrap2.stderr.exp \
383         wrap3.vgtest wrap3.stdout.exp wrap3.stderr.exp \
384         wrap4.vgtest wrap4.stdout.exp wrap4.stderr.exp \
385         wrap5.vgtest wrap5.stdout.exp wrap5.stderr.exp \
386         wrap6.vgtest wrap6.stdout.exp wrap6.stderr.exp \
387         wrap7.vgtest wrap7.stdout.exp wrap7.stderr.exp \
388         wrap8.vgtest wrap8.stdout.exp wrap8.stderr.exp \
389         wrap8.stdout.exp-ppc64 wrap8.stderr.exp-ppc64 \
390         wrapmalloc.vgtest wrapmalloc.stdout.exp wrapmalloc.stderr.exp \
391         wrapmallocstatic.vgtest wrapmallocstatic.stdout.exp \
392         wrapmallocstatic.stderr.exp \
393         writev1.stderr.exp writev1.stderr.exp-solaris writev1.vgtest \
394         xml1.stderr.exp xml1.stdout.exp xml1.vgtest xml1.stderr.exp-s390x-mvc \
395         leak_cpp_interior.stderr.exp-freebsd leak_cpp_interior.stderr.exp-freebsd-32bit
397 check_PROGRAMS = \
398         accounting \
399         addressable \
400         atomic_incs \
401         badaddrvalue badfree badjump badjump2 \
402         badloop \
403         badpoll \
404         badrw \
405         big_blocks_freed_list \
406         brk2 \
407         buflen_check \
408         bug155125 \
409         bug287260 \
410         bug340392 \
411         bug464969_d_demangle \
412         calloc-overflow \
413         client-msg \
414         clientperm \
415         clireq_nofill \
416         clo_redzone \
417         cond_ld_st \
418         descr_belowsp \
419         leak_cpp_interior \
420         custom_alloc \
421         custom-overlap \
422         demangle \
423         demangle-rust \
424         big_debuginfo_symbol \
425         deep-backtrace \
426         describe-block \
427         doublefree error_counts errs1 exitprog execve1 execve2 erringfds \
428         err_disable1 err_disable2 err_disable3 err_disable4 \
429         err_disable_arange1 \
430         file_locking \
431         fprw fwrite inits inline inlinfo inltemplate \
432         holey_buffer_too_small \
433         leak-0 \
434         leak-cases \
435         leak-cycle \
436         leak-delta \
437         leak-pool \
438         leak-autofreepool \
439         leak-tree \
440         leak-segv-jmp \
441         long-supps \
442         mallinfo \
443         malloc_free_fill \
444         malloc_usable malloc1 malloc2 malloc3 manuel1 manuel2 manuel3 \
445         match-overrun \
446         memalign_test  memcmptest mempool mempool2 mmaptest \
447         memalign_args \
448         memmem \
449         mismatches new_override metadata \
450         nanoleak_supp nanoleak2 new_nothrow \
451         noisy_child \
452         null_socket \
453         origin1-yes origin2-not-quite origin3-no \
454         origin4-many origin5-bz2 origin6-fp \
455         overlap \
456         partiallydefinedeq \
457         partial_load pdb-realloc pdb-realloc2 \
458         pipe pointer-trace \
459         posix_memalign \
460         post-syscall \
461         realloc_size_zero realloc_size_zero_mismatch \
462         realloc1 realloc2 realloc3 \
463         recursive-merge \
464         resvn_stack \
465         sbfragment \
466         sendmsg \
467         sh-mem sh-mem-random \
468         sigaltstack signal2 sigprocmask static_malloc sigkill \
469         strchr \
470         str_tester \
471         supp_unknown supp1 supp2 suppfree \
472         test-plo \
473         trivialleak \
474         thread_alloca \
475         undef_malloc_args \
476         unit_libcbase unit_oset \
477         varinfo1 varinfo2 varinfo3 varinfo4 \
478         varinfo5 varinfo5so.so varinfo6 \
479         varinforestrict \
480         vcpu_fbench vcpu_fnfns \
481         wcs \
482         xml1 \
483         wmemcmp \
484         wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap7so.so wrap8 \
485         wrapmalloc wrapmallocso.so wrapmallocstatic \
486         writev1
488 if !SOLARIS_SUN_STUDIO_AS
489 # Sun Studio assembler fails on "IDENT too long"
490 check_PROGRAMS += long_namespace_xml
491 endif
493 if DWARF4
494 check_PROGRAMS += dw4
495 endif
497 bug464969_d_demangle_SOURCES = bug464969_d_demangle.cpp
498 bug464969_d_demangle_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_UNINITIALIZED@
500 if GZ_ZLIB
501 check_PROGRAMS += cdebug_zlib
502 cdebug_zlib_SOURCES = cdebug.c
503 cdebug_zlib_CFLAGS = $(AM_CFLAGS) -g -gz=zlib @FLAG_W_NO_UNINITIALIZED@
504 endif
506 if GZ_ZLIB_GNU
507 check_PROGRAMS += cdebug_zlib_gnu
508 cdebug_zlib_gnu_SOURCES = cdebug.c
509 cdebug_zlib_gnu_CFLAGS = $(AM_CFLAGS) -g -gz=zlib-gnu @FLAG_W_NO_UNINITIALIZED@
510 endif
512 if HAVE_ALIGNED_CXX_ALLOC
513 check_PROGRAMS += cxx17_aligned_new sized_aligned_new_delete_args \
514         sized_aligned_new_delete_misaligned
515 endif
517 if HAVE_PTHREAD_BARRIER
518 check_PROGRAMS += reach_thread_register
519 endif
521 if HAVE_FSIZED_DEALLOCATION
522 check_PROGRAMS += sized_delete
523 endif
525 if HAVE_GNU_STPNCPY
526 check_PROGRAMS += stpncpy
527 endif
529 if HAVE_PTHREAD_SETNAME_NP
530 check_PROGRAMS += threadname 
531 endif
533 AM_CFLAGS   += $(AM_FLAG_M3264_PRI)
534 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
536 if VGCONF_PLATFORMS_INCLUDE_ARM_LINUX
537 #AM_CFLAGS   += -mfloat-abi=softfp
538 #AM_CXXFLAGS += -mfloat-abi=softfp
539 endif
541 if VGCONF_OS_IS_DARWIN
542 atomic_incs_CFLAGS = $(AM_CFLAGS) -mdynamic-no-pic
543 else
544 atomic_incs_CFLAGS = $(AM_CFLAGS)
545 endif
547 badpoll_CFLAGS          = $(AM_CFLAGS) @FLAG_W_NO_STRINGOP_OVERFLOW@
548 badrw_CFLAGS            = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
549 big_blocks_freed_list_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
551 if VGCONF_OS_IS_SOLARIS
552 buflen_check_LDADD      = -lsocket -lnsl
553 endif
555 leak_cpp_interior_SOURCES       = leak_cpp_interior.cpp
557 # Suppress various gcc warnings which are correct, but for things
558 # we are actually testing for at runtime.
559 accounting_CFLAGS       = $(AM_CFLAGS) @FLAG_W_NO_ALLOC_SIZE_LARGER_THAN@
560 badfree_CFLAGS          = $(AM_CFLAGS) @FLAG_W_NO_FREE_NONHEAP_OBJECT@
561 bug155125_CFLAGS        = $(AM_CFLAGS) -Wno-unused-result @FLAG_W_NO_ALLOC_SIZE_LARGER_THAN@
562 mallinfo_CFLAGS         = $(AM_CFLAGS) -Wno-deprecated-declarations
563 malloc3_CFLAGS          = $(AM_CFLAGS) @FLAG_W_NO_ALLOC_SIZE_LARGER_THAN@
564 sbfragment_CFLAGS       = $(AM_CFLAGS) -Wno-deprecated-declarations
565 strchr_CFLAGS           = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
567 big_debuginfo_symbol_SOURCES = big_debuginfo_symbol.cpp
568 big_debuginfo_symbol_CXXFLAGS = $(AM_CXXFLAGS) -std=c++0x
570 bug340392_CFLAGS        = $(AM_CFLAGS) -O3 @FLAG_W_NO_MAYBE_UNINITIALIZED@
572 if HAVE_ALIGNED_CXX_ALLOC
573 cxx17_aligned_new_SOURCES  = cxx17_aligned_new.cpp
574 cxx17_aligned_new_CXXFLAGS = -std=c++17 @FLAG_W_NO_MISMATCHED_NEW_DELETE@
575 sized_aligned_new_delete_args_SOURCES = sized_aligned_new_delete_args.cpp
576 sized_aligned_new_delete_args_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17
577 sized_aligned_new_delete_misaligned_SOURCES = sized_aligned_new_delete_misaligned.cpp
578 sized_aligned_new_delete_misaligned_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17
579 endif
581 demangle_SOURCES = demangle.cpp
582 demangle_rust_SOURCES = demangle-rust.c
583 demangle_rust_CFLAGS    = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
584 dw4_CFLAGS              = $(AM_CFLAGS) -gdwarf-4 -fdebug-types-section
586 descr_belowsp_LDADD     = -lpthread
587 err_disable3_LDADD      = -lpthread
588 err_disable4_LDADD      = -lpthread
589 err_disable4_CFLAGS     = $(AM_CFLAGS)
590 if VGCONF_OS_IS_SOLARIS
591 err_disable4_CFLAGS     += -D_XOPEN_SOURCE=600
592 endif
594 error_counts_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_UNUSED_BUT_SET_VARIABLE@
596 execve1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
598 execve2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
600 fprw_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_FREE_NONHEAP_OBJECT@ @FLAG_W_NO_USE_AFTER_FREE@
602 inits_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
604 inlinfo_CFLAGS = $(AM_CFLAGS) -w
606 inltemplate_SOURCES = inltemplate.cpp
607 inltemplate_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_UNINITIALIZED@
609 long_namespace_xml_SOURCES = long_namespace_xml.cpp
611 malloc_free_fill_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
612 malloc1_CFLAGS          = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
613 manuel1_CFLAGS          = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
614 manuel3_CFLAGS          = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
616 memalign2_CFLAGS        = $(AM_CFLAGS) @FLAG_W_NO_NON_POWER_OF_TWO_ALIGNMENT@
617 if VGCONF_OS_IS_SOLARIS
618 memalign2_CFLAGS        += -D__EXTENSIONS__
619 endif
621 memcmptest_CFLAGS       = $(AM_CFLAGS) -fno-builtin-memcmp
623 mismatches_SOURCES      = mismatches.cpp
624 mismatches_CXXFLAGS     = $(AM_CXXFLAGS) @FLAG_W_NO_MISMATCHED_NEW_DELETE@
626 new_nothrow_SOURCES     = new_nothrow.cpp
627 new_override_SOURCES    = new_override.cpp
629 noisy_child_CFLAGS      = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
631 if VGCONF_OS_IS_SOLARIS
632 null_socket_LDADD       = -lsocket -lnsl
633 endif
635 origin1_yes_CFLAGS      = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
637 origin2_not_quite_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
639 origin3_no_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
641 # This requires optimisation in order to get just one resulting error.
642 origin4_many_CFLAGS     = $(AM_CFLAGS) -O @FLAG_W_NO_USE_AFTER_FREE@ @FLAG_W_NO_UNINITIALIZED@
644 # Apply -O so as to run in reasonable time.
645 origin5_bz2_CFLAGS      = $(AM_CFLAGS) -O -Wno-inline
646 origin6_fp_CFLAGS       = $(AM_CFLAGS) -O
648 # Don't allow GCC to inline memcpy() and strcpy(),
649 # because then we can't intercept it
650 overlap_CFLAGS          = $(AM_CFLAGS) -fno-builtin-memcpy -fno-builtin-strcpy \
651                           @FLAG_W_NO_FORTIFY_SOURCE@ @FLAG_W_NO_STRINGOP_OVERFLOW@ @FLAG_W_NO_BUILTIN_MEMCPY_CHK_SIZE@
653 partial_load_CFLAGS     = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
654 reach_thread_register_CFLAGS    = $(AM_CFLAGS) -O2
655 reach_thread_register_LDADD     = -lpthread
657 realloc_size_zero_CFLAGS        = $(AM_CFLAGS) @FLAG_W_NO_INCOMPATIBLE_POINTER_TYPES_DISCARDS_QUALIFIERS@
658 realloc_size_zero_mismatch_SOURCES = realloc_size_zero_mismatch.cpp
660 resvn_stack_CFLAGS      = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
662 sendmsg_CFLAGS          = $(AM_CFLAGS)
663 if VGCONF_OS_IS_SOLARIS
664 sendmsg_CFLAGS          += -D_XOPEN_SOURCE=600
665 sendmsg_LDADD           = -lsocket -lnsl
666 endif
668 if HAVE_FSIZED_DEALLOCATION
669 sized_delete_SOURCES   = sized_delete.cpp
670 sized_delete_CXXFLAGS  = $(AM_CXXFLAGS) @FLAG_FSIZED_DEALLOCATION@
671 endif
673 str_tester_CFLAGS       = $(AM_CFLAGS) -Wno-shadow @FLAG_W_NO_STRINGOP_OVERFLOW@ \
674                           @FLAG_W_NO_STRINGOP_TRUNCATION@ \
675                           @FLAG_W_NO_FORTIFY_SOURCE@ @FLAG_W_NO_SUSPICIOUS_BZERO@ \
676                           @FLAG_W_NO_MEMSET_TRANSPOSED_ARGS@ @FLAG_W_NO_STRINGOP_OVERREAD@ \
677                           @FLAG_W_NO_BUILTIN_MEMCPY_CHK_SIZE@
679 supp_CFLAGS             = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
681 supp_unknown_SOURCES    = badjump.c
682 supp_unknown_CFLAGS     = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
684 supp1_SOURCES           = supp.c
685 supp1_CFLAGS            = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
687 supp2_SOURCES           = supp.c
688 supp2_CFLAGS            = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
690 suppfree_CFLAGS         = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
691 test_plo_CFLAGS         = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
693 thread_alloca_CFLAGS    = $(AM_CFLAGS) @FLAG_W_NO_FORMAT_OVERFLOW@
694 thread_alloca_LDADD     = -lpthread
695 threadname_LDADD        = -lpthread
697 vcpu_bz2_CFLAGS         = $(AM_CFLAGS) -O2
698 vcpu_fbench_CFLAGS      = $(AM_CFLAGS) -O2
699 vcpu_fnfns_CFLAGS       = $(AM_CFLAGS) -O2
700 vcpu_fnfns_LDADD        = -lm
701 wrap6_CFLAGS            = $(AM_CFLAGS) -O2
703 # To make it a bit more realistic, have some optimisation enabled
704 # for the varinfo tests.  We still expect sane results.
705 varinfo1_CFLAGS         = $(AM_CFLAGS) -O @FLAG_W_NO_MAYBE_UNINITIALIZED@
706 varinfo2_CFLAGS         = $(AM_CFLAGS) -O -Wno-shadow @FLAG_W_NO_MAYBE_UNINITIALIZED@
707 varinfo3_CFLAGS         = $(AM_CFLAGS) -O @FLAG_W_NO_MAYBE_UNINITIALIZED@
708 varinfo4_CFLAGS         = $(AM_CFLAGS) -O @FLAG_W_NO_MAYBE_UNINITIALIZED@
709 varinfo5_CFLAGS         = $(AM_CFLAGS) -O
710 varinfo6_CFLAGS         = $(AM_CFLAGS) -O @FLAG_W_NO_MAYBE_UNINITIALIZED@
712 # Build shared object for varinfo5
713 varinfo5_SOURCES        = varinfo5.c
714 varinfo5_DEPENDENCIES   = varinfo5so.so
715 if VGCONF_OS_IS_DARWIN
716  varinfo5_LDADD         = `pwd`/varinfo5so.so
717  varinfo5_LDFLAGS       = $(AM_FLAG_M3264_PRI)
718 else
719  varinfo5_LDADD         = varinfo5so.so
720  varinfo5_LDFLAGS       = $(AM_FLAG_M3264_PRI) \
721                                 -Wl,-rpath,$(top_builddir)/memcheck/tests
722 endif
724 varinfo5so_so_SOURCES   = varinfo5so.c
725 varinfo5so_so_CFLAGS    = $(AM_CFLAGS) -fpic -O -Wno-shadow @FLAG_W_NO_MAYBE_UNINITIALIZED@
726 if VGCONF_OS_IS_DARWIN
727  varinfo5so_so_LDFLAGS  = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
728                                 -dynamiclib -all_load
729 else
730  varinfo5so_so_LDFLAGS  = -fpic $(AM_FLAG_M3264_PRI) -shared \
731                                 -Wl,-soname -Wl,varinfo5so.so
732 endif
733 varinforestrict_CFLAGS  = $(AM_CFLAGS) -O0 -g @FLAG_W_NO_MAYBE_UNINITIALIZED@
735 # Build shared object for wrap7
736 wrap7_SOURCES           = wrap7.c
737 wrap7_DEPENDENCIES      = wrap7so.so
738 if VGCONF_OS_IS_DARWIN
739  wrap7_LDADD            = `pwd`/wrap7so.so
740  wrap7_LDFLAGS          = $(AM_FLAG_M3264_PRI)
741 else
742  wrap7_LDADD            = wrap7so.so
743  wrap7_LDFLAGS          = $(AM_FLAG_M3264_PRI) \
744                                 -Wl,-rpath,$(top_builddir)/memcheck/tests
745 endif
747 wrap7so_so_SOURCES      = wrap7so.c
748 wrap7so_so_CFLAGS       = $(AM_CFLAGS) -fpic
749 if VGCONF_OS_IS_DARWIN
750  wrap7so_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
751                                 -dynamiclib -all_load
752 else
753  wrap7so_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -shared \
754                                 -Wl,-soname -Wl,wrap7so.so
755 endif
757 # Build shared object for wrapmalloc
758 wrapmalloc_SOURCES           = wrapmalloc.c
759 wrapmalloc_DEPENDENCIES      = wrapmallocso.so
760 if VGCONF_OS_IS_DARWIN
761  wrapmalloc_LDADD            = `pwd`/wrapmallocso.so
762  wrapmalloc_LDFLAGS          = $(AM_FLAG_M3264_PRI)
763 else
764  wrapmalloc_LDADD            = wrapmallocso.so
765  wrapmalloc_LDFLAGS          = $(AM_FLAG_M3264_PRI) \
766                                 -Wl,-rpath,$(top_builddir)/memcheck/tests
767 endif
769 wrapmallocso_so_SOURCES      = wrapmallocso.c
770 wrapmallocso_so_CFLAGS       = $(AM_CFLAGS) -fpic
771 if VGCONF_OS_IS_DARWIN
772  wrapmallocso_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
773                                 -dynamiclib -all_load
774 else
775  wrapmallocso_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -shared \
776                                 -Wl,-soname -Wl,wrapmallocso.so
777 endif
779 writev1_CFLAGS          = $(AM_CFLAGS) @FLAG_W_NO_STRINGOP_OVERFLOW@ @FLAG_W_NO_STRINGOP_OVERREAD@
780 xml1_CFLAGS             = $(AM_CFLAGS) -D_GNU_SOURCE @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_USE_AFTER_FREE@