blob: 99094ae6488559380dc5a9c0e681bf81a1bf896f [file] [log] [blame]
tomef567322005-11-11 14:33:43 +00001SUBDIRS = .
2if VG_X86_LINUX
3SUBDIRS += x86
4endif
5if VG_AMD64_LINUX
6SUBDIRS += amd64
7endif
8if VG_PPC32_LINUX
9SUBDIRS += ppc32
10endif
11
njna5f1bcd2004-11-27 16:47:42 +000012DIST_SUBDIRS = ${VG_ARCH_ALL} .
njn25e49d8e72002-09-23 09:36:25 +000013
njnd0eab5f2003-09-30 16:52:47 +000014noinst_SCRIPTS = filter_allocs filter_leak_check_size \
sewardjebf67cc2005-05-24 14:46:02 +000015 filter_stderr filter_stderr_backtrace filter_xml
daywalker677e0612003-04-24 00:40:38 +000016
njna63e2d72003-06-12 14:13:05 +000017EXTRA_DIST = $(noinst_SCRIPTS) \
sewardjb5f6f512005-03-10 23:59:00 +000018 addressable.stderr.exp addressable.stdout.exp addressable.vgtest \
njnd8ced862003-04-08 00:47:05 +000019 badaddrvalue.stderr.exp \
njn254d542432002-09-23 16:09:39 +000020 badaddrvalue.stdout.exp badaddrvalue.vgtest \
21 badfree-2trace.stderr.exp badfree-2trace.vgtest \
22 badfree.stderr.exp badfree.vgtest \
23 badjump.stderr.exp badjump.vgtest \
nethercote4d714382004-10-13 09:47:24 +000024 badjump2.stderr.exp badjump2.vgtest \
njn254d542432002-09-23 16:09:39 +000025 badloop.stderr.exp badloop.vgtest \
nethercoteeb0592d2004-11-05 12:02:27 +000026 badpoll.stderr.exp badpoll.vgtest \
njnc2699f62003-09-05 23:29:33 +000027 badrw.stderr.exp badrw.vgtest \
njn7360f8e2003-09-04 20:57:51 +000028 brk.stderr.exp brk.vgtest \
nethercotece471262004-08-25 13:43:44 +000029 brk2.stderr.exp brk2.vgtest \
sewardjf0814a02005-05-04 12:27:48 +000030 buflen_check.stderr.exp buflen_check.stderr.exp2 buflen_check.vgtest \
njnd8ced862003-04-08 00:47:05 +000031 clientperm.stderr.exp \
njn4d5490d2002-10-04 14:16:38 +000032 clientperm.stdout.exp clientperm.vgtest \
njn10785452003-05-20 16:38:24 +000033 custom_alloc.stderr.exp custom_alloc.vgtest \
sewardjb5f6f512005-03-10 23:59:00 +000034 describe-block.stderr.exp describe-block.vgtest \
njn254d542432002-09-23 16:09:39 +000035 doublefree.stderr.exp doublefree.vgtest \
njn0087c502005-07-01 04:15:36 +000036 erringfds.stderr.exp erringfds.stdout.exp erringfds.vgtest \
njn1140b242003-04-22 20:58:02 +000037 error_counts.stderr.exp error_counts.stdout.exp error_counts.vgtest \
njn254d542432002-09-23 16:09:39 +000038 errs1.stderr.exp errs1.vgtest \
39 exitprog.stderr.exp exitprog.vgtest \
sewardj7aaa59e2005-05-31 19:49:28 +000040 execve.stderr.exp execve.stderr.exp2 execve.vgtest \
41 execve2.stderr.exp execve2.stderr.exp2 execve2.vgtest \
njn254d542432002-09-23 16:09:39 +000042 fprw.stderr.exp fprw.vgtest \
sewardj45a6abb2005-11-08 01:24:23 +000043 fwrite.stderr.exp fwrite.stderr.exp2 fwrite.vgtest \
njn254d542432002-09-23 16:09:39 +000044 inits.stderr.exp inits.vgtest \
45 inline.stderr.exp inline.stdout.exp inline.vgtest \
sewardjb5f6f512005-03-10 23:59:00 +000046 leak-0.vgtest leak-0.stderr.exp \
sewardj1f443862005-05-05 01:29:11 +000047 leak-cycle.vgtest leak-cycle.stderr.exp leak-cycle.stderr.exp64 \
sewardjb8b03e52005-05-23 14:02:51 +000048 leak-tree.vgtest leak-tree.stderr.exp \
49 leak-tree.stderr.exp2 leak-tree.stderr.exp64 \
sewardjb5f6f512005-03-10 23:59:00 +000050 leak-regroot.vgtest leak-regroot.stderr.exp \
51 leakotron.vgtest leakotron.stdout.exp leakotron.stderr.exp \
njn2dc09e62005-08-17 04:03:31 +000052 malloc_usable.stderr.exp malloc_usable.vgtest \
njn254d542432002-09-23 16:09:39 +000053 malloc1.stderr.exp malloc1.vgtest \
54 malloc2.stderr.exp malloc2.vgtest \
njn3e884182003-04-15 13:03:23 +000055 malloc3.stderr.exp malloc3.stdout.exp malloc3.vgtest \
njn254d542432002-09-23 16:09:39 +000056 manuel1.stderr.exp manuel1.stdout.exp manuel1.vgtest \
sewardj1323d1d2005-05-05 01:23:50 +000057 manuel2.stderr.exp manuel2.stderr.exp64 manuel2.stdout.exp manuel2.vgtest \
njn254d542432002-09-23 16:09:39 +000058 manuel3.stderr.exp manuel3.vgtest \
njn499eaad2005-03-11 05:05:50 +000059 match-overrun.stderr.exp match-overrun.vgtest match-overrun.supp \
njn254d542432002-09-23 16:09:39 +000060 memalign_test.stderr.exp memalign_test.vgtest \
nethercote2d5b8162004-08-11 09:40:52 +000061 memalign2.stderr.exp memalign2.vgtest \
njn16eeb4e2005-06-16 03:56:58 +000062 memcmptest.stderr.exp memcmptest.stderr.exp2 \
63 memcmptest.stdout.exp memcmptest.vgtest \
sewardj1f443862005-05-05 01:29:11 +000064 mempool.stderr.exp mempool.stderr.exp64 mempool.vgtest \
sewardj7d32a732005-05-05 01:32:24 +000065 mismatches.stderr.exp mismatches.stderr.exp64 mismatches.vgtest \
njn254d542432002-09-23 16:09:39 +000066 mmaptest.stderr.exp mmaptest.vgtest \
67 nanoleak.stderr.exp nanoleak.vgtest \
njn3e884182003-04-15 13:03:23 +000068 nanoleak_supp.stderr.exp nanoleak_supp.vgtest nanoleak.supp \
njn32a17d12003-10-10 11:01:44 +000069 new_nothrow.stderr.exp new_nothrow.vgtest \
nethercoteea169c02004-07-18 12:05:37 +000070 new_override.stderr.exp new_override.stdout.exp new_override.vgtest \
njn0c5fac82003-05-02 16:19:10 +000071 null_socket.stderr.exp null_socket.vgtest \
sewardjea5cf542003-07-16 19:03:10 +000072 overlap.stderr.exp overlap.stdout.exp overlap.vgtest \
njn7b880bc2005-08-14 22:43:53 +000073 oset_test.stderr.exp oset_test.stdout.exp oset_test.vgtest \
sewardj16031ba2005-07-06 19:01:53 +000074 partiallydefinedeq.vgtest partiallydefinedeq.stderr.exp \
75 partiallydefinedeq.stdout.exp \
sewardje07b83e2005-11-08 13:20:24 +000076 partial_load_ok.vgtest partial_load_ok.stderr.exp \
77 partial_load_dflt.vgtest partial_load_dflt.stderr.exp \
njnf4ef1822005-09-24 19:42:41 +000078 pipe.stderr.exp pipe.vgtest \
njn3f7e9112005-06-19 05:43:21 +000079 pointer-trace.vgtest \
sewardj1323d1d2005-05-05 01:23:50 +000080 pointer-trace.stderr.exp pointer-trace.stderr.exp64 \
sewardjb5f6f512005-03-10 23:59:00 +000081 post-syscall.stderr.exp post-syscall.stdout.exp post-syscall.vgtest \
njn254d542432002-09-23 16:09:39 +000082 realloc1.stderr.exp realloc1.vgtest \
83 realloc2.stderr.exp realloc2.vgtest \
njn398044f2003-07-24 17:39:59 +000084 realloc3.stderr.exp realloc3.vgtest \
njn254d542432002-09-23 16:09:39 +000085 sigaltstack.stderr.exp sigaltstack.vgtest \
njn0087c502005-07-01 04:15:36 +000086 sigkill.stderr.exp sigkill.stderr.exp2 sigkill.vgtest \
nethercote7fbe08a2004-11-15 19:03:27 +000087 signal2.stderr.exp signal2.stdout.exp signal2.vgtest \
tom42d63672005-11-02 15:46:07 +000088 sigprocmask.stderr.exp sigprocmask.stderr.exp2 sigprocmask.vgtest \
njn0087c502005-07-01 04:15:36 +000089 stack_changes.stderr.exp stack_changes.stdout.exp stack_changes.vgtest \
tom81afd4b2005-11-02 15:17:43 +000090 strchr.stderr.exp strchr.stderr.exp2 strchr.vgtest \
nethercoted91ea072004-11-07 10:58:19 +000091 str_tester.stderr.exp str_tester.vgtest \
njn966d6632005-08-18 15:49:21 +000092 supp_unknown.stderr.exp supp_unknown.vgtest supp_unknown.supp \
njn254d542432002-09-23 16:09:39 +000093 supp1.stderr.exp supp1.vgtest \
94 supp2.stderr.exp supp2.vgtest \
95 supp.supp \
96 suppfree.stderr.exp suppfree.vgtest \
nethercote57e36b32004-07-10 14:56:28 +000097 toobig-allocs.stderr.exp toobig-allocs.vgtest \
njn254d542432002-09-23 16:09:39 +000098 trivialleak.stderr.exp trivialleak.vgtest \
njn3f7e9112005-06-19 05:43:21 +000099 metadata.stderr.exp metadata.stdout.exp metadata.vgtest-HIDING \
njnc0392a82005-09-27 19:52:02 +0000100 vgtest_ume.stderr.exp vgtest_ume.disabled \
sewardjce7ec7d2005-03-16 13:10:44 +0000101 writev.stderr.exp writev.stderr.exp2 writev.stderr.exp3 writev.vgtest \
tom81afd4b2005-11-02 15:17:43 +0000102 xml1.stderr.exp xml1.stderr.exp2 xml1.stderr.exp3 \
103 xml1.stderr.exp64 xml1.stderr.exp64_2 xml1.stdout.exp \
njn01e755d2005-07-02 21:14:19 +0000104 xml1.vgtest \
njn94260f22005-07-02 17:36:11 +0000105 zeropage.stderr.exp zeropage.stderr.exp2 zeropage.stdout.exp \
106 zeropage.vgtest
njn254d542432002-09-23 16:09:39 +0000107
sewardj45f4e7c2005-09-27 19:20:21 +0000108# vgtest_ume is not working
daywalkerc42d8bc2003-04-17 17:00:43 +0000109check_PROGRAMS = \
sewardjb5f6f512005-03-10 23:59:00 +0000110 addressable \
nethercote4d714382004-10-13 09:47:24 +0000111 badaddrvalue badfree badjump badjump2 \
nethercoteeb0592d2004-11-05 12:02:27 +0000112 badloop badpoll badrw brk brk2 buflen_check \
njn7360f8e2003-09-04 20:57:51 +0000113 clientperm custom_alloc \
sewardjb5f6f512005-03-10 23:59:00 +0000114 describe-block \
njn0087c502005-07-01 04:15:36 +0000115 doublefree error_counts errs1 exitprog execve execve2 erringfds \
nethercote4a02e1e2004-10-20 11:43:01 +0000116 fprw fwrite hello inits inline \
sewardjb5f6f512005-03-10 23:59:00 +0000117 leak-0 leak-cycle leak-tree leak-regroot leakotron \
njn2dc09e62005-08-17 04:03:31 +0000118 malloc_usable malloc1 malloc2 malloc3 manuel1 manuel2 manuel3 \
njn499eaad2005-03-11 05:05:50 +0000119 match-overrun \
nethercote2d5b8162004-08-11 09:40:52 +0000120 memalign_test memalign2 memcmptest mempool mmaptest \
121 nanoleak new_nothrow \
njn7b880bc2005-08-14 22:43:53 +0000122 null_socket oset_test overlap \
sewardj16031ba2005-07-06 19:01:53 +0000123 partiallydefinedeq \
sewardje07b83e2005-11-08 13:20:24 +0000124 partial_load \
njnf4ef1822005-09-24 19:42:41 +0000125 pipe pointer-trace \
sewardjb5f6f512005-03-10 23:59:00 +0000126 post-syscall \
nethercote8b305af2004-11-14 17:58:27 +0000127 realloc1 realloc2 realloc3 \
njn0087c502005-07-01 04:15:36 +0000128 sigaltstack signal2 sigprocmask sigkill \
njn966d6632005-08-18 15:49:21 +0000129 stack_changes strchr str_tester supp_unknown supp1 supp2 suppfree \
tom8e9cb432005-11-02 13:58:39 +0000130 trivialleak \
sewardjf69e0bc2005-05-04 00:26:57 +0000131 mismatches new_override metadata \
sewardj45f4e7c2005-09-27 19:20:21 +0000132 xml1 \
nethercotee65e47b2004-10-14 08:38:06 +0000133 writev zeropage
134
njn25e49d8e72002-09-23 09:36:25 +0000135
njn7b880bc2005-08-14 22:43:53 +0000136AM_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 +0000137AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g
138AM_CXXFLAGS = $(AM_CFLAGS)
njn25e49d8e72002-09-23 09:36:25 +0000139
njn5d8a2302005-07-02 18:24:58 +0000140# Extra stuff for C tests
njn036a4912005-03-16 02:49:11 +0000141memcmptest_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcmp
njn7b880bc2005-08-14 22:43:53 +0000142oset_test_CFLAGS = -DVGA_$(VG_ARCH) -DVGO_$(VG_OS) -DVGP_$(VG_PLATFORM)
njn036a4912005-03-16 02:49:11 +0000143# Don't allow GCC to inline memcpy(), because then we can't intercept it
144overlap_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcpy
nethercoted91ea072004-11-07 10:58:19 +0000145str_tester_CFLAGS = $(AM_CFLAGS) -Wno-shadow
njn966d6632005-08-18 15:49:21 +0000146supp_unknown_SOURCES = badjump.c
njn5d8a2302005-07-02 18:24:58 +0000147supp1_SOURCES = supp.c
148supp2_SOURCES = supp.c
njn25e49d8e72002-09-23 09:36:25 +0000149
njn5d8a2302005-07-02 18:24:58 +0000150# C++ tests
njn25e49d8e72002-09-23 09:36:25 +0000151mismatches_SOURCES = mismatches.cpp
njn32a17d12003-10-10 11:01:44 +0000152new_nothrow_SOURCES = new_nothrow.cpp
njn25e49d8e72002-09-23 09:36:25 +0000153new_override_SOURCES = new_override.cpp
154
nethercotee65e47b2004-10-14 08:38:06 +0000155# Valgrind unit self-tests
tomfb7bcde2005-11-07 15:24:38 +0000156#hello_LDFLAGS = -Wl,-defsym,valt_load_address=0x50000000 \
157# -Wl,-T,$(top_builddir)/valt_load_address.lds
158#hello_DEPENDENCIES = $(top_builddir)/valt_load_address.lds
nethercote3f131f12004-10-27 12:05:59 +0000159
sewardj45f4e7c2005-09-27 19:20:21 +0000160# vgtest_ume is not working
161#vgtest_ume_CFLAGS = -DVGA_$(VG_ARCH) -DVGO_$(VG_OS)
162#vgtest_ume_LDADD = ../../coregrind/m_ume.o
nethercotee65e47b2004-10-14 08:38:06 +0000163