From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1A7B813933E for ; Sat, 3 Jul 2021 15:46:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 33EC8E081A; Sat, 3 Jul 2021 15:46:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 17D86E081A for ; Sat, 3 Jul 2021 15:46:22 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 03E62335D05 for ; Sat, 3 Jul 2021 15:46:21 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 720BB7BA for ; Sat, 3 Jul 2021 15:46:19 +0000 (UTC) From: "Joonas Niilola" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Joonas Niilola" Message-ID: <1625326819.77a79765c7e6c8421c5591bd80954098631e3114.juippis@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/zig/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/zig/zig-0.7.1.ebuild X-VCS-Directories: dev-lang/zig/ X-VCS-Committer: juippis X-VCS-Committer-Name: Joonas Niilola X-VCS-Revision: 77a79765c7e6c8421c5591bd80954098631e3114 X-VCS-Branch: master Date: Sat, 3 Jul 2021 15:46:19 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 56ee63db-1389-40b6-8352-9fb6859d8264 X-Archives-Hash: dc82a448555e1bf9d6f81fdb0ea678e1 commit: 77a79765c7e6c8421c5591bd80954098631e3114 Author: Aisha Tammy bsd ac> AuthorDate: Tue Jun 22 19:34:00 2021 +0000 Commit: Joonas Niilola gentoo org> CommitDate: Sat Jul 3 15:40:19 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77a79765 dev-lang/zig: enable tests for 0.7.1 Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Aisha Tammy aisha.cc> Closes: https://github.com/gentoo/gentoo/pull/21296 Signed-off-by: Joonas Niilola gentoo.org> dev-lang/zig/zig-0.7.1.ebuild | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dev-lang/zig/zig-0.7.1.ebuild b/dev-lang/zig/zig-0.7.1.ebuild index 063604d4ceb..18ac8c97dc0 100644 --- a/dev-lang/zig/zig-0.7.1.ebuild +++ b/dev-lang/zig/zig-0.7.1.ebuild @@ -9,7 +9,8 @@ DESCRIPTION="A robust, optimal, and maintainable programming language" HOMEPAGE="https://ziglang.org/" LICENSE="MIT" SLOT="0" -IUSE="+experimental" +IUSE="+experimental test" +RESTRICT="!test? ( test )" if [[ ${PV} == 9999 ]]; then EGIT_REPO_URI="https://github.com/ziglang/zig.git" @@ -19,6 +20,8 @@ else KEYWORDS="~amd64" fi +BUILD_DIR="${S}/build" + # According to zig's author, zig builds that do not support all targets are not # supported by the upstream project. ALL_LLVM_TARGETS=( @@ -50,3 +53,8 @@ src_configure() { ) cmake_src_configure } + +src_test() { + cd "${BUILD_DIR}" + ./zig build test || die +}