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 6871B138330 for ; Thu, 29 Sep 2016 18:21:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC35BE0818; Thu, 29 Sep 2016 18:21:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B1360E0818 for ; Thu, 29 Sep 2016 18:21:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E5BB0340751 for ; Thu, 29 Sep 2016 18:21:43 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 29A922491 for ; Thu, 29 Sep 2016 18:21:42 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1475173274.6be4d9ba10030fdd460e885885df3119aca9d827.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libomp/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-libs/libomp/libomp-9999.ebuild X-VCS-Directories: sys-libs/libomp/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 6be4d9ba10030fdd460e885885df3119aca9d827 X-VCS-Branch: master Date: Thu, 29 Sep 2016 18:21:42 +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-Archives-Salt: 08078ef5-2adf-411f-8930-e45d24d75cd9 X-Archives-Hash: 59f86d99dc6887dde0f5bfe63a2b0f25 commit: 6be4d9ba10030fdd460e885885df3119aca9d827 Author: Michał Górny gentoo org> AuthorDate: Sun Sep 18 20:26:25 2016 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Sep 29 18:21:14 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6be4d9ba sys-libs/libomp: Enable tests sys-libs/libomp/libomp-9999.ebuild | 30 +++++++++++++++++++++++++++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/sys-libs/libomp/libomp-9999.ebuild b/sys-libs/libomp/libomp-9999.ebuild index aea0124..2496f20 100644 --- a/sys-libs/libomp/libomp-9999.ebuild +++ b/sys-libs/libomp/libomp-9999.ebuild @@ -5,8 +5,9 @@ EAPI=6 : ${CMAKE_MAKEFILE_GENERATOR:=ninja} +PYTHON_COMPAT=( python2_7 ) -inherit cmake-multilib git-r3 +inherit cmake-multilib git-r3 python-any-r1 DESCRIPTION="OpenMP runtime library for LLVM/clang compiler" HOMEPAGE="http://openmp.llvm.org" @@ -17,9 +18,26 @@ EGIT_REPO_URI="http://llvm.org/git/openmp.git LICENSE="UoI-NCSA" SLOT="0" KEYWORDS="" -IUSE="" +IUSE="test" -DEPEND="dev-lang/perl" +# tests: +# - dev-python/lit provides the test runner +# - sys-devel/llvm provide test utils (e.g. FileCheck) +# - sys-devel/clang provides the compiler to run tests +DEPEND="dev-lang/perl + test? ( + $(python_gen_any_dep 'dev-python/lit[${PYTHON_USEDEP}]') + sys-devel/llvm + sys-devel/clang[${MULTILIB_USEDEP}] + )" + +python_check_deps() { + has_version "dev-python/lit[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} multilib_src_configure() { local libdir="$(get_libdir)" @@ -29,6 +47,12 @@ multilib_src_configure() { -DLIBOMP_INSTALL_ALIASES=OFF # disable unnecessary hack copying stuff back to srcdir -DLIBOMP_COPY_EXPORTS=OFF + -DLIBOMP_LLVM_LIT_EXECUTABLE="${EPREFIX}/usr/bin/lit" + -DLIBOMP_TEST_COMPILER="${EPREFIX}/usr/bin/${CHOST}-clang" ) cmake-utils_src_configure } + +multilib_src_test() { + cmake-utils_src_make check-libomp +}