github.com/mhilton/juju-juju@v0.0.0-20150901100907-a94dd2c73455/cmd/juju/commands/package_test.go (about) 1 // Copyright 2014 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 // TODO(dimitern): bug http://pad.lv/1425569 5 // Disabled until we have time to fix these tests on i386 properly. 6 // 7 // +build !386 8 9 package commands 10 11 import ( 12 "flag" 13 stdtesting "testing" 14 15 cmdtesting "github.com/juju/juju/cmd/testing" 16 _ "github.com/juju/juju/provider/dummy" 17 "github.com/juju/juju/testing" 18 ) 19 20 func TestPackage(t *stdtesting.T) { 21 testing.MgoTestPackage(t) 22 } 23 24 // Reentrancy point for testing (something as close as possible to) the juju 25 // tool itself. 26 func TestRunMain(t *stdtesting.T) { 27 if *cmdtesting.FlagRunMain { 28 Main(flag.Args()) 29 } 30 }