misc/py-ezc3d: Fix tests
This commit is contained in:
parent
0e81319846
commit
8d69a1fd39
@ -24,6 +24,7 @@ USE_GITHUB= yes
|
||||
GH_ACCOUNT= pyomeca
|
||||
GH_TUPLE= google:googletest:3880b13:googletest/external/gtest # https://github.com/pyomeca/ezc3d/issues/256
|
||||
|
||||
TEST_ARGS= ${WRKSRC}/test/python3
|
||||
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
||||
|
||||
post-install:
|
||||
@ -35,4 +36,19 @@ post-install:
|
||||
ezc3d/_ezc3d.so \
|
||||
ezc3d/libezc3d.so
|
||||
|
||||
pre-test: # download test c3d files
|
||||
# download archives
|
||||
@${MKDIR} ${WRKSRC}/test/c3dFiles
|
||||
@cd ${WRKDIR} && ${FETCH_CMD} -q https://github.com/pyomeca/ezc3d-testFiles/archive/master.zip -o ${WRKSRC}/test/c3dFiles/ezc3d-testFiles-master.zip
|
||||
.for f in Sample01.zip Sample02.zip
|
||||
@cd ${WRKDIR} && ${FETCH_CMD} -q https://www.c3d.org/data/${f} -o ${WRKSRC}/test/c3dFiles/${f}
|
||||
.endfor
|
||||
# extract archives
|
||||
.for n in ezc3d-testFiles-master Sample01 Sample02
|
||||
@cd ${WRKSRC}/test/c3dFiles && ${MKDIR} ${n} && cd ${n} && ${TAR} -xf ../${n}.zip
|
||||
.endfor
|
||||
# move *.c3d files into a flat folder
|
||||
@${MKDIR} ${WRKSRC}/test/c3dTestFiles
|
||||
@${CP} `${FIND} ${WRKSRC} -name "*.c3d"` ${WRKSRC}/test/c3dTestFiles
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user