none/tests/fdleak_cmsg_supp.supp: Add suppressions for older glibc
[valgrind.git] / memcheck / tests / freebsd / Makefile.am
blob4b6b36c6ce00b0ea989eaa617bbac9a556b38746
2 include $(top_srcdir)/Makefile.tool-tests.am
4 dist_noinst_SCRIPTS = filter_stderr filter_pts dump_stdout filter_sigwait \
5         filter_scalar filter_realpathat filter_fstat filter_eventfd2 \
6         toucher1 toucher2 filter_getfsstat filter_context filter_frame \
7         filter_supp
9 EXTRA_DIST = \
10         access.vgtest \
11         access.stderr.exp \
12         aio.vgtest aio.stderr.exp \
13         aiov.vgtest aiov.stderr.exp \
14         aio_read.vgtest aio_read.stderr.exp aio_read.stdout.exp \
15         aio_read.in \
16         aligned_alloc.vgtest aligned_alloc.stderr.exp \
17         aligned_alloc_xml.vgtest aligned_alloc_xml.stderr.exp \
18         aligned_allocs_supp.vgtest \
19         aligned_allocs_supp.stderr.exp \
20         aligned_allocs_supp.supp \
21         bug464476.vgtest \
22         bug464476.stderr.exp \
23         bug464476.stdout.exp \
24         bug464476_abs_symlink.vgtest \
25         bug464476_abs_symlink.stderr.exp \
26         bug464476_abs_symlink.stdout.exp \
27         bug464476_rel_symlink.vgtest \
28         bug464476_rel_symlink.stderr.exp \
29         bug464476_rel_symlink.stdout.exp \
30         bug470713.vgtest bug470713.stderr.exp \
31                 bug470713.stdout.exp \
32         bug483786.vgtest bug483786.stderr.exp \
33         capsicum.vgtest \
34         capsicum.stderr.exp \
35         chflags.vgtest\
36         chflags.stderr.exp \
37                 chflags.stderr.exp-x86 \
38         chmod_chown.vgtest \
39         chmod_chown.stderr.exp \
40         clock_nanosleep_interrupt.vgtest \
41         clock_nanosleep_interrupt.stderr.exp \
42         delete_sized_mismatch.vgtest \
43         delete_sized_mismatch.stderr.exp \
44         delete_sized_mismatch_xml.vgtest \
45         delete_sized_mismatch_xml.stderr.exp \
46         errno_aligned_allocs.vgtest \
47         errno_aligned_allocs.stderr.exp \
48         eventfd1.vgtest \
49         eventfd1.stderr.exp eventfd1.stdout.exp \
50         eventfd2.vgtest \
51         eventfd2.stderr.exp \
52         extattr.vgtest \
53         extattr.stderr.exp \
54         fbsd278566.vgtest \
55         fbsd278566.stderr.exp \
56         fexecve.vgtest \
57         fexecve.stderr.exp \
58         file_locking_wait6.vgtest \
59         file_locking_wait6.stderr.exp \
60         get_set_context.vgtest \
61         get_set_context.stderr.exp \
62         get_set_login.vgtest \
63         get_set_login.stderr.exp \
64         getfh.vgtest \
65         getfh.stderr.exp \
66         getfsstat.vgtest \
67         getfsstat.stderr.exp \
68         getfsstat.supp \
69                 getfsstat.stderr.exp-x86 \
70         getrlimitusage.vgtest getrlimitusage.stderr.exp \
71         kqueue.vgtest \
72         kqueue.stderr.exp \
73         kqueue.stdout.exp \
74         kqueuex.vgtest \
75         kqueuex.stderr.exp \
76         kqueuex.stdout.exp \
77         linkat.vgtest \
78         linkat.stderr.exp \
79         memalign.vgtest memalign.stderr.exp \
80         memalign_supp.vgtest memalign_supp.stderr.exp \
81         memalign_supp.supp \
82         misc.vgtest \
83         misc.stderr.exp \
84         openpty.vgtest \
85         openpty.stderr.exp \
86         pdfork_pdkill.vgtest \
87         pdfork_pdkill.stderr.exp \
88         realpathat.vgtest \
89         realpathat.stderr.exp \
90         revoke.vgtest \
91         revoke.stderr.exp \
92         scalar.h scalar.vgtest \
93         scalar.stderr.exp \
94                 scalar.stderr.exp-x86 \
95                 scalar.supp \
96         scalar_abort2.vgtest \
97         scalar_abort2.stderr.exp \
98         scalar_fork.vgtest \
99         scalar_fork.stderr.exp \
100         scalar_pdfork.vgtest \
101         scalar_pdfork.stderr.exp \
102         scalar_thr_exit.vgtest \
103         scalar_thr_exit.stderr.exp \
104         scalar_vfork.vgtest \
105         scalar_vfork.stderr.exp \
106         sctp.vgtest \
107         sctp.stderr.exp \
108         sctp.stdout.exp \
109         sctp2.vgtest \
110         sctp2.stderr.exp \
111         sctp2.stdout.exp \
112         setproctitle.vgtest \
113         setproctitle.stderr.exp \
114         setproctitle.stdout.exp \
115         sigwait.vgtest \
116         sigwait.stdout.exp \
117         sigwait.stderr.exp \
118                 sigwait.stderr.exp-x86 \
119         stat.vgtest \
120         stat.stderr.exp \
121                 stat.stderr.exp-x86 \
122         statfs.vgtest \
123         statfs.stderr.exp \
124         static_allocs.vgtest \
125         static_allocs.stderr.exp \
126         strlcat_strlcpy.vgtest \
127         strlcat_strlcpy.stderr.exp \
128         supponlyobj.vgtest \
129         supponlyobj.stderr.exp \
130         supponlyobj.supp \
131         timerfd.vgtest \
132         timerfd.stderr.exp \
133         timerfd.stdout.exp \
134         timing_safe.vgtest \
135         timing_safe.stderr.exp \
136         utimens.vgtest \
137         utimens.stderr.exp \
138         utimes.vgtest \
139         utimes.stderr.exp-x86 \
140         utimes.stderr.exp
142 check_PROGRAMS = \
143         access aio aio_read aligned_alloc bug464476 bug470713 \
144         bug483786 \
145         capsicum chflags \
146         chmod_chown clock_nanosleep_interrupt \
147         delete_sized_mismatch errno_aligned_allocs \
148         extattr fbsd278566 \
149         fexecve \
150         file_locking_wait6 \
151         get_set_context get_set_login getfh \
152         kqueue linkat memalign misc \
153         openpty \
154         pdfork_pdkill getfsstat inlinfo inlinfo_nested.so \
155         revoke scalar \
156         scalar_fork scalar_thr_exit scalar_abort2 scalar_pdfork \
157         scalar_vfork \
158         sctp sctp2 \
159         setproctitle \
160         sigwait \
161         stat \
162         statfs \
163         static_allocs \
164         strlcat_strlcpy \
165         timing_safe \
166         utimens \
167         utimes
169 AM_CFLAGS   += $(AM_FLAG_M3264_PRI)
170 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
172 if HAVE_AIO_READV
173 check_PROGRAMS += aiov
174 endif
176 if HAVE_GETRLIMITUSAGE
177 check_PROGRAMS += getrlimitusage
178 endif
180 inlinfo_SOURCES = inlinfo.c
181 inlinfo_DEPENDENCIES = inlinfo_nested.so
182 inlinfo_LDFLAGS = -Wl,-rpath,$(top_builddir)/memcheck/tests/freebsd
183 inlinfo_LDADD = inlinfo_nested.so
184 inlinfo_nested_so_SOURCES = inlinfo_nested.c
185 inlinfo_nested_so_CFLAGS = $(AM_CFLAGS) -fPIC @FLAG_W_NO_UNINITIALIZED@
186 inlinfo_nested_so_LDFLAGS = -Wl,-rpath,$(top_builddir)/memcheck/tests/freebsd -shared -fPIC
188 bug464476_SOURCES = bug464476.cpp
189 bug470713_SOURCES = bug470713.cpp
191 if FREEBSD_EVENTFD
192 check_PROGRAMS += eventfd1 eventfd2
193 endif
195 if FREEBSD_REALPATHAT_SYSCALL
196 check_PROGRAMS += realpathat
197 endif
199 if FREEBSD_KQUEUEX_SYSCALL
200 check_PROGRAMS += kqueuex
201 endif
203 if FREEBSD_TIMERFD_SYSCALL
204 check_PROGRAMS += timerfd
205 timerfd_LDFLAGS = -lm
206 endif
208 aligned_alloc_CFLAGS = ${AM_CFLAGS} @FLAG_W_NO_NON_POWER_OF_TWO_ALIGNMENT@
210 delete_sized_mismatch_CXXFLAGS = ${AM_CXXFLAGS} --std=c++14
211 delete_sized_mismatch_SOURCES = delete_sized_mismatch.cpp
213 errno_aligned_allocs_CFLAGS = ${AM_CFLAGS} @FLAG_W_NO_NON_POWER_OF_TWO_ALIGNMENT@
216 extattr_CFLAGS = ${AM_CFLAGS} @FLAG_W_NO_UNUSED_BUT_SET_VARIABLE@
218 memalign_CFLAGS = ${AM_CFLAGS} @FLAG_W_NO_NON_POWER_OF_TWO_ALIGNMENT@
220 openpty_LDFLAGS = ${AM_LDFLAGS} -lutil
222 scalar_CFLAGS = ${AM_CFLAGS} -g