github.com/axw/juju@v0.0.0-20161005053422-4bd6544d08d4/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 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 TestPackage(t *stdtesting.T) { 16 if *amazon { 17 registerAmazonTests() 18 } 19 registerLocalTests() 20 gc.TestingT(t) 21 }