diff options
author | Zac Medico <zmedico@gentoo.org> | 2015-05-21 05:31:35 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2015-05-21 05:31:35 +0000 |
commit | 53de5df9b205e60ee14a3591b5fd01b0ecad1e57 (patch) | |
tree | 6d505ece4b14a8a3c44eafec514f3e4663e8b65a /dev-go/go-text/go-text-9999.ebuild | |
parent | Version bump. (diff) | |
download | gentoo-2-53de5df9b205e60ee14a3591b5fd01b0ecad1e57.tar.gz gentoo-2-53de5df9b205e60ee14a3591b5fd01b0ecad1e57.tar.bz2 gentoo-2-53de5df9b205e60ee14a3591b5fd01b0ecad1e57.zip |
Add src_test.
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key FDE8EF85AE5719A3)
Diffstat (limited to 'dev-go/go-text/go-text-9999.ebuild')
-rw-r--r-- | dev-go/go-text/go-text-9999.ebuild | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/dev-go/go-text/go-text-9999.ebuild b/dev-go/go-text/go-text-9999.ebuild index 3674dba9699f..be686cd1132f 100644 --- a/dev-go/go-text/go-text-9999.ebuild +++ b/dev-go/go-text/go-text-9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-go/go-text/go-text-9999.ebuild,v 1.1 2015/05/18 07:48:30 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-go/go-text/go-text-9999.ebuild,v 1.2 2015/05/21 05:31:35 zmedico Exp $ EAPI=5 inherit git-r3 @@ -28,6 +28,20 @@ src_compile() { GOROOT="${GOROOT}" GOPATH=${WORKDIR} go install -v -x -work ${GO_PN}/... || die } +src_test() { + GOROOT="${GOROOT}" GOPATH=${WORKDIR} \ + go test -run "^(Example.*|"$( + echo -n 'Test(Flush|Insert|Decomposition|Composition|IterNext|' + echo -n 'IterSegmentation|DecomposeSegment|FirstBoundary|' + echo -n 'DecomposeToLastBoundary|LastBoundary|QuickSpan|IsNormal|' + echo -n 'IsNormalString|Append|AppendString|Bytes|String|Reader|' + echo -n 'Writer|Transform|TransformNorm|CharacterByCharacter|' + echo -n 'StandardTests|Performance|PlaceHolder|ExampleIter|Merge|' + echo -n 'Tables|Ambiguous|FoldSingleRunes|Fold|WidenSingleRunes|' + echo -n 'Widen|NarrowSingleRunes|Narrow))$') \ + -x -v ${GO_PN}/... || die $? +} + src_install() { exeinto /usr/lib/go/bin doexe "${WORKDIR}"/bin/* |