summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-go/go-tools')
-rw-r--r--dev-go/go-tools/ChangeLog5
-rw-r--r--dev-go/go-tools/go-tools-9999.ebuild11
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/*