blob: 04d3a1b06a817736e5a297f078d1b914dd6268a1 [file] [log] [blame]
njna5f1bcd2004-11-27 16:47:42 +00001SUBDIRS = ${VG_ARCH} .
2DIST_SUBDIRS = ${VG_ARCH_ALL} .
njn25e49d8e72002-09-23 09:36:25 +00003
njnd0eab5f2003-09-30 16:52:47 +00004noinst_SCRIPTS = filter_allocs filter_leak_check_size \
sewardjebf67cc2005-05-24 14:46:02 +00005 filter_stderr filter_stderr_backtrace filter_xml
daywalker677e0612003-04-24 00:40:38 +00006
njna63e2d72003-06-12 14:13:05 +00007EXTRA_DIST = $(noinst_SCRIPTS) \
sewardjb5f6f512005-03-10 23:59:00 +00008 addressable.stderr.exp addressable.stdout.exp addressable.vgtest \
njnd8ced862003-04-08 00:47:05 +00009 badaddrvalue.stderr.exp \
njn254d542432002-09-23 16:09:39 +000010 badaddrvalue.stdout.exp badaddrvalue.vgtest \
11 badfree-2trace.stderr.exp badfree-2trace.vgtest \
12 badfree.stderr.exp badfree.vgtest \
13 badjump.stderr.exp badjump.vgtest \
nethercote4d714382004-10-13 09:47:24 +000014 badjump2.stderr.exp badjump2.vgtest \
njn254d542432002-09-23 16:09:39 +000015 badloop.stderr.exp badloop.vgtest \
nethercoteeb0592d2004-11-05 12:02:27 +000016 badpoll.stderr.exp badpoll.vgtest \
njnc2699f62003-09-05 23:29:33 +000017 badrw.stderr.exp badrw.vgtest \
njn7360f8e2003-09-04 20:57:51 +000018 brk.stderr.exp brk.vgtest \
nethercotece471262004-08-25 13:43:44 +000019 brk2.stderr.exp brk2.vgtest \
sewardjf0814a02005-05-04 12:27:48 +000020 buflen_check.stderr.exp buflen_check.stderr.exp2 buflen_check.vgtest \
njnd8ced862003-04-08 00:47:05 +000021 clientperm.stderr.exp \
njn4d5490d2002-10-04 14:16:38 +000022 clientperm.stdout.exp clientperm.vgtest \
njn10785452003-05-20 16:38:24 +000023 custom_alloc.stderr.exp custom_alloc.vgtest \
sewardjb5f6f512005-03-10 23:59:00 +000024 describe-block.stderr.exp describe-block.vgtest \
njn254d542432002-09-23 16:09:39 +000025 doublefree.stderr.exp doublefree.vgtest \
njn0087c502005-07-01 04:15:36 +000026 erringfds.stderr.exp erringfds.stdout.exp erringfds.vgtest \
njn1140b242003-04-22 20:58:02 +000027 error_counts.stderr.exp error_counts.stdout.exp error_counts.vgtest \
njn254d542432002-09-23 16:09:39 +000028 errs1.stderr.exp errs1.vgtest \
29 exitprog.stderr.exp exitprog.vgtest \
sewardj7aaa59e2005-05-31 19:49:28 +000030 execve.stderr.exp execve.stderr.exp2 execve.vgtest \
31 execve2.stderr.exp execve2.stderr.exp2 execve2.vgtest \
njn254d542432002-09-23 16:09:39 +000032 fprw.stderr.exp fprw.vgtest \
sewardjcbde5ec2005-05-12 18:02:01 +000033 fwrite.stderr.exp fwrite.stderr.exp2 fwrite.stdout.exp fwrite.vgtest \
njn254d542432002-09-23 16:09:39 +000034 inits.stderr.exp inits.vgtest \
35 inline.stderr.exp inline.stdout.exp inline.vgtest \
sewardjb5f6f512005-03-10 23:59:00 +000036 leak-0.vgtest leak-0.stderr.exp \
sewardj1f443862005-05-05 01:29:11 +000037 leak-cycle.vgtest leak-cycle.stderr.exp leak-cycle.stderr.exp64 \
sewardjb8b03e52005-05-23 14:02:51 +000038 leak-tree.vgtest leak-tree.stderr.exp \
39 leak-tree.stderr.exp2 leak-tree.stderr.exp64 \
sewardjb5f6f512005-03-10 23:59:00 +000040 leak-regroot.vgtest leak-regroot.stderr.exp \
41 leakotron.vgtest leakotron.stdout.exp leakotron.stderr.exp \
njn2dc09e62005-08-17 04:03:31 +000042 malloc_usable.stderr.exp malloc_usable.vgtest \
njn254d542432002-09-23 16:09:39 +000043 malloc1.stderr.exp malloc1.vgtest \
44 malloc2.stderr.exp malloc2.vgtest \
njn3e884182003-04-15 13:03:23 +000045 malloc3.stderr.exp malloc3.stdout.exp malloc3.vgtest \
njn254d542432002-09-23 16:09:39 +000046 manuel1.stderr.exp manuel1.stdout.exp manuel1.vgtest \
sewardj1323d1d2005-05-05 01:23:50 +000047 manuel2.stderr.exp manuel2.stderr.exp64 manuel2.stdout.exp manuel2.vgtest \
njn254d542432002-09-23 16:09:39 +000048 manuel3.stderr.exp manuel3.vgtest \
njn499eaad2005-03-11 05:05:50 +000049 match-overrun.stderr.exp match-overrun.vgtest match-overrun.supp \
njn254d542432002-09-23 16:09:39 +000050 memalign_test.stderr.exp memalign_test.vgtest \
nethercote2d5b8162004-08-11 09:40:52 +000051 memalign2.stderr.exp memalign2.vgtest \
njn16eeb4e2005-06-16 03:56:58 +000052 memcmptest.stderr.exp memcmptest.stderr.exp2 \
53 memcmptest.stdout.exp memcmptest.vgtest \
sewardj1f443862005-05-05 01:29:11 +000054 mempool.stderr.exp mempool.stderr.exp64 mempool.vgtest \
sewardj7d32a732005-05-05 01:32:24 +000055 mismatches.stderr.exp mismatches.stderr.exp64 mismatches.vgtest \
njn254d542432002-09-23 16:09:39 +000056 mmaptest.stderr.exp mmaptest.vgtest \
57 nanoleak.stderr.exp nanoleak.vgtest \
njn3e884182003-04-15 13:03:23 +000058 nanoleak_supp.stderr.exp nanoleak_supp.vgtest nanoleak.supp \
njn32a17d12003-10-10 11:01:44 +000059 new_nothrow.stderr.exp new_nothrow.vgtest \
nethercoteea169c02004-07-18 12:05:37 +000060 new_override.stderr.exp new_override.stdout.exp new_override.vgtest \
njn0c5fac82003-05-02 16:19:10 +000061 null_socket.stderr.exp null_socket.vgtest \
sewardjea5cf542003-07-16 19:03:10 +000062 overlap.stderr.exp overlap.stdout.exp overlap.vgtest \
njn7b880bc2005-08-14 22:43:53 +000063 oset_test.stderr.exp oset_test.stdout.exp oset_test.vgtest \
sewardj16031ba2005-07-06 19:01:53 +000064 partiallydefinedeq.vgtest partiallydefinedeq.stderr.exp \
65 partiallydefinedeq.stdout.exp \
njnf4ef1822005-09-24 19:42:41 +000066 pipe.stderr.exp pipe.vgtest \
njn3f7e9112005-06-19 05:43:21 +000067 pointer-trace.vgtest \
sewardj1323d1d2005-05-05 01:23:50 +000068 pointer-trace.stderr.exp pointer-trace.stderr.exp64 \
sewardjb5f6f512005-03-10 23:59:00 +000069 post-syscall.stderr.exp post-syscall.stdout.exp post-syscall.vgtest \
njn254d542432002-09-23 16:09:39 +000070 realloc1.stderr.exp realloc1.vgtest \
71 realloc2.stderr.exp realloc2.vgtest \
njn398044f2003-07-24 17:39:59 +000072 realloc3.stderr.exp realloc3.vgtest \
njn254d542432002-09-23 16:09:39 +000073 sigaltstack.stderr.exp sigaltstack.vgtest \
njn0087c502005-07-01 04:15:36 +000074 sigkill.stderr.exp sigkill.stderr.exp2 sigkill.vgtest \
nethercote7fbe08a2004-11-15 19:03:27 +000075 signal2.stderr.exp signal2.stdout.exp signal2.vgtest \
76 sigprocmask.stderr.exp sigprocmask.vgtest \
njn0087c502005-07-01 04:15:36 +000077 stack_changes.stderr.exp stack_changes.stdout.exp stack_changes.vgtest \
njn16eeb4e2005-06-16 03:56:58 +000078 strchr.stderr.exp strchr.vgtest \
nethercoted91ea072004-11-07 10:58:19 +000079 str_tester.stderr.exp str_tester.vgtest \
njn966d6632005-08-18 15:49:21 +000080 supp_unknown.stderr.exp supp_unknown.vgtest supp_unknown.supp \
njn254d542432002-09-23 16:09:39 +000081 supp1.stderr.exp supp1.vgtest \
82 supp2.stderr.exp supp2.vgtest \
83 supp.supp \
84 suppfree.stderr.exp suppfree.vgtest \
nethercote57e36b32004-07-10 14:56:28 +000085 toobig-allocs.stderr.exp toobig-allocs.vgtest \
njn254d542432002-09-23 16:09:39 +000086 trivialleak.stderr.exp trivialleak.vgtest \
sewardj51a9fe12003-07-07 00:03:52 +000087 weirdioctl.stderr.exp weirdioctl.stdout.exp weirdioctl.vgtest \
njn3f7e9112005-06-19 05:43:21 +000088 metadata.stderr.exp metadata.stdout.exp metadata.vgtest-HIDING \
njnc0392a82005-09-27 19:52:02 +000089 vgtest_ume.stderr.exp vgtest_ume.disabled \
sewardjce7ec7d2005-03-16 13:10:44 +000090 writev.stderr.exp writev.stderr.exp2 writev.stderr.exp3 writev.vgtest \
njn01e755d2005-07-02 21:14:19 +000091 xml1.stderr.exp xml1.stderr.exp2 xml1.stderr.exp64 xml1.stdout.exp \
92 xml1.vgtest \
njn94260f22005-07-02 17:36:11 +000093 zeropage.stderr.exp zeropage.stderr.exp2 zeropage.stdout.exp \
94 zeropage.vgtest
njn254d542432002-09-23 16:09:39 +000095
sewardj45f4e7c2005-09-27 19:20:21 +000096# vgtest_ume is not working
daywalkerc42d8bc2003-04-17 17:00:43 +000097check_PROGRAMS = \
sewardjb5f6f512005-03-10 23:59:00 +000098 addressable \
nethercote4d714382004-10-13 09:47:24 +000099 badaddrvalue badfree badjump badjump2 \
nethercoteeb0592d2004-11-05 12:02:27 +0000100 badloop badpoll badrw brk brk2 buflen_check \
njn7360f8e2003-09-04 20:57:51 +0000101 clientperm custom_alloc \
sewardjb5f6f512005-03-10 23:59:00 +0000102 describe-block \
njn0087c502005-07-01 04:15:36 +0000103 doublefree error_counts errs1 exitprog execve execve2 erringfds \
nethercote4a02e1e2004-10-20 11:43:01 +0000104 fprw fwrite hello inits inline \
sewardjb5f6f512005-03-10 23:59:00 +0000105 leak-0 leak-cycle leak-tree leak-regroot leakotron \
njn2dc09e62005-08-17 04:03:31 +0000106 malloc_usable malloc1 malloc2 malloc3 manuel1 manuel2 manuel3 \
njn499eaad2005-03-11 05:05:50 +0000107 match-overrun \
nethercote2d5b8162004-08-11 09:40:52 +0000108 memalign_test memalign2 memcmptest mempool mmaptest \
109 nanoleak new_nothrow \
njn7b880bc2005-08-14 22:43:53 +0000110 null_socket oset_test overlap \
sewardj16031ba2005-07-06 19:01:53 +0000111 partiallydefinedeq \
njnf4ef1822005-09-24 19:42:41 +0000112 pipe pointer-trace \
sewardjb5f6f512005-03-10 23:59:00 +0000113 post-syscall \
nethercote8b305af2004-11-14 17:58:27 +0000114 realloc1 realloc2 realloc3 \
njn0087c502005-07-01 04:15:36 +0000115 sigaltstack signal2 sigprocmask sigkill \
njn966d6632005-08-18 15:49:21 +0000116 stack_changes strchr str_tester supp_unknown supp1 supp2 suppfree \
nethercote4a02e1e2004-10-20 11:43:01 +0000117 trivialleak weirdioctl \
sewardjf69e0bc2005-05-04 00:26:57 +0000118 mismatches new_override metadata \
sewardj45f4e7c2005-09-27 19:20:21 +0000119 xml1 \
nethercotee65e47b2004-10-14 08:38:06 +0000120 writev zeropage
121
njn25e49d8e72002-09-23 09:36:25 +0000122
njn7b880bc2005-08-14 22:43:53 +0000123AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/coregrind -I$(top_builddir)/include -I@VEX_DIR@/pub
daywalkerc42d8bc2003-04-17 17:00:43 +0000124AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g
125AM_CXXFLAGS = $(AM_CFLAGS)
njn25e49d8e72002-09-23 09:36:25 +0000126
njn5d8a2302005-07-02 18:24:58 +0000127# Extra stuff for C tests
njn036a4912005-03-16 02:49:11 +0000128memcmptest_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcmp
njn7b880bc2005-08-14 22:43:53 +0000129oset_test_CFLAGS = -DVGA_$(VG_ARCH) -DVGO_$(VG_OS) -DVGP_$(VG_PLATFORM)
njn036a4912005-03-16 02:49:11 +0000130# Don't allow GCC to inline memcpy(), because then we can't intercept it
131overlap_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcpy
nethercoted91ea072004-11-07 10:58:19 +0000132str_tester_CFLAGS = $(AM_CFLAGS) -Wno-shadow
njn966d6632005-08-18 15:49:21 +0000133supp_unknown_SOURCES = badjump.c
njn5d8a2302005-07-02 18:24:58 +0000134supp1_SOURCES = supp.c
135supp2_SOURCES = supp.c
njn25e49d8e72002-09-23 09:36:25 +0000136
njn5d8a2302005-07-02 18:24:58 +0000137# C++ tests
njn25e49d8e72002-09-23 09:36:25 +0000138mismatches_SOURCES = mismatches.cpp
njn32a17d12003-10-10 11:01:44 +0000139new_nothrow_SOURCES = new_nothrow.cpp
njn25e49d8e72002-09-23 09:36:25 +0000140new_override_SOURCES = new_override.cpp
141
nethercotee65e47b2004-10-14 08:38:06 +0000142# Valgrind unit self-tests
sewardj45f4e7c2005-09-27 19:20:21 +0000143hello_LDFLAGS = -Wl,-defsym,valt_load_address=0x50000000 \
144 -Wl,-T,$(top_builddir)/valt_load_address.lds
145hello_DEPENDENCIES = $(top_builddir)/valt_load_address.lds
nethercote3f131f12004-10-27 12:05:59 +0000146
sewardj45f4e7c2005-09-27 19:20:21 +0000147# vgtest_ume is not working
148#vgtest_ume_CFLAGS = -DVGA_$(VG_ARCH) -DVGO_$(VG_OS)
149#vgtest_ume_LDADD = ../../coregrind/m_ume.o
nethercotee65e47b2004-10-14 08:38:06 +0000150