summaryrefslogtreecommitdiff
path: root/share/mk
diff options
context:
space:
mode:
authorMarco S Hyman <marc@cvs.openbsd.org>2002-02-17 01:10:16 +0000
committerMarco S Hyman <marc@cvs.openbsd.org>2002-02-17 01:10:16 +0000
commitdf162c3e27123e9798aabeaefa4cb02dee2c6434 (patch)
tree14c2e67674ecc14e754ecf2b6ccc69594450767b /share/mk
parentecce38f9e0732e39f45a3d9aedc220fb564218b7 (diff)
skip tests that require root (REGRESSROOTTARGETS) unless
the user is root or SUDO is not empty. OK art@
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.regress.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/share/mk/bsd.regress.mk b/share/mk/bsd.regress.mk
index a6395cf1dc7..ff70d71a5ce 100644
--- a/share/mk/bsd.regress.mk
+++ b/share/mk/bsd.regress.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.regress.mk,v 1.8 2002/01/03 16:54:38 brad Exp $
+# $OpenBSD: bsd.regress.mk,v 1.9 2002/02/17 01:10:15 marc Exp $
# No man pages for regression tests.
NOMAN=
@@ -38,6 +38,14 @@ REGRESSSKIPSLOW?=no
REGRESSSKIPTARGETS+=${REGRESSSLOWTARGETS}
.endif
+.if defined(REGRESSROOTTARGETS)
+ROOTUSER!=id -g
+SUDO?=
+. if (${ROOTUSER} != 0) && empty(SUDO)
+REGRESSSKIPTARGETS+=${REGRESSROOTTARGETS}
+. endif
+.endif
+
REGRESSSKIPTARGETS?=
regress: