Regression tests for PCC

2011-12-28 Thread Eric Radman
I would like to include regression tests for the new port of PCC

https://github.com/jasperla/openbsd-wip/tree/master/lang/pcc

What is the correct way to include external software for regression
tests? I know this isn't right...

do-regress:
# ftp -C http://example.org/pcc-tests.tgz
# tar zxvf pcc-tests.tgz
# CC=${WRKBUILD}/cc/cc/pcc cd pcc-tests  ./build-and-run-tests.sh


Eric



Re: Regression tests for PCC

2011-12-28 Thread Stuart Henderson
On 2011-12-28, Eric Radman ericsh...@eradman.com wrote:
 I would like to include regression tests for the new port of PCC

 https://github.com/jasperla/openbsd-wip/tree/master/lang/pcc

 What is the correct way to include external software for regression
 tests? I know this isn't right...

 do-regress:
 # ftp -C http://example.org/pcc-tests.tgz
 # tar zxvf pcc-tests.tgz
 # CC=${WRKBUILD}/cc/cc/pcc cd pcc-tests  ./build-and-run-tests.sh

You can add to DISTFILES (you'll find some examples in other ports).
This will handle fetching and untarring, then you need to handle
running them in do-regress.

Better to use a versioned filename as this will get included/checked
in distinfo.