launchpad.net/~rogpeppe/juju-core/500-errgo-fix@v0.0.0-20140213181702-000000002356/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 "launchpad.net/gocheck" 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 }