2 include $(top_srcdir)/Makefile.tool-tests.am
4 dist_noinst_SCRIPTS = filter_stderr
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 \
14 debuginfod-check.stderr.exp debuginfod-check.vgtest.in \
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 \
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
51 check_preadv2_pwritev2 \
53 dlclose_leak dlclose_leak_so.so \
72 check_PROGRAMS += bug480706
76 check_PROGRAMS += sys-openat
80 check_PROGRAMS += memfd_create
83 if HAVE_COPY_FILE_RANGE
84 check_PROGRAMS += sys-copy_file_range
87 if HAVE_PREADV_PWRITEV
88 check_PROGRAMS += sys-preadv_pwritev
91 if HAVE_PREADV2_PWRITEV2
92 check_PROGRAMS += sys-preadv2_pwritev2
96 check_PROGRAMS += stack_changes
100 check_PROGRAMS += strlcat_strlcpy
103 AM_CFLAGS += $(AM_FLAG_M3264_PRI)
104 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
106 stack_switch_LDADD = -lpthread
107 timerfd_syscall_LDADD = -lrt
110 bug480706_LDADD = -lcrypto
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@
130 strlcat_strlcpy_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_STRINGOP_OVERFLOW@
132 sys_preadv_pwritev_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_STRINGOP_OVERFLOW@ @FLAG_W_NO_STRINGOP_OVERREAD@ \
134 sys_preadv2_pwritev2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@ @FLAG_W_NO_STRINGOP_OVERREAD@ \
135 @FLAG_W_NO_STRINGOP_OVERFLOW@