Add a test of presence of user settings in port Makefiles.

This commit is contained in:
zhuk 2015-07-05 12:32:44 +00:00
parent 23940f0fa7
commit 33ae395104
4 changed files with 18 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.16 2015/04/15 08:19:48 zhuk Exp $
# $OpenBSD: Makefile,v 1.17 2015/07/05 12:32:44 zhuk Exp $
# To add a test named ${testname}:
# 1) If test should catch errors, add sample portcheck output to the
@ -11,7 +11,7 @@
# section below.
# user-customizeable
REGRESS_TARGETS ?= t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16
REGRESS_TARGETS ?= t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15 t16 t17
PORTCHECK ?= ${PORTSDIR}/infrastructure/bin/portcheck
PORTCHECK_ARGS ?=
SUBST_CMD ?= ${PORTSDIR}/infrastructure/bin/pkg_subst
@ -34,6 +34,7 @@ TEST_t13_ARGS = -P
TEST_t14_ARGS = -P
TEST_t15_ARGS = -P
TEST_t16_ARGS = -P
TEST_t17_ARGS = -P
# define tests
.for _t in ${REGRESS_TARGETS}

View File

@ -0,0 +1,2 @@
user settings in port: BULK=No
user settings in port: USE_SYSTRACE = Yes

View File

@ -0,0 +1,11 @@
# $OpenBSD: Makefile,v 1.1 2015/07/05 12:32:44 zhuk Exp $
#
# Check for user settings in makefile
COMMENT = test 17
DISTNAME = test-17
USE_SYSTRACE = Yes
BULK=No
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST,v 1.1 2015/07/05 12:32:44 zhuk Exp $
bin/foo17