- Switch to options helpers

- Switch to new test framework
This commit is contained in:
Dmitry Marakasov 2018-04-30 08:33:55 +00:00
parent 76ddf60538
commit a3a75358a3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=468675

View file

@ -87,12 +87,12 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/src/*.h ${STAGEDIR}${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/src/*.h ${STAGEDIR}${PREFIX}/include
(cd ${WRKSRC}_SHARED/bin/FreeBSD && \ (cd ${WRKSRC}_SHARED/bin/FreeBSD && \
${INSTALL_PROGRAM} ${BINS} ${STAGEDIR}${PREFIX}/bin) ${INSTALL_PROGRAM} ${BINS} ${STAGEDIR}${PREFIX}/bin)
.if ${PORT_OPTIONS:MDOCS}
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR} @${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${STAGEDIR}${DOCSDIR}
.endif
check test: build do-test: # XXX: building tests fail
.for t in ${TESTS} .for t in ${TESTS}
@${PRINTF} "\n%s\n" "Building test_${t}" @${PRINTF} "\n%s\n" "Building test_${t}"
@cd ${WRKSRC}_SHARED ; ${FC} ${FFLAGS} -Llib/FreeBSD -L./ \ @cd ${WRKSRC}_SHARED ; ${FC} ${FFLAGS} -Llib/FreeBSD -L./ \
@ -106,10 +106,4 @@ check test: build
bin/FreeBSD/test_${t} bin/FreeBSD/test_${t}
.endfor .endfor
#be conservative, and expose a regression test target for amd64 builds only, because
#some of the tests run amok during i386 tinderbox builds on amd64 hosts
.if ${ARCH} == "amd64"
regression-test: check
.endif
.include <bsd.port.mk> .include <bsd.port.mk>