Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 May 2017 11:13:25 +0200
From:      =?iso-8859-1?Q?Jos=E9_G=2E?= Juanino <jjuanino@gmail.com>
To:        ports@freebsd.org
Subject:   Standard way to run test target in specific port
Message-ID:  <20170514091325.76yi5rxb2a2tjs53@abel.home.inet>

next in thread | raw e-mail | index | archive | help
Hello FreeBSD ports!

I am porting a backup software (bup backup), and the upstream Makefile 
has a "test" target. I find useful to make a port knob to allow run such 
test (disabled by default). What is the best way to accomplish that 
task? Is there any doc or "best practique" to watch for?

I am thinking in write something like this:


RUNTEST_DESC=   Run test suite # knob

.....

.if ${PORT_OPTIONS:MRUNTEST}
post-build:
        ${GMAKE} ${MAKE_ARGS} -C ${WRKDIR}/${PORTNAME}-${PORTVERSION} test
.endif


But it seems very contrived and ugly.


You can find the full shar file in 219174 (with no test target  
deployed).


Thanks for your help!


-- 
José G. Juanino



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