Home | History | Annotate | Download | only in tests
      1 
      2 include $(top_srcdir)/Makefile.tool-tests.am
      3 
      4 dist_noinst_SCRIPTS = filter_stderr filter_add filter_suppgen \
      5 	sh_script
      6 
      7 EXTRA_DIST = \
      8 	is_arch_supported \
      9 	add.vgtest-disabled add.stderr.exp \
     10 	and.vgtest-disabled and.stderr.exp \
     11 	arith.vgtest-disabled arith.stderr.exp \
     12 	arith_include1.c arith_include2.c \
     13 	bad_percentify.vgtest bad_percentify.c \
     14 	bad_percentify.stdout.exp bad_percentify.stderr.exp-glibc28-amd64 \
     15 	base.vgtest \
     16 	base.stderr.exp-glibc25-amd64 base.stderr.exp-glibc25-x86 \
     17 	ccc.vgtest ccc.stderr.exp-glibc25-amd64 \
     18 	    ccc.stderr.exp-glibc27-x86 ccc.stderr.exp-glibc28-amd64 \
     19 	cmp.vgtest-disabled cmp.stderr.exp \
     20 	globalerr.vgtest globalerr.stdout.exp \
     21 	globalerr.stderr.exp-glibc28-amd64 \
     22 	fp.vgtest fp.stderr.exp \
     23 	hackedbz2.vgtest hackedbz2.stdout.exp \
     24 	hackedbz2.stderr.exp-glibc28-amd64 \
     25 	hp_bounds.vgtest hp_bounds.stderr.exp \
     26 	hp_dangle.vgtest hp_dangle.stderr.exp \
     27 	hsg.vgtest hsg.stdout.exp hsg.stderr.exp \
     28 	idiv.vgtest-disabled idiv.stderr.exp \
     29 	imul.vgtest-disabled imul.stderr.exp \
     30 	justify.vgtest justify.stderr.exp \
     31 	mm.vgtest-disabled mm.stderr.exp \
     32 	neg.vgtest-disabled neg.stderr.exp \
     33 	not.vgtest-disabled not.stderr.exp \
     34 	or.vgtest-disabled or.stderr.exp \
     35 	partial_bad.vgtest \
     36 	partial_bad.stderr.exp-glibc25-x86 \
     37 	partial_bad.stderr.exp-glibc25-amd64 \
     38 	partial_good.vgtest \
     39 	partial_good.stderr.exp-glibc25-x86 \
     40 	partial_good.stderr.exp-glibc25-amd64 \
     41 	preen_invars.vgtest preen_invars.stdout.exp \
     42 	preen_invars.stderr.exp-glibc28-amd64 \
     43 	pth_create.vgtest pth_create.stderr.exp \
     44 	pth_specific.vgtest pth_specific.stderr.exp \
     45 	realloc.vgtest \
     46 	realloc.stderr.exp-glibc25-x86 realloc.stderr.exp-glibc25-amd64 \
     47 	sh_script.vgtest-disabled sh_script.stderr.exp \
     48 	stackerr.vgtest stackerr.stdout.exp \
     49 	stackerr.stderr.exp-glibc28-amd64 stackerr.stderr.exp-glibc27-x86 \
     50 	strcpy.vgtest strcpy.stderr.exp \
     51 	strlen_bad.vgtest-disabled strlen_bad.stderr.exp \
     52 	strlen_good.vgtest-disabled strlen_good.stderr.exp \
     53 	sub.vgtest-disabled sub.stderr.exp \
     54 	supp.vgtest supp.stderr.exp supp.supp \
     55 	suppgen.vgtest-disabled suppgen.stderr.exp suppgen.stdin \
     56 	syscall.vgtest-disabled syscall.stderr.exp \
     57 	tricky.vgtest tricky.stderr.exp \
     58 	unaligned.vgtest \
     59 	unaligned.stderr.exp-glibc25-x86 unaligned.stderr.exp-glibc25-amd64 \
     60 	xor.vgtest-disabled xor.stderr.exp \
     61 	zero.vgtest zero.stderr.exp
     62 
     63 check_PROGRAMS = \
     64 	add and arith bad_percentify base cmp fp \
     65 	globalerr hackedbz2 \
     66 	hp_bounds hp_dangle hsg idiv imul \
     67 	justify mm not neg or partial \
     68 	preen_invars preen_invars_so.so \
     69 	pth_create pth_specific realloc \
     70 	stackerr \
     71 	strcpy strlen sub supp syscall tricky unaligned xor zero
     72 
     73 # DDD: not sure if these ones should work on Darwin or not... if not, should
     74 # be moved into x86-linux/.
     75 if ! VGCONF_OS_IS_DARWIN
     76    check_PROGRAMS += \
     77 	ccc
     78 endif
     79 
     80 
     81 AM_CFLAGS   += $(AM_FLAG_M3264_PRI)
     82 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
     83 
     84 # To make it a bit more realistic, build hackedbz2.c with at 
     85 # least some optimisation.
     86 hackedbz2_CFLAGS	= $(AM_CFLAGS) -O -Wno-inline
     87 
     88 # C ones
     89 pth_create_LDADD	= -lpthread
     90 pth_specific_LDADD	= -lpthread
     91 
     92 # C++ ones
     93 ccc_SOURCES		= ccc.cpp
     94 
     95 # Build shared object for preen_invars
     96 preen_invars_DEPENDENCIES      = preen_invars_so.so
     97 if VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5 
     98  preen_invars_LDADD            = -ldl
     99  preen_invars_LDFLAGS          = $(AM_FLAG_M3264_PRI)
    100 else
    101 if VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5
    102  preen_invars_LDADD            = -ldl
    103  preen_invars_LDFLAGS          = $(AM_FLAG_M3264_PRI) -Wl,-G -Wl,-bnogc
    104 else
    105 if VGCONF_OS_IS_DARWIN
    106  preen_invars_LDADD            = -ldl
    107  preen_invars_LDFLAGS          = $(AM_FLAG_M3264_PRI)
    108 else
    109  preen_invars_LDADD            = -ldl
    110  preen_invars_LDFLAGS          = $(AM_FLAG_M3264_PRI) \
    111 				-Wl,-rpath,$(top_builddir)/memcheck/tests
    112 endif
    113 endif
    114 endif
    115 
    116 preen_invars_so_so_SOURCES      = preen_invars_so.c	# For automake-1.7.
    117 preen_invars_so_so_CFLAGS       = $(AM_CFLAGS) -fpic
    118 if VGCONF_PLATFORMS_INCLUDE_PPC64_AIX5
    119  preen_invars_so_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -shared
    120 else
    121 if VGCONF_PLATFORMS_INCLUDE_PPC32_AIX5
    122  preen_invars_so_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -shared \
    123 					-Wl,-G -Wl,-bnogc
    124 else
    125 if VGCONF_OS_IS_DARWIN
    126  preen_invars_so_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
    127 					-dynamiclib -all_load
    128 else
    129  preen_invars_so_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -shared \
    130 					-Wl,-soname -Wl,preen_invars_so.so
    131 endif
    132 endif
    133 endif
    134 
    135