github.com/axw/juju@v0.0.0-20161005053422-4bd6544d08d4/state/package_test.go (about) 1 // Copyright 2015 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package state_test 5 6 import ( 7 "testing" 8 9 "github.com/juju/utils/os" 10 11 coretesting "github.com/juju/juju/testing" 12 ) 13 14 func TestPackage(t *testing.T) { 15 // At this stage, Juju only supports running the apiservers and database 16 // on Ubuntu. If we end up officially supporting CentOS, then we should 17 // make sure we run the tests there. 18 if os.HostOS() != os.Ubuntu { 19 t.Skipf("skipping tests on %v", os.HostOS()) 20 } 21 coretesting.MgoTestPackage(t) 22 }