From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id DA4E313888F for ; Thu, 15 Oct 2015 14:28:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D664021C001; Thu, 15 Oct 2015 14:28:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 78CDC21C001 for ; Thu, 15 Oct 2015 14:28:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AFDE5340BC9 for ; Thu, 15 Oct 2015 14:28:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 201D4922 for ; Thu, 15 Oct 2015 14:28:40 +0000 (UTC) From: "Alexis Ballier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexis Ballier" Message-ID: <1444919312.f384ec79e1ed374c864fc5d91f148c6754303ff8.aballier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/x265/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-libs/x265/x265-1.8.ebuild media-libs/x265/x265-9999.ebuild X-VCS-Directories: media-libs/x265/ X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier X-VCS-Revision: f384ec79e1ed374c864fc5d91f148c6754303ff8 X-VCS-Branch: master Date: Thu, 15 Oct 2015 14:28:40 +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: fd5793b1-ff53-45e6-96a8-bb956998c4a6 X-Archives-Hash: 5b6c51c391a4807acb4dcc39a39618b5 commit: f384ec79e1ed374c864fc5d91f148c6754303ff8 Author: Alexis Ballier gentoo org> AuthorDate: Thu Oct 15 14:28:18 2015 +0000 Commit: Alexis Ballier gentoo org> CommitDate: Thu Oct 15 14:28:32 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f384ec79 media-libs/x265: Make src_test more robust. Build system builds "tests" only when asm optimizations are enabled, which may be disabled by other means (x32 or pic). Run tests only when it decided to build them. Package-Manager: portage-2.2.23 media-libs/x265/x265-1.8.ebuild | 10 +++++----- media-libs/x265/x265-9999.ebuild | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/media-libs/x265/x265-1.8.ebuild b/media-libs/x265/x265-1.8.ebuild index d5b67b2..1505f63 100644 --- a/media-libs/x265/x265-1.8.ebuild +++ b/media-libs/x265/x265-1.8.ebuild @@ -76,11 +76,11 @@ src_configure() { } multilib_src_test() { - if has ${MULTILIB_ABI_FLAG} abi_x86_32 abi_x86_64 ; then - cd "${BUILD_DIR}/test" || die - for i in TestBench ; do - ./${i} || die - done + if [ -x "${BUILD_DIR}/test/TestBench" ] ; then + "${BUILD_DIR}/test/TestBench" || die + else + einfo "Unit tests check only assembly, and you do not seem to have any." + einfo "Skipping tests." fi } diff --git a/media-libs/x265/x265-9999.ebuild b/media-libs/x265/x265-9999.ebuild index 1298033..0d77b71 100644 --- a/media-libs/x265/x265-9999.ebuild +++ b/media-libs/x265/x265-9999.ebuild @@ -72,11 +72,11 @@ src_configure() { } multilib_src_test() { - if has ${MULTILIB_ABI_FLAG} abi_x86_32 abi_x86_64 ; then - cd "${BUILD_DIR}/test" || die - for i in TestBench ; do - ./${i} || die - done + if [ -x "${BUILD_DIR}/test/TestBench" ] ; then + "${BUILD_DIR}/test/TestBench" || die + else + einfo "Unit tests check only assembly, and you do not seem to have any." + einfo "Skipping tests." fi }