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