njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 1 | ##--------------------------------------------------------------------------- |
| 2 | ## Need more tests: |
| 3 | ## - lots more mmap/munmap/mremap/mprotect ones |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 4 | ##--------------------------------------------------------------------------- |
| 5 | |
njn | d0eab5f | 2003-09-30 16:52:47 +0000 | [diff] [blame] | 6 | noinst_SCRIPTS = filter_allocs filter_leak_check_size \ |
njn | a2c92ed | 2003-06-29 10:12:58 +0000 | [diff] [blame] | 7 | filter_stderr filter_stderr_backtrace filter_pushfpopf \ |
| 8 | filter_tronical |
daywalker | 677e061 | 2003-04-24 00:40:38 +0000 | [diff] [blame] | 9 | |
thughes | b76f0dc | 2004-03-27 18:02:37 +0000 | [diff] [blame] | 10 | INSN_TESTS=insn_basic insn_fpu insn_cmov insn_mmx insn_mmxext insn_sse insn_sse2 |
fitzhardinge | e3c6b6f | 2004-03-12 10:51:39 +0000 | [diff] [blame] | 11 | |
njn | a63e2d7 | 2003-06-12 14:13:05 +0000 | [diff] [blame] | 12 | EXTRA_DIST = $(noinst_SCRIPTS) \ |
njn | d8ced86 | 2003-04-08 00:47:05 +0000 | [diff] [blame] | 13 | badaddrvalue.stderr.exp \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 14 | badaddrvalue.stdout.exp badaddrvalue.vgtest \ |
| 15 | badfree-2trace.stderr.exp badfree-2trace.vgtest \ |
| 16 | badfree.stderr.exp badfree.vgtest \ |
| 17 | badjump.stderr.exp badjump.vgtest \ |
| 18 | badloop.stderr.exp badloop.vgtest \ |
njn | c2699f6 | 2003-09-05 23:29:33 +0000 | [diff] [blame] | 19 | badrw.stderr.exp badrw.vgtest \ |
njn | 7360f8e | 2003-09-04 20:57:51 +0000 | [diff] [blame] | 20 | brk.stderr.exp brk.vgtest \ |
njn | d8ced86 | 2003-04-08 00:47:05 +0000 | [diff] [blame] | 21 | buflen_check.stderr.exp buflen_check.vgtest \ |
| 22 | clientperm.stderr.exp \ |
njn | 4d5490d | 2002-10-04 14:16:38 +0000 | [diff] [blame] | 23 | clientperm.stdout.exp clientperm.vgtest \ |
njn | 1078545 | 2003-05-20 16:38:24 +0000 | [diff] [blame] | 24 | custom_alloc.stderr.exp custom_alloc.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 25 | doublefree.stderr.exp doublefree.vgtest \ |
njn | 1140b24 | 2003-04-22 20:58:02 +0000 | [diff] [blame] | 26 | error_counts.stderr.exp error_counts.stdout.exp error_counts.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 27 | errs1.stderr.exp errs1.vgtest \ |
| 28 | exitprog.stderr.exp exitprog.vgtest \ |
nethercote | a81e916 | 2004-02-12 14:34:14 +0000 | [diff] [blame] | 29 | execve.stderr.exp execve.vgtest \ |
nethercote | f6a1d50 | 2004-08-09 12:21:57 +0000 | [diff] [blame^] | 30 | execve2.stderr.exp execve2.vgtest \ |
thughes | d88f415 | 2004-03-28 11:26:29 +0000 | [diff] [blame] | 31 | fpeflags.stderr.exp fpeflags.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 32 | fprw.stderr.exp fprw.vgtest \ |
| 33 | fwrite.stderr.exp fwrite.stdout.exp fwrite.vgtest \ |
| 34 | inits.stderr.exp inits.vgtest \ |
| 35 | inline.stderr.exp inline.stdout.exp inline.vgtest \ |
fitzhardinge | e3c6b6f | 2004-03-12 10:51:39 +0000 | [diff] [blame] | 36 | $(addsuffix .stderr.exp,$(INSN_TESTS)) \ |
| 37 | $(addsuffix .stdout.exp,$(INSN_TESTS)) \ |
| 38 | $(addsuffix .vgtest,$(INSN_TESTS)) \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 39 | malloc1.stderr.exp malloc1.vgtest \ |
| 40 | malloc2.stderr.exp malloc2.vgtest \ |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 41 | malloc3.stderr.exp malloc3.stdout.exp malloc3.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 42 | manuel1.stderr.exp manuel1.stdout.exp manuel1.vgtest \ |
| 43 | manuel2.stderr.exp manuel2.stdout.exp manuel2.vgtest \ |
| 44 | manuel3.stderr.exp manuel3.vgtest \ |
| 45 | memalign_test.stderr.exp memalign_test.vgtest \ |
| 46 | memcmptest.stderr.exp memcmptest.stdout.exp memcmptest.vgtest \ |
rjwalsh | bc0bb83 | 2004-06-19 18:12:36 +0000 | [diff] [blame] | 47 | mempool.stderr.exp mempool.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 48 | mismatches.stderr.exp mismatches.vgtest \ |
| 49 | mmaptest.stderr.exp mmaptest.vgtest \ |
| 50 | nanoleak.stderr.exp nanoleak.vgtest \ |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 51 | nanoleak_supp.stderr.exp nanoleak_supp.vgtest nanoleak.supp \ |
njn | 32a17d1 | 2003-10-10 11:01:44 +0000 | [diff] [blame] | 52 | new_nothrow.stderr.exp new_nothrow.vgtest \ |
nethercote | ea169c0 | 2004-07-18 12:05:37 +0000 | [diff] [blame] | 53 | new_override.stderr.exp new_override.stdout.exp new_override.vgtest \ |
njn | 0c5fac8 | 2003-05-02 16:19:10 +0000 | [diff] [blame] | 54 | null_socket.stderr.exp null_socket.vgtest \ |
sewardj | ea5cf54 | 2003-07-16 19:03:10 +0000 | [diff] [blame] | 55 | overlap.stderr.exp overlap.stdout.exp overlap.vgtest \ |
nethercote | d3de730 | 2003-10-30 09:11:03 +0000 | [diff] [blame] | 56 | pth_once.stderr.exp pth_once.stdout.exp pth_once.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 57 | pushfpopf.stderr.exp pushfpopf.stdout.exp pushfpopf.vgtest \ |
| 58 | realloc1.stderr.exp realloc1.vgtest \ |
| 59 | realloc2.stderr.exp realloc2.vgtest \ |
njn | 398044f | 2003-07-24 17:39:59 +0000 | [diff] [blame] | 60 | realloc3.stderr.exp realloc3.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 61 | sigaltstack.stderr.exp sigaltstack.vgtest \ |
njn | d8ced86 | 2003-04-08 00:47:05 +0000 | [diff] [blame] | 62 | signal2.stderr.exp \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 63 | signal2.stdout.exp signal2.vgtest \ |
| 64 | supp1.stderr.exp supp1.vgtest \ |
| 65 | supp2.stderr.exp supp2.vgtest \ |
| 66 | supp.supp \ |
| 67 | suppfree.stderr.exp suppfree.vgtest \ |
nethercote | 57e36b3 | 2004-07-10 14:56:28 +0000 | [diff] [blame] | 68 | toobig-allocs.stderr.exp toobig-allocs.vgtest \ |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 69 | trivialleak.stderr.exp trivialleak.vgtest \ |
| 70 | tronical.stderr.exp tronical.vgtest \ |
sewardj | 51a9fe1 | 2003-07-07 00:03:52 +0000 | [diff] [blame] | 71 | weirdioctl.stderr.exp weirdioctl.stdout.exp weirdioctl.vgtest \ |
sewardj | 58bef2e | 2003-07-13 11:13:37 +0000 | [diff] [blame] | 72 | metadata.stderr.exp metadata.stdout.exp metadata.vgtest \ |
njn | aca67c5 | 2003-09-04 21:57:45 +0000 | [diff] [blame] | 73 | threadederrno.stderr.exp threadederrno.stdout.exp \ |
| 74 | threadederrno.vgtest \ |
nethercote | db23332 | 2003-12-02 14:56:04 +0000 | [diff] [blame] | 75 | writev.stderr.exp writev.vgtest \ |
| 76 | zeropage.stderr.exp zeropage.vgtest |
njn25 | 4d54243 | 2002-09-23 16:09:39 +0000 | [diff] [blame] | 77 | |
daywalker | c42d8bc | 2003-04-17 17:00:43 +0000 | [diff] [blame] | 78 | check_PROGRAMS = \ |
njn | c2699f6 | 2003-09-05 23:29:33 +0000 | [diff] [blame] | 79 | badaddrvalue badfree badjump badloop badrw brk buflen_check \ |
njn | 7360f8e | 2003-09-04 20:57:51 +0000 | [diff] [blame] | 80 | clientperm custom_alloc \ |
nethercote | f6a1d50 | 2004-08-09 12:21:57 +0000 | [diff] [blame^] | 81 | doublefree error_counts errs1 exitprog execve execve2 \ |
thughes | d88f415 | 2004-03-28 11:26:29 +0000 | [diff] [blame] | 82 | fpeflags fprw fwrite inits inline \ |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 83 | malloc1 malloc2 malloc3 manuel1 manuel2 manuel3 \ |
rjwalsh | bc0bb83 | 2004-06-19 18:12:36 +0000 | [diff] [blame] | 84 | memalign_test memcmptest mempool mmaptest nanoleak new_nothrow \ |
| 85 | null_socket overlap pushfpopf \ |
njn | 398044f | 2003-07-24 17:39:59 +0000 | [diff] [blame] | 86 | realloc1 realloc2 realloc3 sigaltstack signal2 supp1 supp2 suppfree \ |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 87 | trivialleak tronical weirdioctl \ |
nethercote | db23332 | 2003-12-02 14:56:04 +0000 | [diff] [blame] | 88 | mismatches new_override metadata threadederrno writev zeropage |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 89 | |
njn | a63e2d7 | 2003-06-12 14:13:05 +0000 | [diff] [blame] | 90 | AM_CPPFLAGS = -I$(top_srcdir)/include |
daywalker | c42d8bc | 2003-04-17 17:00:43 +0000 | [diff] [blame] | 91 | AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g |
| 92 | AM_CXXFLAGS = $(AM_CFLAGS) |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 93 | |
| 94 | # C ones |
| 95 | badaddrvalue_SOURCES = badaddrvalue.c |
| 96 | badfree_SOURCES = badfree.c |
| 97 | badjump_SOURCES = badjump.c |
| 98 | badloop_SOURCES = badloop.c |
njn | c2699f6 | 2003-09-05 23:29:33 +0000 | [diff] [blame] | 99 | badrw_SOURCES = badrw.c |
njn | 7360f8e | 2003-09-04 20:57:51 +0000 | [diff] [blame] | 100 | brk_SOURCES = brk.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 101 | buflen_check_SOURCES = buflen_check.c |
njn | 4d5490d | 2002-10-04 14:16:38 +0000 | [diff] [blame] | 102 | clientperm_SOURCES = clientperm.c |
njn | 1078545 | 2003-05-20 16:38:24 +0000 | [diff] [blame] | 103 | custom_alloc_SOURCES = custom_alloc.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 104 | doublefree_SOURCES = doublefree.c |
njn | 47363ab | 2003-04-21 13:24:40 +0000 | [diff] [blame] | 105 | error_counts_SOURCES = error_counts.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 106 | errs1_SOURCES = errs1.c |
nethercote | a81e916 | 2004-02-12 14:34:14 +0000 | [diff] [blame] | 107 | execve_SOURCES = execve.c |
nethercote | f6a1d50 | 2004-08-09 12:21:57 +0000 | [diff] [blame^] | 108 | execve2_SOURCES = execve2.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 109 | exitprog_SOURCES = exitprog.c |
thughes | d88f415 | 2004-03-28 11:26:29 +0000 | [diff] [blame] | 110 | fpeflags_SOURCES = fpeflags.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 111 | fprw_SOURCES = fprw.c |
| 112 | fwrite_SOURCES = fwrite.c |
| 113 | inits_SOURCES = inits.c |
| 114 | inline_SOURCES = inline.c |
| 115 | malloc1_SOURCES = malloc1.c |
| 116 | malloc2_SOURCES = malloc2.c |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 117 | malloc3_SOURCES = malloc3.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 118 | manuel1_SOURCES = manuel1.c |
| 119 | manuel2_SOURCES = manuel2.c |
| 120 | manuel3_SOURCES = manuel3.c |
| 121 | mmaptest_SOURCES = mmaptest.c |
| 122 | memalign_test_SOURCES = memalign_test.c |
| 123 | memcmptest_SOURCES = memcmptest.c |
rjwalsh | bc0bb83 | 2004-06-19 18:12:36 +0000 | [diff] [blame] | 124 | mempool_SOURCES = mempool.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 125 | nanoleak_SOURCES = nanoleak.c |
njn | 0c5fac8 | 2003-05-02 16:19:10 +0000 | [diff] [blame] | 126 | null_socket_SOURCES = null_socket.c |
njn | 3e88418 | 2003-04-15 13:03:23 +0000 | [diff] [blame] | 127 | overlap_SOURCES = overlap.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 128 | pushfpopf_SOURCES = pushfpopf_c.c pushfpopf_s.s |
| 129 | realloc1_SOURCES = realloc1.c |
| 130 | realloc2_SOURCES = realloc2.c |
njn | 398044f | 2003-07-24 17:39:59 +0000 | [diff] [blame] | 131 | realloc3_SOURCES = realloc3.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 132 | signal2_SOURCES = signal2.c |
| 133 | supp1_SOURCES = supp.c |
| 134 | supp2_SOURCES = supp.c |
| 135 | suppfree_SOURCES = suppfree.c |
| 136 | sigaltstack_SOURCES = sigaltstack.c |
| 137 | trivialleak_SOURCES = trivialleak.c |
| 138 | tronical_SOURCES = tronical.S |
| 139 | weirdioctl_SOURCES = weirdioctl.c |
sewardj | 51a9fe1 | 2003-07-07 00:03:52 +0000 | [diff] [blame] | 140 | metadata_SOURCES = metadata.c |
sewardj | 58bef2e | 2003-07-13 11:13:37 +0000 | [diff] [blame] | 141 | threadederrno_SOURCES = threadederrno.c |
| 142 | threadederrno_LDADD = -lpthread |
njn | aca67c5 | 2003-09-04 21:57:45 +0000 | [diff] [blame] | 143 | writev_SOURCES = writev.c |
nethercote | db23332 | 2003-12-02 14:56:04 +0000 | [diff] [blame] | 144 | zeropage_SOURCES = zeropage.c |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 145 | |
| 146 | # C++ ones |
| 147 | mismatches_SOURCES = mismatches.cpp |
njn | 32a17d1 | 2003-10-10 11:01:44 +0000 | [diff] [blame] | 148 | new_nothrow_SOURCES = new_nothrow.cpp |
njn25 | e49d8e7 | 2002-09-23 09:36:25 +0000 | [diff] [blame] | 149 | new_override_SOURCES = new_override.cpp |
| 150 | |
thughes | d88f415 | 2004-03-28 11:26:29 +0000 | [diff] [blame] | 151 | # must be built with these flags -- bug only occurred with them |
| 152 | fpeflags.o: CFLAGS += -march=i686 |