ports/99427: [Maintainer] sysutils/uschedule: define regression-test target

Thomas-Martin Seck tmseck at netcologne.de
Sat Jun 24 16:40:29 UTC 2006


>Number:         99427
>Category:       ports
>Synopsis:       [Maintainer] sysutils/uschedule: define regression-test target
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 24 16:40:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Thomas-Martin Seck
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
a private site in Germany
>Environment:
FreeBSD ports collection as of June 24, 2006.

	
>Description:
- move setup of compiler and compiler flags to the pre-build target
- no longer override do-build
- define a new regression-test target depending on build that calls the
  package's regression test scripts and allows for automated regression
  testing on the ports cluster
	
>How-To-Repeat:
	
>Fix:
Apply this patch:

Index: Makefile
===================================================================
--- Makefile	(.../sysutils/uschedule)	(revision 910)
+++ Makefile	(.../local/uschedule)	(revision 910)
@@ -31,11 +31,13 @@
 PLIST_FILES=	${bin:S,^,bin/,}
 PLIST_FILES+=	${sbin:S,^,sbin/,}
 
-do-build:
-	${ECHO_CMD} ${CC} > ${WRKSRC}/src/conf-cc
-	${ECHO_CMD} ${CFLAGS} > ${WRKSRC}/src/conf-cflags
-	cd ${WRKSRC} && package/build
+pre-build:
+	${ECHO_CMD} "${CC}" > ${WRKSRC}/src/conf-cc
+	${ECHO_CMD} "${CFLAGS}" > ${WRKSRC}/src/conf-cflags
 
+regression-test: build
+	cd ${WRKSRC} && ${MAKE} check
+
 do-install:
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
	


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list