Gentoo Archives: gentoo-commits

From: Kent Fredric <kentnl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-perl/Audio-DSP/
Date: Sat, 14 Oct 2017 20:09:05
Message-Id: 1508011734.6dc94b689415442fe2e8761d464468bb1694a7a2.kentnl@gentoo
1 commit: 6dc94b689415442fe2e8761d464468bb1694a7a2
2 Author: Kent Fredric <kentnl <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 14 20:08:40 2017 +0000
4 Commit: Kent Fredric <kentnl <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 14 20:08:54 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6dc94b68
7
8 dev-perl/Audio-DSP: Improve testing
9
10 - EAPI6
11 - Add some basic test coverage
12 - Fence known wonky tests
13
14 Package-Manager: Portage-2.3.8, Repoman-2.3.3
15
16 dev-perl/Audio-DSP/Audio-DSP-0.20.0-r2.ebuild | 43 +++++++++++++++++++++++++++
17 1 file changed, 43 insertions(+)
18
19 diff --git a/dev-perl/Audio-DSP/Audio-DSP-0.20.0-r2.ebuild b/dev-perl/Audio-DSP/Audio-DSP-0.20.0-r2.ebuild
20 new file mode 100644
21 index 00000000000..568c4b995f1
22 --- /dev/null
23 +++ b/dev-perl/Audio-DSP/Audio-DSP-0.20.0-r2.ebuild
24 @@ -0,0 +1,43 @@
25 +# Copyright 1999-2017 Gentoo Foundation
26 +# Distributed under the terms of the GNU General Public License v2
27 +
28 +EAPI=6
29 +
30 +DIST_AUTHOR=SETHJ
31 +DIST_VERSION=0.02
32 +inherit perl-module
33 +
34 +DESCRIPTION="Perl interface to *NIX digital audio device"
35 +
36 +SLOT="0"
37 +KEYWORDS="~amd64 ~sparc ~x86"
38 +IUSE=""
39 +
40 +src_test() {
41 + local MODULES=(
42 + "Audio::DSP ${DIST_VERSION}"
43 + )
44 + local failed=()
45 + for dep in "${MODULES[@]}"; do
46 + ebegin "Compile testing ${dep}"
47 + perl -Mblib="${S}" -M"${dep} ()" -e1
48 + eend $? || failed+=( "$dep" )
49 + done
50 + if [[ ${failed[@]} ]]; then
51 + echo
52 + eerror "One or more modules failed compile:";
53 + for dep in "${failed[@]}"; do
54 + eerror " ${dep}"
55 + done
56 + die "Failing due to module compilation errors";
57 + fi
58 + if [[ "${AUDIO_DSP_HW_TEST:-0}" == 0 ]]; then
59 + ewarn "Comprehensive testing of this module needs hardware access to dsp"
60 + ewarn "devices. Set AUDIO_DSP_HW_TEST=1 in your environment if you want full"
61 + ewarn "coverage"
62 + ewarn "For details, see:"
63 + ewarn "https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/dev-perl/Audio-DSP"
64 + else
65 + perl-module_src_test
66 + fi
67 +}