tom | ef56732 | 2005-11-11 14:33:43 +0000 | [diff] [blame^] | 1 | SUBDIRS = . |
| 2 | if VG_X86_LINUX |
| 3 | SUBDIRS += x86 |
| 4 | endif |
| 5 | if VG_AMD64_LINUX |
| 6 | SUBDIRS += amd64 |
| 7 | endif |
| 8 | if VG_PPC32_LINUX |
| 9 | SUBDIRS += ppc32 |
| 10 | endif |
| 11 | |
njn | a5f1bcd | 2004-11-27 16:47:42 +0000 | [diff] [blame] | 12 | DIST_SUBDIRS = ${VG_ARCH_ALL} . |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 13 | |
njn | d0eab5f | 2003-09-30 16:52:47 +0000 | [diff] [blame] | 14 | noinst_SCRIPTS = filter_allocs filter_leak_check_size \ |
sewardj | ebf67cc | 2005-05-24 14:46:02 +0000 | [diff] [blame] | 15 | filter_stderr filter_stderr_backtrace filter_xml |
daywalker | 677e061 | 2003-04-24 00:40:38 +0000 | [diff] [blame] | 16 | |
njn | a63e2d7 | 2003-06-12 14:13:05 +0000 | [diff] [blame] | 17 | EXTRA_DIST = $(noinst_SCRIPTS) \ |
sewardj | b5f6f51 | 2005-03-10 23:59:00 +0000 | [diff] [blame] | 18 | addressable.stderr.exp addressable.stdout.exp addressable.vgtest \ |
njn | d8ced86 | 2003-04-08 00:47:05 +0000 | [diff] [blame] | 19 | badaddrvalue.stderr.exp \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 20 | 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 \ |
nethercote | 4d71438 | 2004-10-13 09:47:24 +0000 | [diff] [blame] | 24 | badjump2.stderr.exp badjump2.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 25 | badloop.stderr.exp badloop.vgtest \ |
nethercote | eb0592d | 2004-11-05 12:02:27 +0000 | [diff] [blame] | 26 | badpoll.stderr.exp badpoll.vgtest \ |
njn | c2699f6 | 2003-09-05 23:29:33 +0000 | [diff] [blame] | 27 | badrw.stderr.exp badrw.vgtest \ |
njn | 7360f8e | 2003-09-04 20:57:51 +0000 | [diff] [blame] | 28 | brk.stderr.exp brk.vgtest \ |
nethercote | ce47126 | 2004-08-25 13:43:44 +0000 | [diff] [blame] | 29 | brk2.stderr.exp brk2.vgtest \ |
sewardj | f0814a0 | 2005-05-04 12:27:48 +0000 | [diff] [blame] | 30 | buflen_check.stderr.exp buflen_check.stderr.exp2 buflen_check.vgtest \ |
njn | d8ced86 | 2003-04-08 00:47:05 +0000 | [diff] [blame] | 31 | clientperm.stderr.exp \ |
njn | 4d5490d | 2002-10-04 14:16:38 +0000 | [diff] [blame] | 32 | clientperm.stdout.exp clientperm.vgtest \ |
njn | 1078545 | 2003-05-20 16:38:24 +0000 | [diff] [blame] | 33 | custom_alloc.stderr.exp custom_alloc.vgtest \ |
sewardj | b5f6f51 | 2005-03-10 23:59:00 +0000 | [diff] [blame] | 34 | describe-block.stderr.exp describe-block.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 35 | doublefree.stderr.exp doublefree.vgtest \ |
njn | 0087c50 | 2005-07-01 04:15:36 +0000 | [diff] [blame] | 36 | erringfds.stderr.exp erringfds.stdout.exp erringfds.vgtest \ |
njn | 1140b24 | 2003-04-22 20:58:02 +0000 | [diff] [blame] | 37 | error_counts.stderr.exp error_counts.stdout.exp error_counts.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 38 | errs1.stderr.exp errs1.vgtest \ |
| 39 | exitprog.stderr.exp exitprog.vgtest \ |
sewardj | 7aaa59e | 2005-05-31 19:49:28 +0000 | [diff] [blame] | 40 | execve.stderr.exp execve.stderr.exp2 execve.vgtest \ |
| 41 | execve2.stderr.exp execve2.stderr.exp2 execve2.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 42 | fprw.stderr.exp fprw.vgtest \ |
sewardj | 45a6abb | 2005-11-08 01:24:23 +0000 | [diff] [blame] | 43 | fwrite.stderr.exp fwrite.stderr.exp2 fwrite.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 44 | inits.stderr.exp inits.vgtest \ |
| 45 | inline.stderr.exp inline.stdout.exp inline.vgtest \ |
sewardj | b5f6f51 | 2005-03-10 23:59:00 +0000 | [diff] [blame] | 46 | leak-0.vgtest leak-0.stderr.exp \ |
sewardj | 1f44386 | 2005-05-05 01:29:11 +0000 | [diff] [blame] | 47 | leak-cycle.vgtest leak-cycle.stderr.exp leak-cycle.stderr.exp64 \ |
sewardj | b8b03e5 | 2005-05-23 14:02:51 +0000 | [diff] [blame] | 48 | leak-tree.vgtest leak-tree.stderr.exp \ |
| 49 | leak-tree.stderr.exp2 leak-tree.stderr.exp64 \ |
sewardj | b5f6f51 | 2005-03-10 23:59:00 +0000 | [diff] [blame] | 50 | leak-regroot.vgtest leak-regroot.stderr.exp \ |
| 51 | leakotron.vgtest leakotron.stdout.exp leakotron.stderr.exp \ |
njn | 2dc09e6 | 2005-08-17 04:03:31 +0000 | [diff] [blame] | 52 | malloc_usable.stderr.exp malloc_usable.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 53 | malloc1.stderr.exp malloc1.vgtest \ |
| 54 | malloc2.stderr.exp malloc2.vgtest \ |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 55 | malloc3.stderr.exp malloc3.stdout.exp malloc3.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 56 | manuel1.stderr.exp manuel1.stdout.exp manuel1.vgtest \ |
sewardj | 1323d1d | 2005-05-05 01:23:50 +0000 | [diff] [blame] | 57 | manuel2.stderr.exp manuel2.stderr.exp64 manuel2.stdout.exp manuel2.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 58 | manuel3.stderr.exp manuel3.vgtest \ |
njn | 499eaad | 2005-03-11 05:05:50 +0000 | [diff] [blame] | 59 | match-overrun.stderr.exp match-overrun.vgtest match-overrun.supp \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 60 | memalign_test.stderr.exp memalign_test.vgtest \ |
nethercote | 2d5b816 | 2004-08-11 09:40:52 +0000 | [diff] [blame] | 61 | memalign2.stderr.exp memalign2.vgtest \ |
njn | 16eeb4e | 2005-06-16 03:56:58 +0000 | [diff] [blame] | 62 | memcmptest.stderr.exp memcmptest.stderr.exp2 \ |
| 63 | memcmptest.stdout.exp memcmptest.vgtest \ |
sewardj | 1f44386 | 2005-05-05 01:29:11 +0000 | [diff] [blame] | 64 | mempool.stderr.exp mempool.stderr.exp64 mempool.vgtest \ |
sewardj | 7d32a73 | 2005-05-05 01:32:24 +0000 | [diff] [blame] | 65 | mismatches.stderr.exp mismatches.stderr.exp64 mismatches.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 66 | mmaptest.stderr.exp mmaptest.vgtest \ |
| 67 | nanoleak.stderr.exp nanoleak.vgtest \ |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 68 | nanoleak_supp.stderr.exp nanoleak_supp.vgtest nanoleak.supp \ |
njn | 32a17d1 | 2003-10-10 11:01:44 +0000 | [diff] [blame] | 69 | new_nothrow.stderr.exp new_nothrow.vgtest \ |
nethercote | ea169c0 | 2004-07-18 12:05:37 +0000 | [diff] [blame] | 70 | new_override.stderr.exp new_override.stdout.exp new_override.vgtest \ |
njn | 0c5fac8 | 2003-05-02 16:19:10 +0000 | [diff] [blame] | 71 | null_socket.stderr.exp null_socket.vgtest \ |
sewardj | ea5cf54 | 2003-07-16 19:03:10 +0000 | [diff] [blame] | 72 | overlap.stderr.exp overlap.stdout.exp overlap.vgtest \ |
njn | 7b880bc | 2005-08-14 22:43:53 +0000 | [diff] [blame] | 73 | oset_test.stderr.exp oset_test.stdout.exp oset_test.vgtest \ |
sewardj | 16031ba | 2005-07-06 19:01:53 +0000 | [diff] [blame] | 74 | partiallydefinedeq.vgtest partiallydefinedeq.stderr.exp \ |
| 75 | partiallydefinedeq.stdout.exp \ |
sewardj | e07b83e | 2005-11-08 13:20:24 +0000 | [diff] [blame] | 76 | partial_load_ok.vgtest partial_load_ok.stderr.exp \ |
| 77 | partial_load_dflt.vgtest partial_load_dflt.stderr.exp \ |
njn | f4ef182 | 2005-09-24 19:42:41 +0000 | [diff] [blame] | 78 | pipe.stderr.exp pipe.vgtest \ |
njn | 3f7e911 | 2005-06-19 05:43:21 +0000 | [diff] [blame] | 79 | pointer-trace.vgtest \ |
sewardj | 1323d1d | 2005-05-05 01:23:50 +0000 | [diff] [blame] | 80 | pointer-trace.stderr.exp pointer-trace.stderr.exp64 \ |
sewardj | b5f6f51 | 2005-03-10 23:59:00 +0000 | [diff] [blame] | 81 | post-syscall.stderr.exp post-syscall.stdout.exp post-syscall.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 82 | realloc1.stderr.exp realloc1.vgtest \ |
| 83 | realloc2.stderr.exp realloc2.vgtest \ |
njn | 398044f | 2003-07-24 17:39:59 +0000 | [diff] [blame] | 84 | realloc3.stderr.exp realloc3.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 85 | sigaltstack.stderr.exp sigaltstack.vgtest \ |
njn | 0087c50 | 2005-07-01 04:15:36 +0000 | [diff] [blame] | 86 | sigkill.stderr.exp sigkill.stderr.exp2 sigkill.vgtest \ |
nethercote | 7fbe08a | 2004-11-15 19:03:27 +0000 | [diff] [blame] | 87 | signal2.stderr.exp signal2.stdout.exp signal2.vgtest \ |
tom | 42d6367 | 2005-11-02 15:46:07 +0000 | [diff] [blame] | 88 | sigprocmask.stderr.exp sigprocmask.stderr.exp2 sigprocmask.vgtest \ |
njn | 0087c50 | 2005-07-01 04:15:36 +0000 | [diff] [blame] | 89 | stack_changes.stderr.exp stack_changes.stdout.exp stack_changes.vgtest \ |
tom | 81afd4b | 2005-11-02 15:17:43 +0000 | [diff] [blame] | 90 | strchr.stderr.exp strchr.stderr.exp2 strchr.vgtest \ |
nethercote | d91ea07 | 2004-11-07 10:58:19 +0000 | [diff] [blame] | 91 | str_tester.stderr.exp str_tester.vgtest \ |
njn | 966d663 | 2005-08-18 15:49:21 +0000 | [diff] [blame] | 92 | supp_unknown.stderr.exp supp_unknown.vgtest supp_unknown.supp \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 93 | supp1.stderr.exp supp1.vgtest \ |
| 94 | supp2.stderr.exp supp2.vgtest \ |
| 95 | supp.supp \ |
| 96 | suppfree.stderr.exp suppfree.vgtest \ |
nethercote | 57e36b3 | 2004-07-10 14:56:28 +0000 | [diff] [blame] | 97 | toobig-allocs.stderr.exp toobig-allocs.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 98 | trivialleak.stderr.exp trivialleak.vgtest \ |
njn | 3f7e911 | 2005-06-19 05:43:21 +0000 | [diff] [blame] | 99 | metadata.stderr.exp metadata.stdout.exp metadata.vgtest-HIDING \ |
njn | c0392a8 | 2005-09-27 19:52:02 +0000 | [diff] [blame] | 100 | vgtest_ume.stderr.exp vgtest_ume.disabled \ |
sewardj | ce7ec7d | 2005-03-16 13:10:44 +0000 | [diff] [blame] | 101 | writev.stderr.exp writev.stderr.exp2 writev.stderr.exp3 writev.vgtest \ |
tom | 81afd4b | 2005-11-02 15:17:43 +0000 | [diff] [blame] | 102 | xml1.stderr.exp xml1.stderr.exp2 xml1.stderr.exp3 \ |
| 103 | xml1.stderr.exp64 xml1.stderr.exp64_2 xml1.stdout.exp \ |
njn | 01e755d | 2005-07-02 21:14:19 +0000 | [diff] [blame] | 104 | xml1.vgtest \ |
njn | 94260f2 | 2005-07-02 17:36:11 +0000 | [diff] [blame] | 105 | zeropage.stderr.exp zeropage.stderr.exp2 zeropage.stdout.exp \ |
| 106 | zeropage.vgtest |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 107 | |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 108 | # vgtest_ume is not working |
daywalker | c42d8bc | 2003-04-17 17:00:43 +0000 | [diff] [blame] | 109 | check_PROGRAMS = \ |
sewardj | b5f6f51 | 2005-03-10 23:59:00 +0000 | [diff] [blame] | 110 | addressable \ |
nethercote | 4d71438 | 2004-10-13 09:47:24 +0000 | [diff] [blame] | 111 | badaddrvalue badfree badjump badjump2 \ |
nethercote | eb0592d | 2004-11-05 12:02:27 +0000 | [diff] [blame] | 112 | badloop badpoll badrw brk brk2 buflen_check \ |
njn | 7360f8e | 2003-09-04 20:57:51 +0000 | [diff] [blame] | 113 | clientperm custom_alloc \ |
sewardj | b5f6f51 | 2005-03-10 23:59:00 +0000 | [diff] [blame] | 114 | describe-block \ |
njn | 0087c50 | 2005-07-01 04:15:36 +0000 | [diff] [blame] | 115 | doublefree error_counts errs1 exitprog execve execve2 erringfds \ |
nethercote | 4a02e1e | 2004-10-20 11:43:01 +0000 | [diff] [blame] | 116 | fprw fwrite hello inits inline \ |
sewardj | b5f6f51 | 2005-03-10 23:59:00 +0000 | [diff] [blame] | 117 | leak-0 leak-cycle leak-tree leak-regroot leakotron \ |
njn | 2dc09e6 | 2005-08-17 04:03:31 +0000 | [diff] [blame] | 118 | malloc_usable malloc1 malloc2 malloc3 manuel1 manuel2 manuel3 \ |
njn | 499eaad | 2005-03-11 05:05:50 +0000 | [diff] [blame] | 119 | match-overrun \ |
nethercote | 2d5b816 | 2004-08-11 09:40:52 +0000 | [diff] [blame] | 120 | memalign_test memalign2 memcmptest mempool mmaptest \ |
| 121 | nanoleak new_nothrow \ |
njn | 7b880bc | 2005-08-14 22:43:53 +0000 | [diff] [blame] | 122 | null_socket oset_test overlap \ |
sewardj | 16031ba | 2005-07-06 19:01:53 +0000 | [diff] [blame] | 123 | partiallydefinedeq \ |
sewardj | e07b83e | 2005-11-08 13:20:24 +0000 | [diff] [blame] | 124 | partial_load \ |
njn | f4ef182 | 2005-09-24 19:42:41 +0000 | [diff] [blame] | 125 | pipe pointer-trace \ |
sewardj | b5f6f51 | 2005-03-10 23:59:00 +0000 | [diff] [blame] | 126 | post-syscall \ |
nethercote | 8b305af | 2004-11-14 17:58:27 +0000 | [diff] [blame] | 127 | realloc1 realloc2 realloc3 \ |
njn | 0087c50 | 2005-07-01 04:15:36 +0000 | [diff] [blame] | 128 | sigaltstack signal2 sigprocmask sigkill \ |
njn | 966d663 | 2005-08-18 15:49:21 +0000 | [diff] [blame] | 129 | stack_changes strchr str_tester supp_unknown supp1 supp2 suppfree \ |
tom | 8e9cb43 | 2005-11-02 13:58:39 +0000 | [diff] [blame] | 130 | trivialleak \ |
sewardj | f69e0bc | 2005-05-04 00:26:57 +0000 | [diff] [blame] | 131 | mismatches new_override metadata \ |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 132 | xml1 \ |
nethercote | e65e47b | 2004-10-14 08:38:06 +0000 | [diff] [blame] | 133 | writev zeropage |
| 134 | |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 135 | |
njn | 7b880bc | 2005-08-14 22:43:53 +0000 | [diff] [blame] | 136 | AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_srcdir)/coregrind -I$(top_builddir)/include -I@VEX_DIR@/pub |
daywalker | c42d8bc | 2003-04-17 17:00:43 +0000 | [diff] [blame] | 137 | AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g |
| 138 | AM_CXXFLAGS = $(AM_CFLAGS) |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 139 | |
njn | 5d8a230 | 2005-07-02 18:24:58 +0000 | [diff] [blame] | 140 | # Extra stuff for C tests |
njn | 036a491 | 2005-03-16 02:49:11 +0000 | [diff] [blame] | 141 | memcmptest_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcmp |
njn | 7b880bc | 2005-08-14 22:43:53 +0000 | [diff] [blame] | 142 | oset_test_CFLAGS = -DVGA_$(VG_ARCH) -DVGO_$(VG_OS) -DVGP_$(VG_PLATFORM) |
njn | 036a491 | 2005-03-16 02:49:11 +0000 | [diff] [blame] | 143 | # Don't allow GCC to inline memcpy(), because then we can't intercept it |
| 144 | overlap_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcpy |
nethercote | d91ea07 | 2004-11-07 10:58:19 +0000 | [diff] [blame] | 145 | str_tester_CFLAGS = $(AM_CFLAGS) -Wno-shadow |
njn | 966d663 | 2005-08-18 15:49:21 +0000 | [diff] [blame] | 146 | supp_unknown_SOURCES = badjump.c |
njn | 5d8a230 | 2005-07-02 18:24:58 +0000 | [diff] [blame] | 147 | supp1_SOURCES = supp.c |
| 148 | supp2_SOURCES = supp.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 149 | |
njn | 5d8a230 | 2005-07-02 18:24:58 +0000 | [diff] [blame] | 150 | # C++ tests |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 151 | mismatches_SOURCES = mismatches.cpp |
njn | 32a17d1 | 2003-10-10 11:01:44 +0000 | [diff] [blame] | 152 | new_nothrow_SOURCES = new_nothrow.cpp |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 153 | new_override_SOURCES = new_override.cpp |
| 154 | |
nethercote | e65e47b | 2004-10-14 08:38:06 +0000 | [diff] [blame] | 155 | # Valgrind unit self-tests |
tom | fb7bcde | 2005-11-07 15:24:38 +0000 | [diff] [blame] | 156 | #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 |
nethercote | 3f131f1 | 2004-10-27 12:05:59 +0000 | [diff] [blame] | 159 | |
sewardj | 45f4e7c | 2005-09-27 19:20:21 +0000 | [diff] [blame] | 160 | # vgtest_ume is not working |
| 161 | #vgtest_ume_CFLAGS = -DVGA_$(VG_ARCH) -DVGO_$(VG_OS) |
| 162 | #vgtest_ume_LDADD = ../../coregrind/m_ume.o |
nethercote | e65e47b | 2004-10-14 08:38:06 +0000 | [diff] [blame] | 163 | |