diff options
author | Damien Miller <djm@mindrot.org> | 2010-07-02 13:40:16 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2010-07-02 13:40:16 +1000 |
commit | 527ded7f643d99ef0798a3c3a19e4edc56b9289f (patch) | |
tree | 3096215f1119a28bd77d8c29d225f9b728e2754a /regress/Makefile | |
parent | 0979b40934a59615d8fa1535103d51f11c04bad2 (diff) |
- phessler@cvs.openbsd.org 2010/06/27 19:19:56
[Makefile]
fix how we run the tests so we can successfully use SUDO='sudo -E'
in our env
Diffstat (limited to 'regress/Makefile')
-rw-r--r-- | regress/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/Makefile b/regress/Makefile index 6e7b441bf..9762ab204 100644 --- a/regress/Makefile +++ b/regress/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.53 2010/05/07 11:31:26 djm Exp $ | 1 | # $OpenBSD: Makefile,v 1.54 2010/06/27 19:19:56 phessler Exp $ |
2 | 2 | ||
3 | REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7 t-exec | 3 | REGRESS_TARGETS= t1 t2 t3 t4 t5 t6 t7 t-exec |
4 | tests: $(REGRESS_TARGETS) | 4 | tests: $(REGRESS_TARGETS) |
@@ -113,13 +113,13 @@ t-exec: ${LTESTS:=.sh} | |||
113 | @if [ "x$?" = "x" ]; then exit 0; fi; \ | 113 | @if [ "x$?" = "x" ]; then exit 0; fi; \ |
114 | for TEST in ""$?; do \ | 114 | for TEST in ""$?; do \ |
115 | echo "run test $${TEST}" ... 1>&2; \ | 115 | echo "run test $${TEST}" ... 1>&2; \ |
116 | (env SUDO=${SUDO} TEST_ENV=${TEST_ENV} sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || exit $$?; \ | 116 | (env SUDO="${SUDO}" TEST_ENV=${TEST_ENV} sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || exit $$?; \ |
117 | done | 117 | done |
118 | 118 | ||
119 | t-exec-interop: ${INTEROP_TESTS:=.sh} | 119 | t-exec-interop: ${INTEROP_TESTS:=.sh} |
120 | @if [ "x$?" = "x" ]; then exit 0; fi; \ | 120 | @if [ "x$?" = "x" ]; then exit 0; fi; \ |
121 | for TEST in ""$?; do \ | 121 | for TEST in ""$?; do \ |
122 | echo "run test $${TEST}" ... 1>&2; \ | 122 | echo "run test $${TEST}" ... 1>&2; \ |
123 | (env SUDO=${SUDO} TEST_ENV=${TEST_ENV} sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || exit $$?; \ | 123 | (env SUDO="${SUDO}" TEST_ENV=${TEST_ENV} sh ${.CURDIR}/test-exec.sh ${.OBJDIR} ${.CURDIR}/$${TEST}) || exit $$?; \ |
124 | done | 124 | done |
125 | 125 | ||