LEFT | RIGHT |
(no file at all) | |
1 package ec2_test | 1 package ec2_test |
2 | 2 |
3 import ( | 3 import ( |
4 "flag" | 4 "flag" |
5 . "launchpad.net/gocheck" | 5 . "launchpad.net/gocheck" |
| 6 "launchpad.net/juju/go/environs/ec2" |
6 "testing" | 7 "testing" |
7 ) | 8 ) |
8 | 9 |
9 var regenerate = flag.Bool("regenerate-images", false, "regenerate all data in i
mages directory") | 10 var regenerate = flag.Bool("regenerate-images", false, "regenerate all data in i
mages directory") |
10 var amazon = flag.Bool("amazon", false, "Also run some tests on live Amazon serv
ers") | 11 var amazon = flag.Bool("amazon", false, "Also run some tests on live Amazon serv
ers") |
11 | 12 |
12 func TestEC2(t *testing.T) { | 13 func TestEC2(t *testing.T) { |
13 if *regenerate { | 14 if *regenerate { |
14 » » regenerateImages(t) | 15 » » ec2.RegenerateImages(t) |
15 } | 16 } |
16 if *amazon { | 17 if *amazon { |
17 registerAmazonTests() | 18 registerAmazonTests() |
18 } | 19 } |
19 registerLocalTests() | 20 registerLocalTests() |
20 TestingT(t) | 21 TestingT(t) |
21 } | 22 } |
LEFT | RIGHT |