github.com/altoros/juju-vmware@v0.0.0-20150312064031-f19ae857ccca/provider/ec2/suite_test.go (about)

     1  // Copyright 2011, 2012, 2013 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package ec2_test
     5  
     6  import (
     7  	"flag"
     8  	"testing"
     9  
    10  	gc "gopkg.in/check.v1"
    11  )
    12  
    13  var amazon = flag.Bool("amazon", false, "Also run some tests on live Amazon servers")
    14  
    15  func TestEC2(t *testing.T) {
    16  	if *amazon {
    17  		registerAmazonTests()
    18  	}
    19  	registerLocalTests()
    20  	gc.TestingT(t)
    21  }