]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/valgrind/src/valgrind-3.6.0-svn/none/tests/Makefile.am
a299436fca5867d8ddb5db85895800e64f15c63d
[l4.git] / l4 / pkg / valgrind / src / valgrind-3.6.0-svn / none / tests / Makefile.am
1
2 include $(top_srcdir)/Makefile.tool-tests.am
3
4 SUBDIRS = .
5
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_PPC32
14 SUBDIRS += ppc32
15 endif
16 if VGCONF_ARCHS_INCLUDE_PPC64
17 SUBDIRS += ppc64
18 endif
19 if VGCONF_ARCHS_INCLUDE_ARM
20 SUBDIRS += arm
21 endif
22
23 # OS-specific tests
24 if VGCONF_OS_IS_LINUX
25 SUBDIRS += linux
26 endif
27 if VGCONF_OS_IS_DARWIN
28 SUBDIRS += darwin
29 endif
30
31 # Platform-specific tests
32 if VGCONF_PLATFORMS_INCLUDE_X86_LINUX
33 SUBDIRS += x86-linux
34 endif
35
36 DIST_SUBDIRS = x86 amd64 ppc32 ppc64 arm linux darwin x86-linux .
37
38 dist_noinst_SCRIPTS = \
39         filter_cmdline0 \
40         filter_cmdline1 \
41         filter_fdleak \
42         filter_linenos \
43         filter_none_discards \
44         filter_stderr \
45         filter_timestamp
46
47 noinst_HEADERS = fdleak.h
48
49 EXTRA_DIST = \
50         ansi.stderr.exp ansi.vgtest \
51         args.stderr.exp args.stdout.exp args.vgtest \
52         async-sigs.stderr.exp async-sigs.vgtest \
53         bitfield1.stderr.exp bitfield1.vgtest \
54         bug129866.vgtest bug129866.stderr.exp bug129866.stdout.exp \
55         closeall.stderr.exp closeall.vgtest \
56         cmdline0.stderr.exp cmdline0.stdout.exp cmdline0.vgtest \
57         cmdline1.stderr.exp cmdline1.stdout.exp cmdline1.vgtest \
58         cmdline2.stderr.exp cmdline2.stdout.exp cmdline2.vgtest \
59         cmdline3.stderr.exp cmdline3.vgtest \
60         cmdline4.stderr.exp cmdline4.vgtest \
61         cmdline5.stderr.exp cmdline5.vgtest \
62         cmdline6.stderr.exp cmdline6.vgtest \
63         cmd-with-special.stderr.exp cmd-with-special.vgtest \
64         coolo_sigaction.stderr.exp \
65         coolo_sigaction.stdout.exp coolo_sigaction.vgtest \
66         coolo_strlen.stderr.exp coolo_strlen.vgtest \
67         discard.stderr.exp discard.stdout.exp \
68         discard.vgtest \
69         exec-sigmask.vgtest exec-sigmask.stdout.exp \
70         exec-sigmask.stdout.exp2 exec-sigmask.stdout.exp3 exec-sigmask.stderr.exp \
71         execve.vgtest execve.stdout.exp execve.stderr.exp \
72         faultstatus.vgtest faultstatus.stderr.exp \
73         fcntl_setown.vgtest fcntl_setown.stdout.exp fcntl_setown.stderr.exp \
74         fdleak_cmsg.stderr.exp fdleak_cmsg.vgtest \
75         fdleak_creat.stderr.exp fdleak_creat.vgtest \
76         fdleak_dup.stderr.exp fdleak_dup.vgtest \
77         fdleak_dup2.stderr.exp fdleak_dup2.vgtest \
78         fdleak_fcntl.stderr.exp fdleak_fcntl.vgtest \
79         fdleak_ipv4.stderr.exp fdleak_ipv4.stdout.exp fdleak_ipv4.vgtest \
80         fdleak_open.stderr.exp fdleak_open.vgtest \
81         fdleak_pipe.stderr.exp fdleak_pipe.vgtest \
82         fdleak_socketpair.stderr.exp fdleak_socketpair.vgtest \
83         floored.stderr.exp floored.stdout.exp floored.vgtest \
84         fork.stderr.exp fork.stdout.exp fork.vgtest \
85         fucomip.stderr.exp fucomip.vgtest \
86         gxx304.stderr.exp gxx304.vgtest \
87         manythreads.stdout.exp manythreads.stderr.exp manythreads.vgtest \
88         map_unaligned.stderr.exp map_unaligned.vgtest \
89         map_unmap.stderr.exp map_unmap.stdout.exp map_unmap.vgtest \
90         mq.stderr.exp mq.vgtest \
91         munmap_exe.stderr.exp munmap_exe.vgtest \
92         nestedfns.stderr.exp nestedfns.stdout.exp nestedfns.vgtest \
93         pending.stdout.exp pending.stderr.exp pending.vgtest \
94         procfs-linux.stderr.exp-with-readlinkat \
95         procfs-linux.stderr.exp-without-readlinkat \
96         procfs-linux.vgtest \
97         procfs-non-linux.stderr.exp procfs-non-linux.vgtest \
98         pth_atfork1.stderr.exp pth_atfork1.stdout.exp pth_atfork1.vgtest \
99         pth_blockedsig.stderr.exp \
100         pth_blockedsig.stdout.exp pth_blockedsig.vgtest \
101         pth_cancel1.stderr.exp pth_cancel1.stdout.exp pth_cancel1.vgtest \
102         pth_cancel2.stderr.exp pth_cancel2.vgtest \
103         pth_cvsimple.stderr.exp pth_cvsimple.stdout.exp pth_cvsimple.vgtest \
104         pth_empty.stderr.exp pth_empty.vgtest \
105         pth_exit.stderr.exp pth_exit.vgtest \
106         pth_exit2.stderr.exp pth_exit2.vgtest \
107         pth_mutexspeed.stderr.exp \
108         pth_mutexspeed.stdout.exp pth_mutexspeed.vgtest \
109         pth_once.stderr.exp pth_once.stdout.exp pth_once.vgtest \
110         pth_rwlock.stderr.exp pth_rwlock.vgtest \
111         pth_stackalign.stderr.exp \
112         pth_stackalign.stdout.exp pth_stackalign.vgtest \
113         rcrl.stderr.exp rcrl.stdout.exp rcrl.vgtest \
114         readline1.stderr.exp readline1.stdout.exp \
115         readline1.vgtest \
116         require-text-symbol-1.vgtest \
117                 require-text-symbol-1.stderr.exp
118         require-text-symbol-2.vgtest \
119                 require-text-symbol-2.stderr.exp-libcso6 \
120         res_search.stderr.exp res_search.stdout.exp res_search.vgtest \
121         resolv.stderr.exp resolv.stdout.exp resolv.vgtest \
122         rlimit_nofile.stderr.exp rlimit_nofile.stdout.exp rlimit_nofile.vgtest \
123         selfrun.stderr.exp selfrun.stdout.exp selfrun.vgtest \
124         sem.stderr.exp sem.stdout.exp sem.vgtest \
125         semlimit.stderr.exp semlimit.stdout.exp semlimit.vgtest \
126         shell shell.vgtest shell.stderr.exp shell.stderr.exp-dash \
127             shell.stdout.exp \
128         shell_badinterp shell_badinterp.vgtest shell_badinterp.stderr.exp \
129         shell_binaryfile shell_binaryfile.vgtest shell_binaryfile.stderr.exp \
130         shell_dir.vgtest shell_dir.stderr.exp \
131         shell_nonexec.vgtest shell_nonexec.stderr.exp \
132         shell_nosuchfile.vgtest shell_nosuchfile.stderr.exp \
133         shell_valid1 shell_valid1.vgtest shell_valid1.stderr.exp \
134         shell_valid2 shell_valid2.vgtest shell_valid2.stderr.exp \
135         shell_valid3 shell_valid3.vgtest shell_valid3.stderr.exp \
136         shell_zerolength shell_zerolength.vgtest shell_zerolength.stderr.exp \
137             shell_zerolength.stderr.exp-dash \
138         sha1_test.stderr.exp sha1_test.vgtest \
139         shortpush.stderr.exp shortpush.vgtest \
140         shorts.stderr.exp shorts.vgtest \
141         sigstackgrowth.stdout.exp sigstackgrowth.stderr.exp sigstackgrowth.vgtest \
142         stackgrowth.stdout.exp stackgrowth.stderr.exp stackgrowth.vgtest \
143         syscall-restart1.vgtest syscall-restart1.stdout.exp syscall-restart1.stderr.exp \
144         syscall-restart2.vgtest syscall-restart2.stdout.exp syscall-restart2.stderr.exp \
145         syslog.vgtest syslog.stderr.exp \
146         system.stderr.exp system.vgtest \
147         thread-exits.stderr.exp thread-exits.stdout.exp thread-exits.vgtest \
148         threaded-fork.stderr.exp threaded-fork.stdout.exp threaded-fork.vgtest \
149         threadederrno.stderr.exp threadederrno.stdout.exp \
150         threadederrno.vgtest \
151         timestamp.stderr.exp timestamp.vgtest \
152         tls.vgtest tls.stderr.exp tls.stdout.exp  \
153         vgprintf.stderr.exp vgprintf.vgtest
154
155 check_PROGRAMS = \
156         ansi args \
157         async-sigs \
158         bitfield1 \
159         bug129866 \
160         closeall coolo_strlen \
161         discard exec-sigmask execve faultstatus fcntl_setown \
162         fdleak_cmsg fdleak_creat fdleak_dup fdleak_dup2 \
163         fdleak_fcntl fdleak_ipv4 fdleak_open fdleak_pipe \
164         fdleak_socketpair \
165         floored fork fucomip \
166         munmap_exe map_unaligned map_unmap mq \
167         nestedfns \
168         pending \
169         procfs-cmdline-exe \
170         pth_atfork1 pth_blockedsig pth_cancel1 pth_cancel2 pth_cvsimple \
171         pth_empty pth_exit pth_exit2 pth_mutexspeed pth_once pth_rwlock \
172         pth_stackalign \
173         rcrl readline1 \
174         require-text-symbol \
175         res_search resolv \
176         rlimit_nofile selfrun sem semlimit sha1_test \
177         shortpush shorts stackgrowth sigstackgrowth \
178         syscall-restart1 syscall-restart2 \
179         syslog \
180         system \
181         threaded-fork \
182         threadederrno \
183         timestamp \
184         tls \
185         tls.so \
186         tls2.so \
187         valgrind_cpp_test \
188         vgprintf \
189         coolo_sigaction \
190         gxx304
191
192 # DDD:
193 # - manythreads and thread-exits have lots of this:
194 # --61831:0:aspacem  sync_check_mapping_callback: segment mismatch:
195 #                    kernel's seg:
196 # --61831:0:aspacem  start=0x102538000 end=0x1025b7fff prot=3 dev=0 ino=0 
197 #                    offset=0 name="(none)"
198 # --61831:0:aspacem  sync_check_mapping_callback: segment mismatch: V's seg:
199 # --61831:0:aspacem  NSegment{    , start=0x10067a000, end=0x109a1efff,
200 #                    smode=SmFixed, dev=0, ino=0, offset=0, fnIdx=-1, hasR=0,
201 #                    hasW=0, hasX=0, hasT=0, mark=0, name="(none)"}
202 if ! VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN
203    check_PROGRAMS += \
204         manythreads \
205         thread-exits
206 endif
207
208
209 AM_CFLAGS   += $(AM_FLAG_M3264_PRI)
210 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
211
212 # Extra stuff for C tests
213 ansi_CFLAGS             = $(AM_CFLAGS) -ansi
214 floored_LDADD           = -lm
215 manythreads_LDADD       = -lpthread
216 if VGCONF_OS_IS_DARWIN
217  nestedfns_CFLAGS       = $(AM_CFLAGS) -fnested-functions
218 else
219  nestedfns_CFLAGS       = $(AM_CFLAGS)
220  mq_LDADD               = -lrt
221 endif
222 pth_atfork1_LDADD       = -lpthread
223 pth_blockedsig_LDADD    = -lpthread
224 pth_cancel1_CFLAGS      = $(AM_CFLAGS) -Wno-shadow
225 pth_cancel1_LDADD       = -lpthread
226 pth_cancel2_LDADD       = -lpthread
227 pth_cvsimple_LDADD      = -lpthread
228 pth_empty_LDADD         = -lpthread
229 pth_exit_LDADD          = -lpthread
230 pth_exit2_LDADD         = -lpthread
231 pth_mutexspeed_LDADD    = -lpthread
232 pth_once_LDADD          = -lpthread
233 pth_rwlock_LDADD        = -lpthread
234 pth_stackalign_LDADD    = -lpthread
235 if VGCONF_OS_IS_AIX5
236  res_search_LDADD       = -lpthread
237 else
238  res_search_LDADD       = -lresolv -lpthread
239  resolv_LDADD           = -lresolv -lpthread
240 endif
241 semlimit_LDADD          = -lpthread
242 thread_exits_LDADD      = -lpthread
243 threaded_fork_LDADD     = -lpthread
244 threadederrno_LDADD     = -lpthread
245 tls_SOURCES             = tls.c tls2.c
246 tls_DEPENDENCIES        = tls.so tls2.so
247 if VGCONF_OS_IS_AIX5
248  tls_LDFLAGS            = 
249 else
250  tls_LDFLAGS            = -Wl,-rpath,$(top_builddir)/none/tests
251 endif
252 tls_LDADD               = tls.so tls2.so -lpthread
253 tls_so_SOURCES          = tls_so.c
254 tls_so_DEPENDENCIES     = tls2.so
255 if VGCONF_OS_IS_AIX5
256  tls_so_LDFLAGS         = -shared -fPIC
257  tls_so_LDADD           = `pwd`/tls2.so
258 else
259 if VGCONF_OS_IS_DARWIN
260  tls_so_LDFLAGS         = -dynamic -dynamiclib -all_load -fpic
261  tls_so_LDADD           = `pwd`/tls2.so
262 else
263  tls_so_LDFLAGS         = -Wl,-rpath,$(top_builddir)/none/tests -shared -fPIC
264  tls_so_LDADD           = tls2.so
265 endif
266 endif
267 tls_so_CFLAGS           = $(AM_CFLAGS) -fPIC
268 tls2_so_SOURCES         = tls2_so.c
269 if VGCONF_OS_IS_DARWIN
270 tls2_so_LDFLAGS         = -dynamic -dynamiclib -all_load
271 else
272 tls2_so_LDFLAGS         = -shared
273 endif
274
275 valgrind_cpp_test_SOURCES = valgrind_cpp_test.cpp
276 valgrind_cpp_test_LDADD   = -lstdc++
277
278 # C++ tests
279 coolo_sigaction_SOURCES = coolo_sigaction.cpp
280 gxx304_SOURCES          = gxx304.cpp
281