github.com/makyo/juju@v0.0.0-20160425123129-2608902037e9/provider/ec2/package_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  	stdtesting "testing"
     9  
    10  	"github.com/juju/testing"
    11  	gc "gopkg.in/check.v1"
    12  )
    13  
    14  var amazon = flag.Bool("amazon", false, "Also run some tests on live Amazon servers")
    15  
    16  func TestPackage(t *stdtesting.T) {
    17  	if testing.RaceEnabled {
    18  		t.Skip("skipping package under -race, see LP 1519141")
    19  	}
    20  	if *amazon {
    21  		registerAmazonTests()
    22  	}
    23  	registerLocalTests()
    24  	gc.TestingT(t)
    25  }