2 include $(top_srcdir)/Makefile.tool-tests.am
7 if VGCONF_ARCHS_INCLUDE_X86
10 if VGCONF_ARCHS_INCLUDE_AMD64
13 if VGCONF_ARCHS_INCLUDE_PPC32
16 if VGCONF_ARCHS_INCLUDE_PPC64
19 if VGCONF_ARCHS_INCLUDE_ARM
22 if VGCONF_ARCHS_INCLUDE_S390X
30 if VGCONF_OS_IS_DARWIN
34 # Platform-specific tests
35 if VGCONF_PLATFORMS_INCLUDE_X86_LINUX
39 DIST_SUBDIRS = x86 amd64 ppc32 ppc64 arm s390x linux darwin x86-linux .
41 dist_noinst_SCRIPTS = \
46 filter_none_discards \
50 noinst_HEADERS = fdleak.h
53 ansi.stderr.exp ansi.vgtest \
54 args.stderr.exp args.stdout.exp args.vgtest \
55 async-sigs.stderr.exp async-sigs.vgtest \
56 bitfield1.stderr.exp bitfield1.vgtest \
57 bug129866.vgtest bug129866.stderr.exp bug129866.stdout.exp \
58 closeall.stderr.exp closeall.vgtest \
59 cmdline0.stderr.exp cmdline0.stdout.exp cmdline0.vgtest \
60 cmdline1.stderr.exp cmdline1.stdout.exp cmdline1.vgtest \
61 cmdline2.stderr.exp cmdline2.stdout.exp cmdline2.vgtest \
62 cmdline3.stderr.exp cmdline3.vgtest \
63 cmdline4.stderr.exp cmdline4.vgtest \
64 cmdline5.stderr.exp cmdline5.vgtest \
65 cmdline6.stderr.exp cmdline6.vgtest \
66 cmd-with-special.stderr.exp cmd-with-special.vgtest \
67 coolo_sigaction.stderr.exp \
68 coolo_sigaction.stdout.exp coolo_sigaction.vgtest \
69 coolo_strlen.stderr.exp coolo_strlen.vgtest \
70 discard.stderr.exp discard.stdout.exp \
72 exec-sigmask.vgtest exec-sigmask.stdout.exp \
73 exec-sigmask.stdout.exp2 exec-sigmask.stdout.exp3 exec-sigmask.stderr.exp \
74 execve.vgtest execve.stdout.exp execve.stderr.exp \
75 faultstatus.vgtest faultstatus.stderr.exp \
76 fcntl_setown.vgtest fcntl_setown.stdout.exp fcntl_setown.stderr.exp \
77 fdleak_cmsg.stderr.exp fdleak_cmsg.vgtest \
78 fdleak_creat.stderr.exp fdleak_creat.vgtest \
79 fdleak_dup.stderr.exp fdleak_dup.vgtest \
80 fdleak_dup2.stderr.exp fdleak_dup2.vgtest \
81 fdleak_fcntl.stderr.exp fdleak_fcntl.vgtest \
82 fdleak_ipv4.stderr.exp fdleak_ipv4.stdout.exp fdleak_ipv4.vgtest \
83 fdleak_open.stderr.exp fdleak_open.vgtest \
84 fdleak_pipe.stderr.exp fdleak_pipe.vgtest \
85 fdleak_socketpair.stderr.exp fdleak_socketpair.vgtest \
86 floored.stderr.exp floored.stdout.exp floored.vgtest \
87 fork.stderr.exp fork.stdout.exp fork.vgtest \
88 fucomip.stderr.exp fucomip.vgtest \
89 gxx304.stderr.exp gxx304.vgtest \
90 manythreads.stdout.exp manythreads.stderr.exp manythreads.vgtest \
91 map_unaligned.stderr.exp map_unaligned.vgtest \
92 map_unmap.stderr.exp map_unmap.stdout.exp map_unmap.vgtest \
93 mq.stderr.exp mq.vgtest \
94 munmap_exe.stderr.exp munmap_exe.vgtest \
95 nestedfns.stderr.exp nestedfns.stdout.exp nestedfns.vgtest \
96 pending.stdout.exp pending.stderr.exp pending.vgtest \
97 procfs-linux.stderr.exp-with-readlinkat \
98 procfs-linux.stderr.exp-without-readlinkat \
100 procfs-non-linux.stderr.exp procfs-non-linux.vgtest \
101 pth_atfork1.stderr.exp pth_atfork1.stdout.exp pth_atfork1.vgtest \
102 pth_blockedsig.stderr.exp \
103 pth_blockedsig.stdout.exp pth_blockedsig.vgtest \
104 pth_cancel1.stderr.exp pth_cancel1.stdout.exp pth_cancel1.vgtest \
105 pth_cancel2.stderr.exp pth_cancel2.vgtest \
106 pth_cvsimple.stderr.exp pth_cvsimple.stdout.exp pth_cvsimple.vgtest \
107 pth_empty.stderr.exp pth_empty.vgtest \
108 pth_exit.stderr.exp pth_exit.vgtest \
109 pth_exit2.stderr.exp pth_exit2.vgtest \
110 pth_mutexspeed.stderr.exp \
111 pth_mutexspeed.stdout.exp pth_mutexspeed.vgtest \
112 pth_once.stderr.exp pth_once.stdout.exp pth_once.vgtest \
113 pth_rwlock.stderr.exp pth_rwlock.vgtest \
114 pth_stackalign.stderr.exp \
115 pth_stackalign.stdout.exp pth_stackalign.vgtest \
116 rcrl.stderr.exp rcrl.stdout.exp rcrl.vgtest \
117 readline1.stderr.exp readline1.stdout.exp \
119 require-text-symbol-1.vgtest \
120 require-text-symbol-1.stderr.exp \
121 require-text-symbol-2.vgtest \
122 require-text-symbol-2.stderr.exp-libcso6 \
123 res_search.stderr.exp res_search.stdout.exp res_search.vgtest \
124 resolv.stderr.exp resolv.stdout.exp resolv.vgtest \
125 rlimit_nofile.stderr.exp rlimit_nofile.stdout.exp rlimit_nofile.vgtest \
126 selfrun.stderr.exp selfrun.stdout.exp selfrun.vgtest \
127 sem.stderr.exp sem.stdout.exp sem.vgtest \
128 semlimit.stderr.exp semlimit.stdout.exp semlimit.vgtest \
129 shell shell.vgtest shell.stderr.exp shell.stderr.exp-dash \
131 shell_badinterp shell_badinterp.vgtest shell_badinterp.stderr.exp \
132 shell_binaryfile shell_binaryfile.vgtest shell_binaryfile.stderr.exp \
133 shell_dir.vgtest shell_dir.stderr.exp \
134 shell_nonexec.vgtest shell_nonexec.stderr.exp \
135 shell_nosuchfile.vgtest shell_nosuchfile.stderr.exp \
136 shell_valid1 shell_valid1.vgtest shell_valid1.stderr.exp \
137 shell_valid2 shell_valid2.vgtest shell_valid2.stderr.exp \
138 shell_valid3 shell_valid3.vgtest shell_valid3.stderr.exp \
139 shell_zerolength shell_zerolength.vgtest shell_zerolength.stderr.exp \
140 shell_zerolength.stderr.exp-dash \
141 sha1_test.stderr.exp sha1_test.vgtest \
142 shortpush.stderr.exp shortpush.vgtest \
143 shorts.stderr.exp shorts.vgtest \
144 sigstackgrowth.stdout.exp sigstackgrowth.stderr.exp sigstackgrowth.vgtest \
145 stackgrowth.stdout.exp stackgrowth.stderr.exp stackgrowth.vgtest \
146 syscall-restart1.vgtest syscall-restart1.stdout.exp syscall-restart1.stderr.exp \
147 syscall-restart2.vgtest syscall-restart2.stdout.exp syscall-restart2.stderr.exp \
148 syslog.vgtest syslog.stderr.exp \
149 system.stderr.exp system.vgtest \
150 thread-exits.stderr.exp thread-exits.stdout.exp thread-exits.vgtest \
151 threaded-fork.stderr.exp threaded-fork.stdout.exp threaded-fork.vgtest \
152 threadederrno.stderr.exp threadederrno.stdout.exp \
153 threadederrno.vgtest \
154 timestamp.stderr.exp timestamp.vgtest \
155 tls.vgtest tls.stderr.exp tls.stdout.exp \
156 vgprintf.stderr.exp vgprintf.vgtest
163 closeall coolo_strlen \
164 discard exec-sigmask execve faultstatus fcntl_setown \
165 fdleak_cmsg fdleak_creat fdleak_dup fdleak_dup2 \
166 fdleak_fcntl fdleak_ipv4 fdleak_open fdleak_pipe \
168 floored fork fucomip \
169 munmap_exe map_unaligned map_unmap mq \
173 pth_atfork1 pth_blockedsig pth_cancel1 pth_cancel2 pth_cvsimple \
174 pth_empty pth_exit pth_exit2 pth_mutexspeed pth_once pth_rwlock \
177 require-text-symbol \
179 rlimit_nofile selfrun sem semlimit sha1_test \
180 shortpush shorts stackgrowth sigstackgrowth \
181 syscall-restart1 syscall-restart2 \
196 # - manythreads and thread-exits have lots of this:
197 # --61831:0:aspacem sync_check_mapping_callback: segment mismatch:
199 # --61831:0:aspacem start=0x102538000 end=0x1025b7fff prot=3 dev=0 ino=0
200 # offset=0 name="(none)"
201 # --61831:0:aspacem sync_check_mapping_callback: segment mismatch: V's seg:
202 # --61831:0:aspacem NSegment{ , start=0x10067a000, end=0x109a1efff,
203 # smode=SmFixed, dev=0, ino=0, offset=0, fnIdx=-1, hasR=0,
204 # hasW=0, hasX=0, hasT=0, mark=0, name="(none)"}
205 if ! VGCONF_PLATFORMS_INCLUDE_AMD64_DARWIN
212 AM_CFLAGS += $(AM_FLAG_M3264_PRI)
213 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
215 # Extra stuff for C tests
216 ansi_CFLAGS = $(AM_CFLAGS) -ansi
217 execve_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
219 manythreads_LDADD = -lpthread
220 if VGCONF_OS_IS_DARWIN
221 nestedfns_CFLAGS = $(AM_CFLAGS) -fnested-functions
223 nestedfns_CFLAGS = $(AM_CFLAGS)
226 pth_atfork1_LDADD = -lpthread
227 pth_blockedsig_LDADD = -lpthread
228 pth_cancel1_CFLAGS = $(AM_CFLAGS) -Wno-shadow
229 pth_cancel1_LDADD = -lpthread
230 pth_cancel2_LDADD = -lpthread
231 pth_cvsimple_LDADD = -lpthread
232 pth_empty_LDADD = -lpthread
233 pth_exit_LDADD = -lpthread
234 pth_exit2_LDADD = -lpthread
235 pth_mutexspeed_LDADD = -lpthread
236 pth_once_LDADD = -lpthread
237 pth_rwlock_LDADD = -lpthread
238 pth_stackalign_LDADD = -lpthread
240 res_search_LDADD = -lpthread
242 res_search_LDADD = -lresolv -lpthread
243 resolv_LDADD = -lresolv -lpthread
245 semlimit_LDADD = -lpthread
246 thread_exits_LDADD = -lpthread
247 threaded_fork_LDADD = -lpthread
248 threadederrno_LDADD = -lpthread
249 tls_SOURCES = tls.c tls2.c
250 tls_DEPENDENCIES = tls.so tls2.so
254 tls_LDFLAGS = -Wl,-rpath,$(top_builddir)/none/tests
256 tls_LDADD = tls.so tls2.so -lpthread
257 tls_so_SOURCES = tls_so.c
258 tls_so_DEPENDENCIES = tls2.so
260 tls_so_LDFLAGS = -shared -fPIC
261 tls_so_LDADD = `pwd`/tls2.so
263 if VGCONF_OS_IS_DARWIN
264 tls_so_LDFLAGS = -dynamic -dynamiclib -all_load -fpic
265 tls_so_LDADD = `pwd`/tls2.so
267 tls_so_LDFLAGS = -Wl,-rpath,$(top_builddir)/none/tests -shared -fPIC
268 tls_so_LDADD = tls2.so
271 tls_so_CFLAGS = $(AM_CFLAGS) -fPIC
272 tls2_so_SOURCES = tls2_so.c
273 if VGCONF_OS_IS_DARWIN
274 tls2_so_LDFLAGS = -dynamic -dynamiclib -all_load
276 tls2_so_LDFLAGS = -shared
279 valgrind_cpp_test_SOURCES = valgrind_cpp_test.cpp
280 valgrind_cpp_test_LDADD = -lstdc++
283 coolo_sigaction_SOURCES = coolo_sigaction.cpp
284 gxx304_SOURCES = gxx304.cpp