From nobody Sun Feb 05 18:09:32 2023 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 4P8y8X6jwhz3kgHs; Sun, 5 Feb 2023 18:09:32 +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 4P8y8X6Hn6z4DMh; Sun, 5 Feb 2023 18:09:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675620572; 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=/AfDue6LIUQ1wsUH5Nb+AZhmZYiCpPBMhOP9jNcMN3I=; b=uQYJ+MO6jVWsqAeU4RTpnmG9OtSLPWQh43dRYBQNOBOhGERDzYIvtHE4MBeNcDO27RzSK5 N6nYLMZdUbxlb5dOM15gh/UNKgv7zR7bXHddBWA8qefQdHsk1lV/oQ1r+Xp/AdUQT+X7+M WDYO7MeDVOaYo+CGTdbwUVnFSEFDU+Mbl9nicuw+/RwEmymQSVXYjOX13MRiSGakb/LjTD Ag9HH4rXegeeDt+62r+NPuUuhW8yGicYY525rXbMShRFJa6+a7ZAxyAPIKQOgasy0uAZ26 DdWg7VA/7SPVz32db5sZw0Agdj0YZIFnNQuCoUv06pUCM5GHxMKZJv74h8WW4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675620572; 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=/AfDue6LIUQ1wsUH5Nb+AZhmZYiCpPBMhOP9jNcMN3I=; b=xxoPtx6jzZjvd0f3IXAG2nIpTqSS786ARyQVeMFqvxgSg9oTbR3+ZdNRYJZHrT2T1WykIn FoAVGeCWkJtJxu0mQf7Ru6iDn2F07WfFAxq2n9KtU0tZpByrZ3VVtazFFBLMKUYQ2Bm4se ZCXzNB3MQwvg6nyJ+ixVpo3uxJaBhcQE7wRLgaH33nipK2FJd5su4JRKYlVI13TOxVSfeW XSzStBLieFWo5ZotHJzzyM5p8q0+1QS+nmLEas75A7lHFKvBevxo/RVFZqgcrl1F9a9DDK 7PFdQYDe5CsTjZA3hPMxyfctJC3R2dLHlakHVHAAgUy4gCdK2eGg10EdcUV7xw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675620572; a=rsa-sha256; cv=none; b=ImZQ46xduwW9upf4eY+jTNcspV4RGsFgx3+I0OzO0+BiFEpQN7zCbI4ejJ3FyYgCgrHF7N vSGMVWhAGLdVNN5HI6/cIO7xFhWwXQUZ6r0GXVkuIYezAihe/2LZX/Z2qRE/4dikydlDe4 U4T5Xj8//CuSiR3+pzr24uiXo7Mdy0kpKvelWjhvy4vL2gcwPCpz9SZ3JS8V6mFx4wKwot fHjpxCBsUml6bJgVx43aiBLI/YWgyFAus/1eVOXsc5r+vmooAGCrLqZ0p/r8YMf8Rs4oUD 0bSXnTcA57g4EZtJnpj7NVTr4L2eARjH1AmOxBWBLeWFcvwpTImJNtDSuQF6zg== 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 4P8y8X5P21z14GN; Sun, 5 Feb 2023 18:09:32 +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 315I9Wdk034455; Sun, 5 Feb 2023 18:09:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 315I9Waw034454; Sun, 5 Feb 2023 18:09:32 GMT (envelope-from git) Date: Sun, 5 Feb 2023 18:09:32 GMT Message-Id: <202302051809.315I9Waw034454@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: 0281cacc0a7c - main - cad/py-cocotb: Fix the test target 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: 0281cacc0a7c2955dd24b168d017b3fdbcdd74a4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=0281cacc0a7c2955dd24b168d017b3fdbcdd74a4 commit 0281cacc0a7c2955dd24b168d017b3fdbcdd74a4 Author: Yuri Victorovich AuthorDate: 2023-02-05 18:07:25 +0000 Commit: Yuri Victorovich CommitDate: 2023-02-05 18:09:28 +0000 cad/py-cocotb: Fix the test target --- cad/py-cocotb/Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/cad/py-cocotb/Makefile b/cad/py-cocotb/Makefile index a2168ec07d4d..211f36f0ab29 100644 --- a/cad/py-cocotb/Makefile +++ b/cad/py-cocotb/Makefile @@ -14,13 +14,18 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}find-libpython>0:devel/py-find-libpython@${PY_FLAVOR} \ gtkwave:cad/gtkwave +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} -USES= python:3.6+ -USE_PYTHON= pep517 autoplist pytest # https://github.com/cocotb/cocotb/issues/3230 +USES= python:3.6+ shebangfix +USE_PYTHON= pep517 autoplist USE_GITHUB= yes -TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} -TEST_WRKSRC= ${WRKSRC}/tests +SHEBANG_GLOB= *.py + +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \ + PATH=${STAGEDIR}${LOCALBASE}/bin:${PATH} \ + LD_LIBRARY_PATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/cocotb/libs \ + SIM=icarus OPTIONS_DEFINE= IVERILOG VERILATOR # GHDL - TODO OPTIONS_DEFAULT= IVERILOG VERILATOR @@ -37,4 +42,7 @@ post-install: ${STAGEDIR}${PYTHON_SITELIBDIR}/cocotb/libs/lib*.so \ ${STAGEDIR}${PYTHON_SITELIBDIR}/cocotb/libs/libcocotbvpi_icarus.vpl +do-test: # some tests fail, see https://github.com/cocotb/cocotb/issues/3236 + @cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} ${GMAKE} test + .include