From nobody Wed Jun 22 19:02:56 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AEC7587531E; Wed, 22 Jun 2022 19:02:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LSt7N4MfPz3QQG; Wed, 22 Jun 2022 19:02:56 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655924576; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BhAMmIHJJkIOEFi/8kZJnOCVON6/lz8k8eWdhproBwk=; b=E6KDofNA0NC/r/+eQnoJMRrdG7oLcWbeP4qIVEDkNFTl6l5ouXhcVY6uFBIqKXCE8EoNDu 88qOROMX6C1cb4mVcc5Pd+O0RTPEYUZ66nhbj5f3wy6/deCIZg0GOroxcW+qKtXzUufDBC MfX57cZPX6ieFuG7OjBFWsylXBBFoLtClTW9p19IhC3gRvrT9fSNUe2FgiLCMbRuhtIPrA FBnedB+ntAkAngLb8IEq37mdm9agiv+5wjhz2VsNC+V9C+FvgWptn9Q8UOHF9PQcoan3aU /ZYR8Zqa2tLz/epXHuykPwwEPtoctTbHfqjw16p38Ndf+Z6qJfCpszr/fY5VuA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 75D053EA0; Wed, 22 Jun 2022 19:02:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 25MJ2uMJ025182; Wed, 22 Jun 2022 19:02:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 25MJ2uhg025181; Wed, 22 Jun 2022 19:02:56 GMT (envelope-from git) Date: Wed, 22 Jun 2022 19:02:56 GMT Message-Id: <202206221902.25MJ2uhg025181@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 8d69a1fd3921 - main - misc/py-ezc3d: Fix tests List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8d69a1fd3921b762c5161db631094411fcbcfbe4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1655924576; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BhAMmIHJJkIOEFi/8kZJnOCVON6/lz8k8eWdhproBwk=; b=SL9oEMcCKThgBGvzIthovEhopw5JkSKcKeKB9H0btZ5qGyuIfmvocws0cDbkbYh7dZcnA4 cTXCwCbF3ANHII28DJV0hKVb0GQVTeXUDpm7wVDCpvFTFEUVOklgCpogXXPi1USsnxFY+t c8OpDTDKKe5KlFzDj4+mLY4kJxquW0of0tXiW9r00xJI57QDJ1LY5HrFI87lDissgqp7Xu vRCcGO1mh26luuofPsoB+KaXJvlXbsi2witXwxNndcoD5Giubfm2QzHqdfaMOyG3A0So5+ vmLfJ5iwJBJa6riVKEBI1skp07op4kfVzM7M9BSMBvzXPR3OlOCgzTbtg1EW+Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1655924576; a=rsa-sha256; cv=none; b=caWOWQJotbI3y/bumdvpIYto0r42uYGjUNVOGtmlaeHwyS9EZWkQYB5Dc6Gsj5gToGZKpw PjCp2iDs+Ytv26JqGesesVZy8CtJBG4ACUi1aBk3nBamH6zTGS1byrueYDbwpxgXN8xQYN PIhItIc5AsCZGJoLGHQlfZVVBwqZOYVV93rqziioX+P6nbMYMTobff96i2R5NV2/Xosy+f YwnqxkYSGmaKVRCEEi/eOV/kKGa/kN/IoY9aLzwJpTSlObS67GXmDrpwh4L9s/2O247Vgn KcM4Ewf+u7T39Lve698iLjTnu43OVgjySot9prKNd1rWsDHzPchUQdGBw615QA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=8d69a1fd3921b762c5161db631094411fcbcfbe4 commit 8d69a1fd3921b762c5161db631094411fcbcfbe4 Author: Yuri Victorovich AuthorDate: 2022-06-22 19:02:13 +0000 Commit: Yuri Victorovich CommitDate: 2022-06-22 19:02:54 +0000 misc/py-ezc3d: Fix tests --- misc/py-ezc3d/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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