public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/bcg729/
Date: Fri,  1 Jan 2021 22:22:04 +0000 (UTC)	[thread overview]
Message-ID: <1609539714.9c878248fbf450aa8fbd362fa4e5f12f73ee5268.sam@gentoo> (raw)

commit:     9c878248fbf450aa8fbd362fa4e5f12f73ee5268
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  1 06:36:23 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jan  1 22:21:54 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c878248

media-libs/bcg729: run tests

Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/bcg729/Manifest            |  1 +
 media-libs/bcg729/bcg729-1.1.1.ebuild | 22 ++++++++++++++++++++--
 2 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/media-libs/bcg729/Manifest b/media-libs/bcg729/Manifest
index c4e776d5f22..479f0e5ad67 100644
--- a/media-libs/bcg729/Manifest
+++ b/media-libs/bcg729/Manifest
@@ -1,2 +1,3 @@
 DIST bcg729-1.0.4.tar.gz 115641 BLAKE2B 5240fc10f8c4c32d9c9a6fc527a198fc896a8ff5ea12aa8a692808877582ac25b3fee122799cb7f6cea58db2f07cc07348da36d9f526e62f0bf62d61ef33bcfa SHA512 fdbbd2c9a807ed832ac3976301843bae854368ab281d16f792550bbda921d226fc6003c0a499561529f22eae08bc0d78b8826c2d06c859ab706d999a96967ffb
 DIST bcg729-1.1.1.tar.gz 122475 BLAKE2B 6774f6af439c9308db856be9d4bbb6db5c73e7a807b51dca6338d1506d896052a7830ade7767b45fd5a9ded0a6a0057e207bc1d5b0e33adbaed9dafb13a7bd3b SHA512 e8cc4b7486a9a29fb729ab9fd9e3c4a2155573f38cec16f5a53db3b416fc1119ea5f5a61243a8d37cb0b64580c5df1b632ff165dc7ff47421fa567dafffaacd8
+DIST bcg729-tests-20210101.zip 33438219 BLAKE2B 93bf1538f905f2fb67d703a6275ac7d616c005efb709f4d11e838be8b06e7f87429c4114dfc3e393b7b635dca51bf75a09d676188e9e11facdf7ec45ec5e4e50 SHA512 bd97521dc620e857dc3956ffc8a0b23da86ab2dd00621247ad91f05f04a9df7ce19bda426a307188f9271341332a393cb6e85c5c7e04b85c6e92496b6ffad5fc

diff --git a/media-libs/bcg729/bcg729-1.1.1.ebuild b/media-libs/bcg729/bcg729-1.1.1.ebuild
index 3a492a09a32..bef0e798b64 100644
--- a/media-libs/bcg729/bcg729-1.1.1.ebuild
+++ b/media-libs/bcg729/bcg729-1.1.1.ebuild
@@ -5,16 +5,23 @@ EAPI=7
 
 inherit cmake
 
+TEST_SUFFIX="tests-20210101"
 DESCRIPTION="encoder and decoder of the ITU G729 Annex A/B speech codec"
 HOMEPAGE="https://github.com/BelledonneCommunications/bcg729"
-SRC_URI="https://github.com/BelledonneCommunications/bcg729/archive/${PV/_/-}.tar.gz \
-		-> ${P}.tar.gz"
+SRC_URI="https://github.com/BelledonneCommunications/${PN}/archive/${PV/_/-}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" test? ( http://www.belledonne-communications.com/bc-downloads/${PN}-patterns.zip -> ${PN}-${TEST_SUFFIX}.zip )"
 S="${WORKDIR}/${P/_/-}"
 
 LICENSE="GPL-3"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~ppc ppc64 ~x86"
+IUSE="test"
+RESTRICT="test"
+# Not all passing yet
+# TODO: Report upstream
+#RESTRICT="!test? ( test )"
 
+BDEPEND="test? ( app-arch/unzip )"
 RDEPEND="!media-plugins/mediastreamer-bcg729"
 
 src_prepare() {
@@ -25,10 +32,21 @@ src_prepare() {
 src_configure() {
 	local mycmakeargs=(
 		-DENABLE_STATIC=no
+		-DENABLE_TESTS=$(usex test)
 	)
 	cmake_src_configure
 }
 
+src_test() {
+	cd "${BUILD_DIR}/test" || die
+
+	if use test ; then
+		mv "${WORKDIR}/patterns" "${BUILD_DIR}/test/" || die
+	fi
+
+	./testCampaignAll || die
+}
+
 src_install() {
 	cmake_src_install
 	find "${ED}" -name '*.la' -delete || die


             reply	other threads:[~2021-01-01 22:22 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-01 22:22 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-27 13:35 [gentoo-commits] repo/gentoo:master commit in: media-libs/bcg729/ WANG Xuerui
2024-01-12  8:30 Arthur Zamarin
2021-12-31  3:42 Yixun Lan
2021-03-17  1:44 Sam James
2021-01-05 21:09 Sam James
2021-01-02  0:09 Sam James
2021-01-02  0:09 Sam James
2021-01-01 22:22 Sam James
2020-12-27 12:28 Sergei Trofimovich
2020-12-27  4:47 Sam James
2020-12-27  4:31 Sam James
2020-12-27  0:54 Sam James
2020-11-24  2:08 Sam James
2020-11-24  1:41 Sam James
2020-11-24  1:40 Sam James
2020-11-08 10:22 Sam James
2020-11-06 21:43 Sam James
2020-11-06 20:24 Sam James
2020-11-04  9:23 Sam James
2020-11-04  1:48 Sam James
2020-11-04  0:44 Sam James
2020-11-04  0:44 Sam James
2020-07-20 12:24 Sam James
2020-07-16 17:45 Sam James
2020-05-06  6:41 Sergei Trofimovich
2020-01-15  8:56 Jeroen Roovers
2020-01-15  8:56 Jeroen Roovers
2019-12-11  6:04 Jeroen Roovers
2019-12-11  1:45 Aaron Bauman
2019-11-30 14:59 Jeroen Roovers
2019-11-30 14:59 Jeroen Roovers
2019-10-10  8:17 Jeroen Roovers
2019-08-12 19:58 Michał Górny
2018-06-19 17:29 Tobias Klausmann
2018-06-06 23:23 Thomas Deutschmann
2018-05-31 10:01 Sergei Trofimovich
2018-05-30  7:46 Jeroen Roovers
2018-03-18 19:48 Sergei Trofimovich
2018-02-08 21:33 Sergei Trofimovich
2018-02-07 21:14 Jeroen Roovers
2018-02-07 21:14 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1609539714.9c878248fbf450aa8fbd362fa4e5f12f73ee5268.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox