build: some small improvements; bump to go1.10

- bump to go 1.10
- Add a linker tag with the build version
- Remove fastbuild, go builds are cached now
- Use better ginkgo suite names
This commit is contained in:
Casey Callendrello
2018-04-12 14:01:10 +02:00
parent e4f13535ab
commit aade7b93ee
27 changed files with 35 additions and 46 deletions

View File

@ -23,5 +23,5 @@ import (
func TestDHCP(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "DHCP Suite")
RunSpecs(t, "plugins/ipam/dhcp")
}

View File

@ -23,5 +23,5 @@ import (
func TestAllocator(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Allocator Suite")
RunSpecs(t, "plugins/ipam/host-local/backend/allocator")
}

View File

@ -23,5 +23,5 @@ import (
func TestLock(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Disk Suite")
RunSpecs(t, "plugins/ipam/host-local/backend/disk")
}

View File

@ -23,5 +23,5 @@ import (
func TestHostLocal(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "HostLocal Suite")
RunSpecs(t, "plugins/ipam/host-local")
}

View File

@ -23,5 +23,5 @@ import (
func TestBridge(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "bridge Suite")
RunSpecs(t, "plugins/main/bridge")
}

View File

@ -23,5 +23,5 @@ import (
func TestVlan(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "host-device Suite")
RunSpecs(t, "plugins/main/host-device")
}

View File

@ -23,5 +23,5 @@ import (
func TestIpvlan(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "ipvlan Suite")
RunSpecs(t, "plugins/main/ipvlan")
}

View File

@ -27,7 +27,7 @@ var pathToLoPlugin string
func TestLoopback(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Loopback Suite")
RunSpecs(t, "plugins/main/loopback")
}
var _ = BeforeSuite(func() {

View File

@ -23,5 +23,5 @@ import (
func TestMacvlan(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "macvlan Suite")
RunSpecs(t, "plugins/main/macvlan")
}

View File

@ -23,5 +23,5 @@ import (
func TestPtp(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "ptp Suite")
RunSpecs(t, "plugins/main/ptp")
}

View File

@ -23,5 +23,5 @@ import (
func TestVlan(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "vlan Suite")
RunSpecs(t, "plugins/main/vlan")
}

View File

@ -36,7 +36,7 @@ import (
func TestTBF(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "bandwidth suite")
RunSpecs(t, "plugins/meta/bandwidth")
}
var echoServerBinaryPath string

View File

@ -22,5 +22,5 @@ import (
func TestFlannel(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Flannel Suite")
RunSpecs(t, "plugins/meta/flannel")
}

View File

@ -37,7 +37,7 @@ func TestPortmap(t *testing.T) {
rand.Seed(config.GinkgoConfig.RandomSeed)
RegisterFailHandler(Fail)
RunSpecs(t, "portmap Suite")
RunSpecs(t, "plugins/meta/portmap")
}
var echoServerBinaryPath string

View File

@ -23,5 +23,5 @@ import (
func TestTuning(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "tuning Suite")
RunSpecs(t, "plugins/meta/tuning")
}

View File

@ -11,5 +11,5 @@ import (
func TestSample(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "sample suite")
RunSpecs(t, "plugins/sample")
}