- Make running self-tests an optional step since it may fail

in some environments (particularlly, bento's).
  Move it from do-build to a new test target.

Reported by:	bento (via kris)
This commit is contained in:
Sergei Kolobov 2004-03-25 22:15:48 +00:00
parent 4423c3e60c
commit c3fb284092
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=105278
3 changed files with 15 additions and 3 deletions

View file

@ -27,7 +27,11 @@ do-configure:
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/src/conf-cc
do-build:
cd ${WRKSRC} && package/compile && package/check
cd ${WRKSRC} && package/compile
@${ECHO_MSG} "Type 'make test' to run self-tests"
test:
cd ${WRKSRC} && package/check
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/command/* ${PREFIX}/bin

View file

@ -30,7 +30,7 @@ do-configure:
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/src/conf-cc
do-build:
cd ${WRKSRC} && package/compile && package/check
cd ${WRKSRC} && package/compile
@${MKDIR} ${WRKDIR}/etc/getty-ttyv4
@${SED} -e 's!%%PREFIX%%!${PREFIX}!' \
-e 's!%%SERVICE_DIR%%!${SERVICE_DIR}!' \
@ -41,6 +41,10 @@ do-build:
-e 's!/usr/local!${PREFIX}!g' \
${WRKSRC}/${file} > ${WRKDIR}/${file:S!freebsd/!!}.sample
.endfor
@${ECHO_MSG} "Type 'make test' to run self-tests"
test:
cd ${WRKSRC} && package/check
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/command/* ${PREFIX}/sbin

View file

@ -26,7 +26,11 @@ do-configure:
${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/src/conf-cc
do-build:
cd ${WRKSRC} && package/compile && package/check
cd ${WRKSRC} && package/compile
@${ECHO_MSG} "Type 'make test' to run self-tests"
test:
cd ${WRKSRC} && package/check
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/command/* ${PREFIX}/bin