summaryrefslogtreecommitdiff
path: root/dev-go
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2015-05-21 06:16:46 +0000
committerZac Medico <zmedico@gentoo.org>2015-05-21 06:16:46 +0000
commit1965e5e9acd515b3964aa2a880ccdbd9b328178c (patch)
treeed8ad2b93344278099a3a7bc29d8fed5058f2f2e /dev-go
parentVersion bump. (diff)
downloadgentoo-2-1965e5e9acd515b3964aa2a880ccdbd9b328178c.tar.gz
gentoo-2-1965e5e9acd515b3964aa2a880ccdbd9b328178c.tar.bz2
gentoo-2-1965e5e9acd515b3964aa2a880ccdbd9b328178c.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-net/ChangeLog5
-rw-r--r--dev-go/go-net/go-net-9999.ebuild51
2 files changed, 54 insertions, 2 deletions
diff --git a/dev-go/go-net/ChangeLog b/dev-go/go-net/ChangeLog
index 2e748cc9143e..f878d21928ef 100644
--- a/dev-go/go-net/ChangeLog
+++ b/dev-go/go-net/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-go/go-net
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-go/go-net/ChangeLog,v 1.1 2015/05/18 07:53:59 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-go/go-net/ChangeLog,v 1.2 2015/05/21 06:16:46 zmedico Exp $
+
+ 21 May 2015; Zac Medico <zmedico@gentoo.org> go-net-9999.ebuild:
+ Add src_test.
*go-net-9999 (18 May 2015)
diff --git a/dev-go/go-net/go-net-9999.ebuild b/dev-go/go-net/go-net-9999.ebuild
index dc2c167e58a9..4f9c60eecd30 100644
--- a/dev-go/go-net/go-net-9999.ebuild
+++ b/dev-go/go-net/go-net-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-net/go-net-9999.ebuild,v 1.1 2015/05/18 07:53:59 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-go/go-net/go-net-9999.ebuild,v 1.2 2015/05/21 06:16:46 zmedico Exp $
EAPI=5
inherit git-r3
@@ -29,6 +29,55 @@ src_compile() {
GOROOT="${GOROOT}" GOPATH=${WORKDIR} go install -v -x -work ${GO_PN}/... || die
}
+src_test() {
+ GOROOT="${GOROOT}" GOPATH=${WORKDIR} \
+ go test -run "^(Example(WithTimeout|Parse)|"$(
+ echo -n '|Test(Background|TODO|WithCancel|ParentFinishesChild|'
+ echo -n 'ChildFinishesFirst|Deadline|Timeout|CanceledTimeout|'
+ echo -n 'Values|Allocs|SimultaneousCancels|InterlockedCancels|'
+ echo -n 'LayersCancel|LayersTimeout|CancelRemoves|EntityLength|'
+ echo -n 'Unescape|UnescapeEscape|Parser|NodeConsistency|Renderer|'
+ echo -n 'Tokenizer|MaxBuffer|MaxBufferReconstruction|Passthrough|'
+ echo -n 'BufAPI|ConvertNewlines|ReaderEdgeCases|Known|Hits|Misses|'
+ echo -n 'ForeignObject|Decode|Encode|Names|Sniff|Reader|FromMeta|'
+ echo -n 'XML|MarshalAndParseExtension|ParseIPv4Header|'
+ echo -n 'MarshalAndParseMessageForIPv4|MarshalAndParseMessageForIPv6|'
+ echo -n 'MarshalAndParseMultipartMessageForIPv4|'
+ echo -n 'MarshalAndParseMultipartMessageForIPv6|IDNA|Punycode|'
+ echo -n 'PunycodeErrors|MarshalHeader|ParseHeader|ICMPString|'
+ echo -n 'ICMPFilter|UDPSinglePacketConnWithMultipleGroupListeners|'
+ echo -n 'UDPMultiplePacketConnWithMultipleGroupListeners|'
+ echo -n 'UDPPerInterfaceSinglePacketConnWithSingleGroupListener|'
+ echo -n 'PacketConnConcurrentReadWriteUnicastUDP|'
+ echo -n 'PacketConnReadWriteUnicastUDP|ConnUnicastSocketOptions|'
+ echo -n 'PacketConnUnicastSocketOptions|ParseHeader|ICMPString|'
+ echo -n 'ICMPFilter|UDPSinglePacketConnWithMultipleGroupListeners|'
+ echo -n 'UDPMultiplePacketConnWithMultipleGroupListeners|'
+ echo -n 'UDPPerInterfaceSinglePacketConnWithSingleGroupListener|'
+ echo -n 'PacketConnConcurrentReadWriteUnicastUDP|ConnInitiatorPathMTU|'
+ echo -n 'ConnResponderPathMTU|PacketConnReadWriteUnicastUDP|'
+ echo -n 'ConnUnicastSocketOptions|PacketConnUnicastSocketOptions|'
+ echo -n 'LimitListener|LimitListenerError|PerHost|FromURL|SOCKS5|'
+ echo -n 'NodeLabel|Find|ICANN|PublicSuffix|SlowPublicSuffix|'
+ echo -n 'EffectiveTLDPlusOne|SlashClean|DirResolve|Walk|Dir|MemFS|'
+ echo -n 'MemFSRoot|MemFileReaddir|MemFile|MemFileWriteAllocs|WalkFS|'
+ echo -n 'ParseIfHeader|WalkToRoot|MemLSCanCreate|MemLSLookup|'
+ echo -n 'MemLSConfirm|MemLSNonCanonicalRoot|MemLSExpiry|MemLS|'
+ echo -n 'ParseTimeout|MemPS|ReadLockInfo|ReadPropfind|'
+ echo -n 'SecWebSocketAccept|HybiClientHandshake|'
+ echo -n 'HybiClientHandshakeWithHeader|HybiServerHandshake|'
+ echo -n 'HybiServerHandshakeNoSubProtocol|'
+ echo -n 'HybiServerHandshakeHybiBadVersion|HybiShortTextFrame|'
+ echo -n 'HybiShortMaskedTextFrame|HybiShortBinaryFrame|'
+ echo -n 'HybiControlFrame|HybiLongFrame|HybiClientRead|'
+ echo -n 'HybiShortRead|HybiServerRead|HybiServerReadWithoutMasking|'
+ echo -n 'HybiClientReadWithMasking|HybiServerFirefoxHandshake|Echo|'
+ echo -n 'Addr|Count|WithQuery|WithProtocol|WithTwoProtocol|'
+ echo -n 'WithBadProtocol|HTTP|TrailingSpaces|DialConfigBadVersion|'
+ echo -n 'SmallBuffer|ParseAuthority|Close))$') \
+ -x -v ${GO_PN}/... || die $?
+}
+
src_install() {
insinto /usr/lib/go
find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null