diff options
author | Zac Medico <zmedico@gentoo.org> | 2015-05-21 07:18:42 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2015-05-21 07:18:42 +0000 |
commit | 9aecbb50d5a31356ebcc7fdb88f6e6d0e479fa64 (patch) | |
tree | 7bffd26abe44519bf67b1932adbef55085cfac40 /dev-go | |
parent | raise ocaml dep to 4, bug #550010 (diff) | |
download | gentoo-2-9aecbb50d5a31356ebcc7fdb88f6e6d0e479fa64.tar.gz gentoo-2-9aecbb50d5a31356ebcc7fdb88f6e6d0e479fa64.tar.bz2 gentoo-2-9aecbb50d5a31356ebcc7fdb88f6e6d0e479fa64.zip |
Add src_test.
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key FDE8EF85AE5719A3)
Diffstat (limited to 'dev-go')
-rw-r--r-- | dev-go/go-tools/ChangeLog | 5 | ||||
-rw-r--r-- | dev-go/go-tools/go-tools-9999.ebuild | 11 |
2 files changed, 14 insertions, 2 deletions
diff --git a/dev-go/go-tools/ChangeLog b/dev-go/go-tools/ChangeLog index 4fa43c26838f..80efb91adebe 100644 --- a/dev-go/go-tools/ChangeLog +++ b/dev-go/go-tools/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-go/go-tools # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-go/go-tools/ChangeLog,v 1.1 2015/05/18 07:58:45 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-go/go-tools/ChangeLog,v 1.2 2015/05/21 07:18:42 zmedico Exp $ + + 21 May 2015; Zac Medico <zmedico@gentoo.org> go-tools-9999.ebuild: + Add src_test. *go-tools-9999 (18 May 2015) diff --git a/dev-go/go-tools/go-tools-9999.ebuild b/dev-go/go-tools/go-tools-9999.ebuild index dbe88df47dde..1bb30626873a 100644 --- a/dev-go/go-tools/go-tools-9999.ebuild +++ b/dev-go/go-tools/go-tools-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-tools/go-tools-9999.ebuild,v 1.1 2015/05/18 07:58:45 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-go/go-tools/go-tools-9999.ebuild,v 1.2 2015/05/21 07:18:42 zmedico Exp $ EAPI=5 inherit git-r3 @@ -29,6 +29,15 @@ src_compile() { GOROOT="${GOROOT}" GOPATH=${WORKDIR} go install -v -x -work ${GO_PN}/... || die } +src_test() { + GOROOT="${GOROOT}" GOPATH=${WORKDIR} \ + go test -run "^"$( + echo -n 'Test(ParseLine|ParseSet|SelectBest|Delta|Correlate|' + echo -n 'BenchCmpSorting|Callgraph-4|Cover|Digraph|Split|' + echo -n 'QuotedLength|FixImports|DryRun)$') \ + -x -v ${GO_PN}/... || die $? +} + src_install() { exeinto /usr/lib/go/bin doexe "${WORKDIR}"/bin/* |