Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jun 2006 18:39:26 +0200 (CEST)
From:      Thomas-Martin Seck <tmseck@netcologne.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/99427: [Maintainer] sysutils/uschedule: define regression-test target
Message-ID:  <200606241639.k5OGdQEw053951@hardy.tmseck.homedns.org>
Resent-Message-ID: <200606241640.k5OGeIln075145@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606241639.k5OGdQEw053951>