blob: 1e37e4a5c5ebbd4ff708307662ec4d49236772a6 [file] [log] [blame]
njn25e49d8e72002-09-23 09:36:25 +00001##---------------------------------------------------------------------------
2## Need more tests:
3## - lots more mmap/munmap/mremap/mprotect ones
njn25e49d8e72002-09-23 09:36:25 +00004##---------------------------------------------------------------------------
5
njnd0eab5f2003-09-30 16:52:47 +00006noinst_SCRIPTS = filter_allocs filter_leak_check_size \
njna2c92ed2003-06-29 10:12:58 +00007 filter_stderr filter_stderr_backtrace filter_pushfpopf \
8 filter_tronical
daywalker677e0612003-04-24 00:40:38 +00009
thughesb76f0dc2004-03-27 18:02:37 +000010INSN_TESTS=insn_basic insn_fpu insn_cmov insn_mmx insn_mmxext insn_sse insn_sse2
fitzhardingee3c6b6f2004-03-12 10:51:39 +000011
njna63e2d72003-06-12 14:13:05 +000012EXTRA_DIST = $(noinst_SCRIPTS) \
njnd8ced862003-04-08 00:47:05 +000013 badaddrvalue.stderr.exp \
njn254d542432002-09-23 16:09:39 +000014 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 \
njnc2699f62003-09-05 23:29:33 +000019 badrw.stderr.exp badrw.vgtest \
njn7360f8e2003-09-04 20:57:51 +000020 brk.stderr.exp brk.vgtest \
njnd8ced862003-04-08 00:47:05 +000021 buflen_check.stderr.exp buflen_check.vgtest \
22 clientperm.stderr.exp \
njn4d5490d2002-10-04 14:16:38 +000023 clientperm.stdout.exp clientperm.vgtest \
njn10785452003-05-20 16:38:24 +000024 custom_alloc.stderr.exp custom_alloc.vgtest \
njn254d542432002-09-23 16:09:39 +000025 doublefree.stderr.exp doublefree.vgtest \
njn1140b242003-04-22 20:58:02 +000026 error_counts.stderr.exp error_counts.stdout.exp error_counts.vgtest \
njn254d542432002-09-23 16:09:39 +000027 errs1.stderr.exp errs1.vgtest \
28 exitprog.stderr.exp exitprog.vgtest \
nethercotea81e9162004-02-12 14:34:14 +000029 execve.stderr.exp execve.vgtest \
nethercotef6a1d502004-08-09 12:21:57 +000030 execve2.stderr.exp execve2.vgtest \
thughesd88f4152004-03-28 11:26:29 +000031 fpeflags.stderr.exp fpeflags.vgtest \
njn254d542432002-09-23 16:09:39 +000032 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 \
fitzhardingee3c6b6f2004-03-12 10:51:39 +000036 $(addsuffix .stderr.exp,$(INSN_TESTS)) \
37 $(addsuffix .stdout.exp,$(INSN_TESTS)) \
38 $(addsuffix .vgtest,$(INSN_TESTS)) \
njn254d542432002-09-23 16:09:39 +000039 malloc1.stderr.exp malloc1.vgtest \
40 malloc2.stderr.exp malloc2.vgtest \
njn3e884182003-04-15 13:03:23 +000041 malloc3.stderr.exp malloc3.stdout.exp malloc3.vgtest \
njn254d542432002-09-23 16:09:39 +000042 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 \
rjwalshbc0bb832004-06-19 18:12:36 +000047 mempool.stderr.exp mempool.vgtest \
njn254d542432002-09-23 16:09:39 +000048 mismatches.stderr.exp mismatches.vgtest \
49 mmaptest.stderr.exp mmaptest.vgtest \
50 nanoleak.stderr.exp nanoleak.vgtest \
njn3e884182003-04-15 13:03:23 +000051 nanoleak_supp.stderr.exp nanoleak_supp.vgtest nanoleak.supp \
njn32a17d12003-10-10 11:01:44 +000052 new_nothrow.stderr.exp new_nothrow.vgtest \
nethercoteea169c02004-07-18 12:05:37 +000053 new_override.stderr.exp new_override.stdout.exp new_override.vgtest \
njn0c5fac82003-05-02 16:19:10 +000054 null_socket.stderr.exp null_socket.vgtest \
sewardjea5cf542003-07-16 19:03:10 +000055 overlap.stderr.exp overlap.stdout.exp overlap.vgtest \
nethercoted3de7302003-10-30 09:11:03 +000056 pth_once.stderr.exp pth_once.stdout.exp pth_once.vgtest \
njn254d542432002-09-23 16:09:39 +000057 pushfpopf.stderr.exp pushfpopf.stdout.exp pushfpopf.vgtest \
58 realloc1.stderr.exp realloc1.vgtest \
59 realloc2.stderr.exp realloc2.vgtest \
njn398044f2003-07-24 17:39:59 +000060 realloc3.stderr.exp realloc3.vgtest \
njn254d542432002-09-23 16:09:39 +000061 sigaltstack.stderr.exp sigaltstack.vgtest \
njnd8ced862003-04-08 00:47:05 +000062 signal2.stderr.exp \
njn254d542432002-09-23 16:09:39 +000063 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 \
nethercote57e36b32004-07-10 14:56:28 +000068 toobig-allocs.stderr.exp toobig-allocs.vgtest \
njn254d542432002-09-23 16:09:39 +000069 trivialleak.stderr.exp trivialleak.vgtest \
70 tronical.stderr.exp tronical.vgtest \
sewardj51a9fe12003-07-07 00:03:52 +000071 weirdioctl.stderr.exp weirdioctl.stdout.exp weirdioctl.vgtest \
sewardj58bef2e2003-07-13 11:13:37 +000072 metadata.stderr.exp metadata.stdout.exp metadata.vgtest \
njnaca67c52003-09-04 21:57:45 +000073 threadederrno.stderr.exp threadederrno.stdout.exp \
74 threadederrno.vgtest \
nethercotedb233322003-12-02 14:56:04 +000075 writev.stderr.exp writev.vgtest \
76 zeropage.stderr.exp zeropage.vgtest
njn254d542432002-09-23 16:09:39 +000077
daywalkerc42d8bc2003-04-17 17:00:43 +000078check_PROGRAMS = \
njnc2699f62003-09-05 23:29:33 +000079 badaddrvalue badfree badjump badloop badrw brk buflen_check \
njn7360f8e2003-09-04 20:57:51 +000080 clientperm custom_alloc \
nethercotef6a1d502004-08-09 12:21:57 +000081 doublefree error_counts errs1 exitprog execve execve2 \
thughesd88f4152004-03-28 11:26:29 +000082 fpeflags fprw fwrite inits inline \
njn3e884182003-04-15 13:03:23 +000083 malloc1 malloc2 malloc3 manuel1 manuel2 manuel3 \
rjwalshbc0bb832004-06-19 18:12:36 +000084 memalign_test memcmptest mempool mmaptest nanoleak new_nothrow \
85 null_socket overlap pushfpopf \
njn398044f2003-07-24 17:39:59 +000086 realloc1 realloc2 realloc3 sigaltstack signal2 supp1 supp2 suppfree \
njn25e49d8e72002-09-23 09:36:25 +000087 trivialleak tronical weirdioctl \
nethercotedb233322003-12-02 14:56:04 +000088 mismatches new_override metadata threadederrno writev zeropage
njn25e49d8e72002-09-23 09:36:25 +000089
njna63e2d72003-06-12 14:13:05 +000090AM_CPPFLAGS = -I$(top_srcdir)/include
daywalkerc42d8bc2003-04-17 17:00:43 +000091AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g
92AM_CXXFLAGS = $(AM_CFLAGS)
njn25e49d8e72002-09-23 09:36:25 +000093
94# C ones
95badaddrvalue_SOURCES = badaddrvalue.c
96badfree_SOURCES = badfree.c
97badjump_SOURCES = badjump.c
98badloop_SOURCES = badloop.c
njnc2699f62003-09-05 23:29:33 +000099badrw_SOURCES = badrw.c
njn7360f8e2003-09-04 20:57:51 +0000100brk_SOURCES = brk.c
njn25e49d8e72002-09-23 09:36:25 +0000101buflen_check_SOURCES = buflen_check.c
njn4d5490d2002-10-04 14:16:38 +0000102clientperm_SOURCES = clientperm.c
njn10785452003-05-20 16:38:24 +0000103custom_alloc_SOURCES = custom_alloc.c
njn25e49d8e72002-09-23 09:36:25 +0000104doublefree_SOURCES = doublefree.c
njn47363ab2003-04-21 13:24:40 +0000105error_counts_SOURCES = error_counts.c
njn25e49d8e72002-09-23 09:36:25 +0000106errs1_SOURCES = errs1.c
nethercotea81e9162004-02-12 14:34:14 +0000107execve_SOURCES = execve.c
nethercotef6a1d502004-08-09 12:21:57 +0000108execve2_SOURCES = execve2.c
njn25e49d8e72002-09-23 09:36:25 +0000109exitprog_SOURCES = exitprog.c
thughesd88f4152004-03-28 11:26:29 +0000110fpeflags_SOURCES = fpeflags.c
njn25e49d8e72002-09-23 09:36:25 +0000111fprw_SOURCES = fprw.c
112fwrite_SOURCES = fwrite.c
113inits_SOURCES = inits.c
114inline_SOURCES = inline.c
115malloc1_SOURCES = malloc1.c
116malloc2_SOURCES = malloc2.c
njn3e884182003-04-15 13:03:23 +0000117malloc3_SOURCES = malloc3.c
njn25e49d8e72002-09-23 09:36:25 +0000118manuel1_SOURCES = manuel1.c
119manuel2_SOURCES = manuel2.c
120manuel3_SOURCES = manuel3.c
121mmaptest_SOURCES = mmaptest.c
122memalign_test_SOURCES = memalign_test.c
123memcmptest_SOURCES = memcmptest.c
rjwalshbc0bb832004-06-19 18:12:36 +0000124mempool_SOURCES = mempool.c
njn25e49d8e72002-09-23 09:36:25 +0000125nanoleak_SOURCES = nanoleak.c
njn0c5fac82003-05-02 16:19:10 +0000126null_socket_SOURCES = null_socket.c
njn3e884182003-04-15 13:03:23 +0000127overlap_SOURCES = overlap.c
njn25e49d8e72002-09-23 09:36:25 +0000128pushfpopf_SOURCES = pushfpopf_c.c pushfpopf_s.s
129realloc1_SOURCES = realloc1.c
130realloc2_SOURCES = realloc2.c
njn398044f2003-07-24 17:39:59 +0000131realloc3_SOURCES = realloc3.c
njn25e49d8e72002-09-23 09:36:25 +0000132signal2_SOURCES = signal2.c
133supp1_SOURCES = supp.c
134supp2_SOURCES = supp.c
135suppfree_SOURCES = suppfree.c
136sigaltstack_SOURCES = sigaltstack.c
137trivialleak_SOURCES = trivialleak.c
138tronical_SOURCES = tronical.S
139weirdioctl_SOURCES = weirdioctl.c
sewardj51a9fe12003-07-07 00:03:52 +0000140metadata_SOURCES = metadata.c
sewardj58bef2e2003-07-13 11:13:37 +0000141threadederrno_SOURCES = threadederrno.c
142threadederrno_LDADD = -lpthread
njnaca67c52003-09-04 21:57:45 +0000143writev_SOURCES = writev.c
nethercotedb233322003-12-02 14:56:04 +0000144zeropage_SOURCES = zeropage.c
njn25e49d8e72002-09-23 09:36:25 +0000145
146# C++ ones
147mismatches_SOURCES = mismatches.cpp
njn32a17d12003-10-10 11:01:44 +0000148new_nothrow_SOURCES = new_nothrow.cpp
njn25e49d8e72002-09-23 09:36:25 +0000149new_override_SOURCES = new_override.cpp
150
thughesd88f4152004-03-28 11:26:29 +0000151# must be built with these flags -- bug only occurred with them
152fpeflags.o: CFLAGS += -march=i686