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