From nobody Fri Mar 25 17:20:17 2022 X-Original-To: dev-commits-ports-main@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 BDE3B1A2FFB2; Fri, 25 Mar 2022 17:20:17 +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 4KQ8413qjmz3nv6; Fri, 25 Mar 2022 17:20:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648228817; 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=aSpdTPIyNIvDt3/O7wZgBqwZ558kNdNLacS/BOKGgp4=; b=pJgl4BUj3p/ydIcnTaZVqYWDbizoD2ekHX/5/CqqZ7SznNR223JsWCzR0NOp2FGaVAQCiE KosMd1KOGNu7Kr36UNch7ExbDO4W9C9lnjPdnrFwHcVhi4OINv6DRUHlSaJRQw8SvOjPDi vvF9UYJ2OUFYEqKnkPKVswlDtH9izQ1rupV5zvItKvsJBzUWmqp9bhVVrj1+HlIDWlT0WO /kjpeXlSR5cF5Ui3UileASqUfd0Jcy2BwbyGodzo/THnrnTTKCjtH3OnZSVx1VHRl1CGNC DfURK4to/FCWu7lnmmbuCJxtUjwIEiFB6y5nkx8kWftAisZnYv3BJCi9LNmezQ== 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 533F510D6D; Fri, 25 Mar 2022 17:20:17 +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 22PHKH7w023657; Fri, 25 Mar 2022 17:20:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22PHKHVI023650; Fri, 25 Mar 2022 17:20:17 GMT (envelope-from git) Date: Fri, 25 Mar 2022 17:20:17 GMT Message-Id: <202203251720.22PHKHVI023650@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 7e5bafe0f1b9 - main - archivers/py-zopfli: Add make test List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 7e5bafe0f1b95ae995ea9d59743519b368764b5b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648228817; 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=aSpdTPIyNIvDt3/O7wZgBqwZ558kNdNLacS/BOKGgp4=; b=k/ZeHqWiNeoWZo08MNSq7tfWBPW/rLRSE+beJDZtW01P0snDz1tH4hpj27k5Aubms7MDK/ +Hq5vjTY8WtO4gXkRZRxdhAHXDt+q189zCAeEYfLzHFjjlN4E+aCyAUm9UtAwU6wGMXKjp J6mMhoh1eyZVYy8kGZdzx1K3bsBl2iDxmW4FYvaznykfrapC0XeLnsQWh5Mej+rt7RpbwI vfsNQaX8VV1OhTcCa1mO2RWXi+AnczANOU7m0cGy59Wm3IkxYWyqUTTtYHSDzFb48n5omW 5SH5LsKGHklLR1UXXTd2BKgm7NvJsGZoS5uAQfAkQICqm5z0RmKimo4lxJ6JBA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648228817; a=rsa-sha256; cv=none; b=Ao4wLDIn1xBVoGJMDGsd9wXxQrGTGfKmmvbfrYrnjeCNv05pENf+zxyWJSmRONfEzuR6F4 J1hefnGPa7HEgkJ8gRlippqhMJ3LADZGJKkukbQYq7uXfmcrKzDSRc70LnnViXp4r8eMQd luljo2xPBpNR7eVAlBJgIIUl7eZX1q/8btg+eXFItB9KrGvhnklxbTl+FAPCkE+ol6ST+0 Ar6w243YQDDJhjEFnKJye3SjZU0fhqJfQ0u+cLPYga5b2vaCSejA1S29CsM7e6WonzZJyB 03Ann5RBbxJUDVrKRRfdjWPSVuIp6YdBKtlbZbLwLXo7ziygYREQASBVBTjQJQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=7e5bafe0f1b95ae995ea9d59743519b368764b5b commit 7e5bafe0f1b95ae995ea9d59743519b368764b5b Author: Po-Chuan Hsieh AuthorDate: 2022-03-25 17:15:23 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-03-25 17:19:23 +0000 archivers/py-zopfli: Add make test --- archivers/py-zopfli/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/archivers/py-zopfli/Makefile b/archivers/py-zopfli/Makefile index a7c0f2433f72..be1fd65fe33b 100644 --- a/archivers/py-zopfli/Makefile +++ b/archivers/py-zopfli/Makefile @@ -13,6 +13,7 @@ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0,1:devel/py-pytest@${PY_FLAVOR} USES= python:3.7+ zip USE_PYTHON= autoplist concurrent distutils @@ -20,4 +21,7 @@ USE_PYTHON= autoplist concurrent distutils post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + +do-test: + cd ${WRKSRC} && ${SETENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} ${PYTHON_CMD} -m pytest -rs -v + .include