Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git] / memcheck / tests / linux / Makefile.am
blob3d06d483cdafe9239b98cf9038661f04b26ca74b
2 include $(top_srcdir)/Makefile.tool-tests.am
4 dist_noinst_SCRIPTS = filter_stderr
6 EXTRA_DIST = \
7         aligned_alloc.vgtest aligned_alloc.stderr.exp \
8                 aligned_alloc.stderr.exp-musl \
9                 aligned_alloc.stderr.exp-glibc238 \
10         brk.stderr.exp brk.vgtest \
11         bug480706.stderr.exp bug480706.vgtest \
12         capget.vgtest capget.stderr.exp capget.stderr.exp2 capget.stderr.exp3 \
13         capget.stderr.exp4 \
14         debuginfod-check.stderr.exp debuginfod-check.vgtest.in \
15         debuginfod-check.pl \
16         dlclose_leak-no-keep.stderr.exp dlclose_leak-no-keep.stdout.exp \
17             dlclose_leak-no-keep.vgtest \
18         dlclose_leak.stderr.exp dlclose_leak.stdout.exp \
19             dlclose_leak.vgtest \
20         ioctl-tiocsig.vgtest ioctl-tiocsig.stderr.exp \
21         lsframe1.vgtest lsframe1.stdout.exp lsframe1.stderr.exp \
22         lsframe2.vgtest lsframe2.stdout.exp lsframe2.stderr.exp \
23         memfd_create.vgtest memfd_create.stderr.exp \
24                 memfd_create.stderr.exp-fcntl64 \
25         rfcomm.vgtest rfcomm.stderr.exp \
26         sigqueue.vgtest sigqueue.stderr.exp \
27         stack_changes.stderr.exp stack_changes.stdout.exp \
28             stack_changes.stdout.exp2 stack_changes.vgtest \
29         stack_switch.stderr.exp stack_switch.vgtest \
30         syscalls-2007.vgtest syscalls-2007.stderr.exp \
31         syslog-syscall.vgtest syslog-syscall.stderr.exp \
32         sys-copy_file_range.vgtest sys-copy_file_range.stderr.exp \
33         sys-openat.vgtest sys-openat.stderr.exp sys-openat.stdout.exp \
34         sys-statx.vgtest sys-statx.stderr.exp \
35         timerfd-syscall.vgtest timerfd-syscall.stderr.exp \
36         with-space.stderr.exp with-space.stdout.exp with-space.vgtest \
37         proc-auxv.vgtest proc-auxv.stderr.exp getregset.vgtest \
38         getregset.stderr.exp getregset.stdout.exp \
39         strlcat_strlcpy.vgtest strlcat_strlcpy.stderr.exp \
40         sys-preadv_pwritev.vgtest sys-preadv_pwritev.stderr.exp \
41         sys-preadv2_pwritev2.vgtest sys-preadv2_pwritev2.stderr.exp \
42         sys-execveat.vgtest sys-execveat.stderr.exp sys-execveat.stdout.exp \
43         enomem.vgtest enomem.stderr.exp enomem.stdout.exp \
44         memalign.vgtest memalign.stderr.exp \
45                 memalign.stderr.exp-musl
47 check_PROGRAMS = \
48         aligned_alloc \
49         brk \
50         capget \
51         check_preadv2_pwritev2 \
52         debuginfod-check \
53         dlclose_leak dlclose_leak_so.so \
54         ioctl-tiocsig \
55         getregset \
56         lsframe1 \
57         lsframe2 \
58         rfcomm \
59         sigqueue \
60         stack_switch \
61         syscalls-2007 \
62         syslog-syscall \
63         sys-statx \
64         timerfd-syscall \
65         proc-auxv \
66         sys-execveat \
67         check_execveat \
68         enomem \
69         memalign
71 if HAVE_OPENSSL
72 check_PROGRAMS += bug480706
73 endif
75 if HAVE_AT_FDCWD
76 check_PROGRAMS += sys-openat
77 endif
79 if HAVE_MEMFD_CREATE
80 check_PROGRAMS += memfd_create
81 endif
83 if HAVE_COPY_FILE_RANGE
84         check_PROGRAMS += sys-copy_file_range
85 endif
87 if HAVE_PREADV_PWRITEV
88         check_PROGRAMS += sys-preadv_pwritev
89 endif
91 if HAVE_PREADV2_PWRITEV2
92         check_PROGRAMS += sys-preadv2_pwritev2
93 endif
95 if HAVE_SETCONTEXT
96         check_PROGRAMS += stack_changes
97 endif
99 if HAVE_STRLCAT
100         check_PROGRAMS += strlcat_strlcpy
101 endif
103 AM_CFLAGS   += $(AM_FLAG_M3264_PRI)
104 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
106 stack_switch_LDADD    = -lpthread
107 timerfd_syscall_LDADD = -lrt
109 if HAVE_OPENSSL
110 bug480706_LDADD             = -lcrypto
111 endif
113 # Build shared object for dlclose_leak
114 dlclose_leak_so_so_SOURCES    = dlclose_leak_so.c
115 dlclose_leak_so_so_CFLAGS     = $(AM_CFLAGS) -fpic -g -O0
116 dlclose_leak_so_so_LDFLAGS    = -fpic $(AM_FLAG_M3264_PRI) -shared -Wl,-soname \
117                               -Wl,dlclose_leak_so.so
119 dlclose_leak_SOURCES          = dlclose_leak.c
120 dlclose_leak_DEPENDENCIES     = dlclose_leak_so.so
121 # Do NOT uncomment the below line: we must not link with the .so,
122 # in order to properly test a 'fully dynamic' use of dlopen/dlclose
123 # dlclose_leak_LDADD            = dlclose_leak_so.so
124 dlclose_leak_LDADD            = -ldl
125 dlclose_leak_LDFLAGS          = $(AM_FLAG_M3264_PRI) \
126                                 -Wl,-rpath,$(top_builddir)/memcheck/tests/linux
128 enomem_CFLAGS                 = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
129 if HAVE_STRLCAT
130 strlcat_strlcpy_CFLAGS        = $(AM_CFLAGS) @FLAG_W_NO_STRINGOP_OVERFLOW@
131 endif
132 sys_preadv_pwritev_CFLAGS     = $(AM_CFLAGS) @FLAG_W_NO_STRINGOP_OVERFLOW@ @FLAG_W_NO_STRINGOP_OVERREAD@ \
133                                 @FLAG_W_NO_NONNULL@
134 sys_preadv2_pwritev2_CFLAGS   = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@ @FLAG_W_NO_STRINGOP_OVERREAD@ \
135                                 @FLAG_W_NO_STRINGOP_OVERFLOW@