diff options
-rw-r--r-- | misc/py-ezc3d/Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/misc/py-ezc3d/Makefile b/misc/py-ezc3d/Makefile index f4bc6778443d..c0489cd1a957 100644 --- a/misc/py-ezc3d/Makefile +++ b/misc/py-ezc3d/Makefile @@ -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> |