summaryrefslogtreecommitdiff
path: root/regress/sys/kern/noexec/Makefile
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-05-03 00:08:59 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-05-03 00:08:59 +0000
commit3895590e9d9536eb3bfbc13cc22ffd02c6f97234 (patch)
tree3fcadaa99af24bc48351abf9f902b6d7371cf00b /regress/sys/kern/noexec/Makefile
parent92342274e650229e0913ec8ddfde3ff94a2d2b8e (diff)
implement and enable a mmaping pages test (mmap over .data etc,
as it was suggested by art@ some time ago). implement noexec test for mmap()ed memory and enable it. add more padding on the data allocated to prevent changing protection on unrelated data and such. implement cache flushing (for hppa now). be careful w/ data allocations sizes and such. some other cleanups.
Diffstat (limited to 'regress/sys/kern/noexec/Makefile')
-rw-r--r--regress/sys/kern/noexec/Makefile29
1 files changed, 22 insertions, 7 deletions
diff --git a/regress/sys/kern/noexec/Makefile b/regress/sys/kern/noexec/Makefile
index b82ff5fd2f2..0bca1d43d9d 100644
--- a/regress/sys/kern/noexec/Makefile
+++ b/regress/sys/kern/noexec/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 2003/04/23 21:46:04 mickey Exp $
+# $OpenBSD: Makefile,v 1.5 2003/05/03 00:08:58 mickey Exp $
.if ${MACHINE} == "sparc64" || ${MACHINE} == "sparc" || \
${MACHINE} == "alpha" || ${MACHINE} == "macppc" || \
@@ -8,14 +8,17 @@
PROG= noexec
CFLAGS+=-Wall -Werror
LDSTATIC= ${STATIC}
-REGRESS_TARGETS= nxtext-mprotect \
- nxdata nxdata-mprotect \
- nxbss nxbss-mprotect \
- nxheap nxheap-mprotect \
- nxmmap nxmmap-mprotect \
- nxstack nxstack-mprotect
+REGRESS_TARGETS= nxtext-mmap nxtext-mprotect \
+ nxdata nxdata-mmap nxdata-mprotect \
+ nxbss nxbss-mmap nxbss-mprotect \
+ nxheap nxheap-mmap nxheap-mprotect \
+ nxmmap nxmmap-mprotect \
+ nxstack nxstack-mmap nxstack-mprotect
.PHONY: ${REGRESS_TARGETS}
+nxtext-mmap: ${PROG}
+ @./${PROG} -T -m
+
nxtext-mprotect: ${PROG}
@./${PROG} -T -p
@@ -25,21 +28,33 @@ nxdata: ${PROG}
nxdata-mprotect: ${PROG}
@./${PROG} -D -p
+nxdata-mmap: ${PROG}
+ @./${PROG} -D -m
+
nxbss: ${PROG}
@./${PROG} -B
+nxbss-mmap: ${PROG}
+ @./${PROG} -B -m
+
nxbss-mprotect: ${PROG}
@./${PROG} -B -p
nxheap: ${PROG}
@./${PROG} -H
+nxheap-mmap: ${PROG}
+ @./${PROG} -H -m
+
nxheap-mprotect: ${PROG}
@./${PROG} -H -p
nxstack: ${PROG}
@./${PROG} -S
+nxstack-mmap: ${PROG}
+ @./${PROG} -S -m
+
nxstack-mprotect: ${PROG}
@./${PROG} -S -p