diff options
Diffstat (limited to 'dev-lang/zig')
-rw-r--r-- | dev-lang/zig/zig-0.7.1.ebuild | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/dev-lang/zig/zig-0.7.1.ebuild b/dev-lang/zig/zig-0.7.1.ebuild index 063604d4ceb1..18ac8c97dc04 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 +} |