diff options
author | Sam James <sam@gentoo.org> | 2021-01-01 06:36:23 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-01-01 22:21:54 +0000 |
commit | 9c878248fbf450aa8fbd362fa4e5f12f73ee5268 (patch) | |
tree | 09c8da623bc6dea1a8663d4491a8cf92f9f378e2 /media-libs/bcg729 | |
parent | media-libs/bcg729: don't use -Werror (diff) | |
download | gentoo-9c878248fbf450aa8fbd362fa4e5f12f73ee5268.tar.gz gentoo-9c878248fbf450aa8fbd362fa4e5f12f73ee5268.tar.bz2 gentoo-9c878248fbf450aa8fbd362fa4e5f12f73ee5268.zip |
media-libs/bcg729: run tests
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/bcg729')
-rw-r--r-- | media-libs/bcg729/Manifest | 1 | ||||
-rw-r--r-- | 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 c4e776d5f22d..479f0e5ad67f 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 3a492a09a321..bef0e798b644 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 |