1 2include $(top_srcdir)/Makefile.tool-tests.am 3 4SUBDIRS = . 5SUBDIRS += scripts 6 7# Arch-specific tests. 8if VGCONF_ARCHS_INCLUDE_X86 9SUBDIRS += x86 10endif 11if VGCONF_ARCHS_INCLUDE_AMD64 12SUBDIRS += amd64 13endif 14if VGCONF_ARCHS_INCLUDE_PPC32 15SUBDIRS += ppc32 16endif 17if VGCONF_ARCHS_INCLUDE_PPC64 18SUBDIRS += ppc64 19endif 20if VGCONF_ARCHS_INCLUDE_ARM 21SUBDIRS += arm 22endif 23if VGCONF_ARCHS_INCLUDE_ARM64 24SUBDIRS += arm64 25endif 26if VGCONF_ARCHS_INCLUDE_S390X 27SUBDIRS += s390x 28endif 29if VGCONF_ARCHS_INCLUDE_MIPS32 30SUBDIRS += mips32 31endif 32if VGCONF_ARCHS_INCLUDE_MIPS64 33SUBDIRS += mips64 34endif 35if VGCONF_ARCHS_INCLUDE_TILEGX 36SUBDIRS += tilegx 37endif 38 39# OS-specific tests 40if VGCONF_OS_IS_LINUX 41SUBDIRS += linux 42endif 43if VGCONF_OS_IS_DARWIN 44SUBDIRS += darwin 45endif 46 47# Platform-specific tests 48if VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX 49SUBDIRS += amd64-linux 50endif 51if VGCONF_PLATFORMS_INCLUDE_X86_LINUX 52SUBDIRS += x86-linux 53endif 54 55DIST_SUBDIRS = x86 amd64 ppc32 ppc64 arm arm64 s390x mips32 mips64 tilegx \ 56 linux darwin amd64-linux x86-linux scripts . 57 58dist_noinst_SCRIPTS = \ 59 filter_cmdline0 \ 60 filter_cmdline1 \ 61 filter_fdleak \ 62 filter_ioctl_moans \ 63 filter_none_discards \ 64 filter_stderr \ 65 filter_timestamp \ 66 allexec_prepare_prereq 67 68noinst_HEADERS = fdleak.h 69 70EXTRA_DIST = \ 71 allexec32.stdout.exp allexec32.stderr.exp allexec32.vgtest\ 72 allexec64.stdout.exp allexec64.stderr.exp allexec64.vgtest\ 73 ansi.stderr.exp ansi.vgtest \ 74 args.stderr.exp args.stdout.exp args.vgtest \ 75 async-sigs.stderr.exp async-sigs.stderr.exp-mips32 \ 76 async-sigs.vgtest \ 77 bigcode.vgtest bigcode.stderr.exp bigcode.stdout.exp \ 78 bitfield1.stderr.exp bitfield1.vgtest \ 79 bug129866.vgtest bug129866.stderr.exp bug129866.stdout.exp \ 80 bug234814.vgtest bug234814.stderr.exp bug234814.stdout.exp \ 81 closeall.stderr.exp closeall.vgtest \ 82 cmdline0.stderr.exp cmdline0.stdout.exp cmdline0.vgtest \ 83 cmdline1.stderr.exp cmdline1.stdout.exp cmdline1.vgtest \ 84 cmdline2.stderr.exp cmdline2.stdout.exp cmdline2.vgtest \ 85 cmdline3.stderr.exp cmdline3.vgtest \ 86 cmdline4.stderr.exp cmdline4.vgtest \ 87 cmdline5.stderr.exp cmdline5.vgtest \ 88 cmdline6.stderr.exp cmdline6.vgtest \ 89 cmd-with-special.stderr.exp cmd-with-special.vgtest \ 90 coolo_sigaction.stderr.exp \ 91 coolo_sigaction.stdout.exp coolo_sigaction.vgtest \ 92 coolo_strlen.stderr.exp coolo_strlen.vgtest \ 93 discard.stderr.exp discard.stdout.exp \ 94 discard.vgtest \ 95 empty-exe.vgtest empty-exe.stderr.exp \ 96 exec-sigmask.vgtest exec-sigmask.stdout.exp \ 97 exec-sigmask.stdout.exp2 exec-sigmask.stdout.exp3 exec-sigmask.stderr.exp \ 98 execve.vgtest execve.stdout.exp execve.stderr.exp \ 99 faultstatus.vgtest faultstatus.stderr.exp faultstatus.stderr.exp-s390x \ 100 fcntl_setown.vgtest fcntl_setown.stdout.exp fcntl_setown.stderr.exp \ 101 fdleak_cmsg.stderr.exp fdleak_cmsg.vgtest \ 102 fdleak_creat.stderr.exp fdleak_creat.vgtest \ 103 fdleak_dup.stderr.exp fdleak_dup.vgtest \ 104 fdleak_dup2.stderr.exp fdleak_dup2.vgtest \ 105 fdleak_fcntl.stderr.exp fdleak_fcntl.vgtest \ 106 fdleak_ipv4.stderr.exp fdleak_ipv4.stdout.exp fdleak_ipv4.vgtest \ 107 fdleak_open.stderr.exp fdleak_open.vgtest \ 108 fdleak_pipe.stderr.exp fdleak_pipe.vgtest \ 109 fdleak_socketpair.stderr.exp fdleak_socketpair.vgtest \ 110 floored.stderr.exp floored.stdout.exp floored.vgtest \ 111 fork.stderr.exp fork.stdout.exp fork.vgtest \ 112 fucomip.stderr.exp fucomip.vgtest \ 113 gxx304.stderr.exp gxx304.vgtest \ 114 ifunc.stderr.exp ifunc.stdout.exp ifunc.vgtest \ 115 ioctl_moans.stderr.exp ioctl_moans.vgtest \ 116 libvex_test.stderr.exp libvex_test.vgtest \ 117 libvexmultiarch_test.stderr.exp libvexmultiarch_test.vgtest \ 118 manythreads.stdout.exp manythreads.stderr.exp manythreads.vgtest \ 119 map_unaligned.stderr.exp map_unaligned.vgtest \ 120 map_unmap.stderr.exp map_unmap.stdout.exp map_unmap.vgtest \ 121 mmap_fcntl_bug.vgtest mmap_fcntl_bug.stdout.exp \ 122 mmap_fcntl_bug.stderr.exp \ 123 mq.stderr.exp mq.vgtest \ 124 munmap_exe.stderr.exp munmap_exe.vgtest \ 125 nestedfns.stderr.exp nestedfns.stdout.exp nestedfns.vgtest \ 126 nodir.stderr.exp nodir.vgtest \ 127 pending.stdout.exp pending.stderr.exp pending.vgtest \ 128 procfs-linux.stderr.exp-with-readlinkat \ 129 procfs-linux.stderr.exp-without-readlinkat \ 130 procfs-linux.vgtest \ 131 procfs-non-linux.vgtest \ 132 procfs-non-linux.stderr.exp-with-readlinkat \ 133 procfs-non-linux.stderr.exp-without-readlinkat \ 134 pth_atfork1.stderr.exp pth_atfork1.stdout.exp pth_atfork1.vgtest \ 135 pth_blockedsig.stderr.exp \ 136 pth_blockedsig.stdout.exp pth_blockedsig.vgtest \ 137 pth_cancel1.stderr.exp pth_cancel1.stdout.exp pth_cancel1.vgtest \ 138 pth_cancel2.stderr.exp pth_cancel2.vgtest \ 139 pth_cvsimple.stderr.exp pth_cvsimple.stdout.exp pth_cvsimple.vgtest \ 140 pth_empty.stderr.exp pth_empty.vgtest \ 141 pth_exit.stderr.exp pth_exit.vgtest \ 142 pth_exit2.stderr.exp pth_exit2.vgtest \ 143 pth_mutexspeed.stderr.exp \ 144 pth_mutexspeed.stdout.exp pth_mutexspeed.vgtest \ 145 pth_once.stderr.exp pth_once.stdout.exp pth_once.vgtest \ 146 pth_rwlock.stderr.exp pth_rwlock.vgtest \ 147 pth_stackalign.stderr.exp \ 148 pth_stackalign.stdout.exp pth_stackalign.vgtest \ 149 rcrl.stderr.exp rcrl.stdout.exp rcrl.vgtest \ 150 readline1.stderr.exp readline1.stdout.exp \ 151 readline1.vgtest \ 152 require-text-symbol-1.vgtest \ 153 require-text-symbol-1.stderr.exp \ 154 require-text-symbol-2.vgtest \ 155 require-text-symbol-2.stderr.exp-libcso6 \ 156 res_search.stderr.exp res_search.stdout.exp res_search.vgtest \ 157 resolv.stderr.exp resolv.stdout.exp resolv.vgtest \ 158 rlimit_nofile.stderr.exp rlimit_nofile.stdout.exp rlimit_nofile.vgtest \ 159 rlimit64_nofile.stderr.exp rlimit64_nofile.stdout.exp rlimit64_nofile.vgtest \ 160 selfrun.stderr.exp selfrun.stdout.exp selfrun.vgtest \ 161 sem.stderr.exp sem.stdout.exp sem.vgtest \ 162 semlimit.stderr.exp semlimit.stdout.exp semlimit.vgtest \ 163 sha1_test.stderr.exp sha1_test.vgtest \ 164 shortpush.stderr.exp shortpush.vgtest \ 165 shorts.stderr.exp shorts.vgtest \ 166 sigstackgrowth.stdout.exp sigstackgrowth.stderr.exp sigstackgrowth.vgtest \ 167 stackgrowth.stdout.exp stackgrowth.stderr.exp stackgrowth.vgtest \ 168 syscall-restart1.vgtest syscall-restart1.stdout.exp syscall-restart1.stderr.exp \ 169 syscall-restart2.vgtest syscall-restart2.stdout.exp syscall-restart2.stderr.exp \ 170 syslog.vgtest syslog.stderr.exp \ 171 system.stderr.exp system.vgtest \ 172 thread-exits.stderr.exp thread-exits.stdout.exp thread-exits.vgtest \ 173 threaded-fork.stderr.exp threaded-fork.stdout.exp threaded-fork.vgtest \ 174 threadederrno.stderr.exp threadederrno.stdout.exp \ 175 threadederrno.vgtest \ 176 timestamp.stderr.exp timestamp.vgtest \ 177 tls.vgtest tls.stderr.exp tls.stdout.exp \ 178 unit_debuglog.stderr.exp unit_debuglog.vgtest \ 179 vgprintf.stderr.exp vgprintf.vgtest \ 180 process_vm_readv_writev.stderr.exp process_vm_readv_writev.vgtest 181 182check_PROGRAMS = \ 183 ansi args \ 184 async-sigs \ 185 bitfield1 \ 186 bug129866 bug234814 \ 187 closeall coolo_strlen \ 188 discard exec-sigmask execve faultstatus fcntl_setown \ 189 fdleak_cmsg fdleak_creat fdleak_dup fdleak_dup2 \ 190 fdleak_fcntl fdleak_ipv4 fdleak_open fdleak_pipe \ 191 fdleak_socketpair \ 192 floored fork fucomip \ 193 ioctl_moans \ 194 libvex_test \ 195 libvexmultiarch_test \ 196 manythreads \ 197 mmap_fcntl_bug \ 198 munmap_exe map_unaligned map_unmap mq \ 199 pending \ 200 procfs-cmdline-exe \ 201 pth_atfork1 pth_blockedsig pth_cancel1 pth_cancel2 pth_cvsimple \ 202 pth_empty pth_exit pth_exit2 pth_mutexspeed pth_once pth_rwlock \ 203 pth_stackalign \ 204 rcrl readline1 \ 205 require-text-symbol \ 206 res_search resolv \ 207 rlimit_nofile selfrun sem semlimit sha1_test \ 208 shortpush shorts stackgrowth sigstackgrowth \ 209 syscall-restart1 syscall-restart2 \ 210 syslog \ 211 system \ 212 thread-exits \ 213 threaded-fork \ 214 threadederrno \ 215 timestamp \ 216 tls \ 217 tls.so \ 218 tls2.so \ 219 unit_debuglog \ 220 valgrind_cpp_test \ 221 vgprintf \ 222 coolo_sigaction \ 223 gxx304 \ 224 process_vm_readv_writev 225 226if HAVE_NESTED_FUNCTIONS 227 check_PROGRAMS += nestedfns 228endif 229 230# This doesn't appear to be compilable on Darwin. 231if ! VGCONF_OS_IS_DARWIN 232 check_PROGRAMS += rlimit64_nofile 233endif 234 235if BUILD_IFUNC_TESTS 236 check_PROGRAMS += ifunc 237endif 238 239AM_CFLAGS += $(AM_FLAG_M3264_PRI) 240AM_CXXFLAGS += $(AM_FLAG_M3264_PRI) 241 242# Extra stuff for C tests 243ansi_CFLAGS = $(AM_CFLAGS) -ansi 244execve_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@ 245floored_LDADD = -lm 246manythreads_LDADD = -lpthread 247if VGCONF_OS_IS_DARWIN 248 nestedfns_CFLAGS = $(AM_CFLAGS) -fnested-functions 249else 250 nestedfns_CFLAGS = $(AM_CFLAGS) 251 mq_LDADD = -lrt 252endif 253libvex_test_LDADD = ../../VEX/libvex-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a 254libvexmultiarch_test_LDADD = \ 255 ../../VEX/libvexmultiarch-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a \ 256 ../../VEX/libvex-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a 257libvexmultiarch_test_SOURCES = libvex_test.c 258pth_atfork1_LDADD = -lpthread 259pth_blockedsig_LDADD = -lpthread 260pth_cancel1_CFLAGS = $(AM_CFLAGS) -Wno-shadow 261pth_cancel1_LDADD = -lpthread 262pth_cancel2_LDADD = -lpthread 263pth_cvsimple_LDADD = -lpthread 264pth_empty_LDADD = -lpthread 265pth_exit_LDADD = -lpthread 266pth_exit2_LDADD = -lpthread 267pth_mutexspeed_LDADD = -lpthread 268pth_once_LDADD = -lpthread 269pth_rwlock_LDADD = -lpthread 270pth_stackalign_LDADD = -lpthread 271res_search_LDADD = -lresolv -lpthread 272resolv_LDADD = -lresolv -lpthread 273semlimit_LDADD = -lpthread 274thread_exits_LDADD = -lpthread 275threaded_fork_LDADD = -lpthread 276threadederrno_LDADD = -lpthread 277tls_SOURCES = tls.c tls2.c 278tls_DEPENDENCIES = tls.so tls2.so 279tls_LDFLAGS = -Wl,-rpath,$(abs_top_builddir)/none/tests 280tls_LDADD = tls.so tls2.so -lpthread 281tls_so_SOURCES = tls_so.c 282tls_so_DEPENDENCIES = tls2.so 283if VGCONF_OS_IS_DARWIN 284 tls_so_LDFLAGS = -dynamic -dynamiclib -all_load -fpic 285 tls_so_LDADD = `pwd`/tls2.so 286else 287 tls_so_LDFLAGS = -Wl,-rpath,$(abs_top_builddir)/none/tests -shared -fPIC 288 tls_so_LDADD = tls2.so 289endif 290tls_so_CFLAGS = $(AM_CFLAGS) -fPIC 291tls2_so_SOURCES = tls2_so.c 292if VGCONF_OS_IS_DARWIN 293 tls2_so_LDFLAGS = -dynamic -dynamiclib -all_load 294else 295 tls2_so_LDFLAGS = -shared 296endif 297 298valgrind_cpp_test_SOURCES = valgrind_cpp_test.cpp 299valgrind_cpp_test_LDADD = -lstdc++ 300 301# C++ tests 302coolo_sigaction_SOURCES = coolo_sigaction.cpp 303gxx304_SOURCES = gxx304.cpp 304 305